-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[FSDP] Make summon_full_params a public method #73116
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
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit c981be7 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) ghstack-source-id: 149524472 Pull Request resolved: #73116
rohan-varma
left a comment
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.
I think we can do this as long as we have consensus on name, API, defaults, etc.
The main thing I think will be the default setting of writeback which is currently True, users will have to explicitly pass in writeback=False to get better perf. However summon_full_params is mostly for debugging, or checkpointing and I think the usability improvement is worth the tradeoff here. We can also always flip the param if need be before the release.
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Pull Request resolved: #73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 149776412 Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/)
|
@rohan-varma agree. The default value of write_back should be False. |
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Pull Request resolved: #73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 149787096 Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/)
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Pull Request resolved: #73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 149807641 Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/)
rohan-varma
left a comment
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.
@fegin Maybe I miscommunicated, but why should it be False over the current True? From what I understand summon_full_params is not currently on a perf critical path, and writeback=True by default is nice because modifications will persist by default (or perhaps modifying state by default is not great?)
|
@rohan-varma I misunderstood your original comment. My thought was that |
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Pull Request resolved: #73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 149951203 Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/)
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Users may need summon_full_params() to get the original parameters. Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/) [ghstack-poisoned]
Pull Request resolved: #73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 150134237 Differential Revision: [D34353034](https://our.internmc.facebook.com/intern/diff/D34353034/)
Summary: Pull Request resolved: #73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 150134237 Test Plan: CI Reviewed By: rohan-varma Differential Revision: D34353034 fbshipit-source-id: ac69cc032da177903cd9969094f3f82dc6a61636
|
Hey @fegin. |
Summary: Pull Request resolved: pytorch/pytorch#73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 150134237 Test Plan: CI Reviewed By: rohan-varma Differential Revision: D34353034 fbshipit-source-id: ac69cc032da177903cd9969094f3f82dc6a61636 (cherry picked from commit 55d34fdee3778110a165a13ae987d0339e8d33c7)
Summary: Pull Request resolved: pytorch/pytorch#73116 Users may need summon_full_params() to get the original parameters. ghstack-source-id: 150134237 Test Plan: CI Reviewed By: rohan-varma Differential Revision: D34353034 fbshipit-source-id: ac69cc032da177903cd9969094f3f82dc6a61636 (cherry picked from commit 55d34fdee3778110a165a13ae987d0339e8d33c7)
Stack from ghstack:
Users may need summon_full_params() to get the original parameters.
Differential Revision: D34353034