Skip to content

Loading nn.Module from checkpoint tutorial (non ghstack) #2522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

mikaylagawarecki
Copy link
Contributor

@mikaylagawarecki mikaylagawarecki commented Aug 8, 2023

Added tutorial for some utilities for loading checkpoint

  1. The mmap keyword argument on torch.load
  2. The torch.device() context manager
  3. The assign keyword argument on nn.Module.load_state_dict()

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 8, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/2522

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 903b8c4 with merge base 646c8b6 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@svekars svekars added the 2.1 label Aug 9, 2023
@mikaylagawarecki mikaylagawarecki marked this pull request as ready for review August 10, 2023 14:26
Copy link
Contributor

@svekars svekars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, @mikaylagawarecki. Looks good, just a couple of editorial suggestions.

@svekars svekars changed the base branch from main to 2.1-RC-TEST September 5, 2023 21:18
Copy link
Contributor

@albanD albanD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants