From 58f5a17de672d8a8cac82de911dbe0ad4358c474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Tue, 15 Mar 2022 01:04:36 -0400 Subject: [PATCH] update docs for ModelCheckpoint save_last --- pytorch_lightning/callbacks/model_checkpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytorch_lightning/callbacks/model_checkpoint.py b/pytorch_lightning/callbacks/model_checkpoint.py index d9b5f13e6fa8a..57ed9098bd211 100644 --- a/pytorch_lightning/callbacks/model_checkpoint.py +++ b/pytorch_lightning/callbacks/model_checkpoint.py @@ -84,8 +84,8 @@ class ModelCheckpoint(Callback): By default, filename is ``None`` and will be set to ``'{epoch}-{step}'``. monitor: quantity to monitor. By default it is ``None`` which saves a checkpoint only for the last epoch. verbose: verbosity mode. Default: ``False``. - save_last: When ``True``, always saves the model at the end of the epoch to - a file `last.ckpt`. Default: ``None``. + save_last: When ``True``, saves an exact copy of the checkpoint to a file `last.ckpt` whenever a checkpoint + file gets saved. This allows accessing the latest checkpoint in a deterministic manner. Default: ``None``. save_top_k: if ``save_top_k == k``, the best k models according to the quantity monitored will be saved.