How to use LightningCLI to resume training from checkpoint #16845
Replies: 3 comments 11 replies
-
Just |
Beta Was this translation helpful? Give feedback.
-
Then only option involving a checkpoint appears to be in the |
Beta Was this translation helpful? Give feedback.
-
Hello! There is a similar question. I have already trained an encoder saved in encoder_ckpt.ckpt. I want to train another autoencoder using encoder_ckpt.ckpt as the frozen encoder. How should I configure the LightningCLI? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the LightningCLI to resume training from checkpoint, but don't understand how to pass keyword arguments of the checkpoint path to enable restoring the model and trainer states from the checkpoint, my current workaround is the following:
note that I call
cli.trainer.fit(cli.model.load_from_checkpoint(ckpt_path), datamodule=cli.datamodule, ckpt_path=ckpt_path)
specifying the checkpoint path.Is there a better/recommended method for dealing with restarting from checkpoints with the LightningCLI?
Beta Was this translation helpful? Give feedback.
All reactions