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
[FSDP] Clarify CPU offload implicitly in reshard_doc #98666
Conversation
Per title Differential Revision: [D44812344](https://our.internmc.facebook.com/intern/diff/D44812344/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/98666
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5abb754: 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.
Thanks for clarifying!
torch/distributed/fsdp/flat_param.py
Outdated
sharded flat parameter. | ||
sharded flat parameter. Note that this also implicitly offloads | ||
the sharded flat parameter (if CPU offload is enabled) by pointing | ||
it to the local_shard attribute which resides on CPU. |
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.
nit: Should we specify _local_shard with the prefixed underscore? (backticks do not matter much can be can do ``_local_shard`` for consistency)
Per title Differential Revision: [D44812344](https://our.internmc.facebook.com/intern/diff/D44812344/) [ghstack-poisoned]
@pytorchbot merge -f "Doc only" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Per title Differential Revision: [D44812344](https://our.internmc.facebook.com/intern/diff/D44812344/) Pull Request resolved: #98666 Approved by: https://github.com/awgu
Pull Request resolved: pytorch/pytorch#98666 Per title ghstack-source-id: 185660099 Differential Revision: [D44812344](https://our.internmc.facebook.com/intern/diff/D44812344/)
Stack from ghstack (oldest at bottom):
Per title
Differential Revision: D44812344