I followed the basic tutorial of https://www.tensorflow.org/text/tutorials/text_generation#train_the_model, which leads to the generation of a basic RNN model. I followed the tutorial line by line (only changing the model parameters and dataset). I stopped the training three-quarters of the way through. The model has generated 14 checkpoints files and 14 checkpoint indices files.
I tried to load the checkpoint back using model.load_weights(os.path.join(checkpoint_dir, "checkpoint")) but I get the following error OSError: Unable to open file (file signature not found), which, by looking online I found out it refers to the fact that the file isn't encoded in the required encoding. But the main checkpoint file has no file extension nor encoding.
Am I doing something wrong?