Restore optimization/scheduler states saved without pytorch-lightning #13698
Unanswered
ewrfcas
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
Here is my solution, but I think it is not elegant.
Then for the
I am looking for a better solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If I have pre-trained a model (such as VIT) with its model and optimization state without saving by pytorch-lightning, how to restore the optimization for pytorch-lightning?
The model weights can be easily loaded by
load_state_dict
, but how to accessoptimization
and further retore the state of it?Beta Was this translation helpful? Give feedback.
All reactions