-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Update distributed checkpoint recipes #3446
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3446
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit 9078c86 with merge base ab48a0c ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but did you try to run it? does it run?
@svekars yeah. I copied each code block to a python script and verified they work as expected |
Do you think it's possible to replace the .rst with that .py script? We overall, prefer .py to .rst. |
@svekars The py script does not contain all the information. It's just code blocks. I can prioritize conversion from rst to py as a less urgent follow up. |
Sounds good, please create an issue and assign to yourself and link in this PR. Thanks! |
@@ -152,7 +151,7 @@ Now, let's create a toy module, wrap it with FSDP, feed it with some dummy input | |||
join=True, | |||
) | |||
|
|||
Please go ahead and check the `checkpoint` directory. You should see 8 checkpoint files as shown below. | |||
Please go ahead and check the `checkpoint` directory. You should see world_size checkpoint files as shown below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this intentional change? "You should see world_size checkpoint files" sounds a bit weird. Can you rephrase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Updated to be a bit more clear.
Description
Remove references to FSDP and replace with FSDP2
Also some fixes to ensure tutorials run without errors
Follow up to convert these tutorials to py files: #3452 (comment)