best way to save trainer state? #12325
Unanswered
pchalasani
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
-
Here's a simplified, abstract version of my question: Suppose I have two datasets A, B. I want to do this sequence:
Initialize states of trainer, modelA, modelB.
While A, B not exhausted, do:
// now do something with modelA, modelB,... immaterial for this question.
I know I can save and load "model state" using checkpoints.
But I'm not too clear on what is the best way to save + resume trainer state, which includes things like early stopping conditions, epoch, step numbers etc.
Any pointers appreciated.
Beta Was this translation helpful? Give feedback.
All reactions