Skip to content
Discussion options

You must be logged in to vote

You can either save the full model

torch.save(my_model, 'model.pt')

or just its state dict/parameters (recommended):

torch.save(my_model.state_dict(), 'model.pt')

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DogitoErgoSum
Comment options

@rusty1s
Comment options

@DogitoErgoSum
Comment options

Answer selected by DogitoErgoSum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants