checkpoint every module in a different ckpt file #10840
Answered
by
rohitgr7
malfonsoarquimea
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
Hi!
Another solution would be to modify my lightning module to load the ckpt when the training ends as a dict and then save each subpart as a ckpt using torch.save(), but I understand that this solution is much less elegant. Any suggestions? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Nov 30, 2021
Replies: 1 comment 5 replies
-
I'd suggest using checkpoint_io plugin for your use-case. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
malfonsoarquimea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd suggest using checkpoint_io plugin for your use-case.