Maria_B:

I have also tried to change to ‘’/model_checkpoints_5000/checkpoint_{epoch:02d}’, it still does not save the files with every epoch’s number.


Maybe this could also help:
save_freq='epoch'

There is another good example in this tutorial Save and load models  |  TensorFlow Core
...
batch_size = 32

# Create a callback that saves the model's weights every 5 epochs
cp_callback = tf.keras.callbacks.ModelCheckpoint(
    filepath=checkpoint_path, 
    verbose=1, 
    save_weights_only=True,
    save_freq=5*batch_size)
...