Skip to content

Is there a way to save only part of the Lightning sub-modules to the checkpoint file? #10808

Discussion options

You must be logged in to vote

you have to do that here too.
within lightning you can override on_save_checkpoint hook of LightningModule.

def on_save_checkpoint(self, checkpoint):
    checkpoint['state_dict'] <- remove/pop keys from here

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahikaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment