Skip to content

Commit eda53d7

Browse files
authored
update docs for ModelCheckpoint save_last (#12332)
1 parent f2d6a85 commit eda53d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch_lightning/callbacks/model_checkpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ class ModelCheckpoint(Callback):
8484
By default, filename is ``None`` and will be set to ``'{epoch}-{step}'``.
8585
monitor: quantity to monitor. By default it is ``None`` which saves a checkpoint only for the last epoch.
8686
verbose: verbosity mode. Default: ``False``.
87-
save_last: When ``True``, always saves the model at the end of the epoch to
88-
a file `last.ckpt`. Default: ``None``.
87+
save_last: When ``True``, saves an exact copy of the checkpoint to a file `last.ckpt` whenever a checkpoint
88+
file gets saved. This allows accessing the latest checkpoint in a deterministic manner. Default: ``None``.
8989
save_top_k: if ``save_top_k == k``,
9090
the best k models according to
9191
the quantity monitored will be saved.

0 commit comments

Comments
 (0)