hyper parameters not restored while resuming training #12639
Answered
by
rohitgr7
Haojia521
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
I call |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Apr 6, 2022
Replies: 1 comment 1 reply
-
hyperparameters are not restored by default because it allows users to update them if they want, using the checkpoint, while resuming. you can do this: model = LitModel.load_from_checkpoint(checkpoint_file_path)
trainer.fit(model, ..., ckpt_path=checkpoint_file_path) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Haojia521
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hyperparameters are not restored by default because it allows users to update them if they want, using the checkpoint, while resuming.
you can do this: