Filename for last checkpoint

Hi guys,

Do you know how to specify a custom filename for the last checkpoint (i.e. save_last=True) save? By default, it is saved with the name “last.ckpt”, but I would like to include some magnitudes as epoch, losses and metrics in the name of the file (as you can do with the filename argument when saving the best checkpoints).

Thanks!

Hi @delai50, you can customize the checkpoint’s last filename.

You can change the default last checkpoint name by doing checkpoint_callback.CHECKPOINT_NAME_LAST = "{epoch}-{train_loss}-{val_loss}-last"

Hope this helps :smile: !