Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save n0obcoder/60d23fbf4994d093a8cc1e37b242cede to your computer and use it in GitHub Desktop.

Select an option

Save n0obcoder/60d23fbf4994d093a8cc1e37b242cede to your computer and use it in GitHub Desktop.
torch.save(model.state_dict(), 'weights_only.pth')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment