-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[FSDP] Separate shared code into hooks #75424
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
All load_state_dict implementations call synchronize(), so put this into hook for preparation of doing all FSDP-specific state_dict loading logic in pre/post hooks. Differential Revision: [D35439351](https://our.internmc.facebook.com/intern/diff/D35439351/) [ghstack-poisoned]
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 8e84c5d (more details on the Dr. CI page):
🕵️ 2 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
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.
Nice refactor!
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.
some lint error
All load_state_dict implementations call synchronize(), so put this into hook for preparation of doing all FSDP-specific state_dict loading logic in pre/post hooks. Differential Revision: [D35439351](https://our.internmc.facebook.com/intern/diff/D35439351/) [ghstack-poisoned]
Pull Request resolved: #75424 All load_state_dict implementations call synchronize(), so put this into hook for preparation of doing all FSDP-specific state_dict loading logic in pre/post hooks. ghstack-source-id: 154042197 Differential Revision: [D35439351](https://our.internmc.facebook.com/intern/diff/D35439351/)
|
@pytorchbot merge this (Initiating merge automatically since Phabricator Diff has merged) |
|
Merge failed due to Matched rule superuser, but it was not reviewed yet by any of:kyulee-com,kausv,jackm321,erichan1,jingsh, ... |
|
@pytorchbot merge this |
|
Merge failed due to Matched rule superuser, but it was not reviewed yet by any of:kumpera,tvalentius,ZolotukhinM,xinyang0,ccongge, ... |
Pull Request resolved: #75424 All load_state_dict implementations call synchronize(), so put this into hook for preparation of doing all FSDP-specific state_dict loading logic in pre/post hooks. ghstack-source-id: 154042197 Differential Revision: [D35439351](https://our.internmc.facebook.com/intern/diff/D35439351/)
|
Manually edited |
|
@pytorchbot merge this |
|
Hey @rohan-varma. |
Summary: Pull Request resolved: #75424 All load_state_dict implementations call synchronize(), so put this into hook for preparation of doing all FSDP-specific state_dict loading logic in pre/post hooks. ghstack-source-id: 154042197 Test Plan: CI Reviewed By: zhaojuanmao Differential Revision: D35439351 fbshipit-source-id: 7236de6af9aaf2d91c4fe9d29b600a56b520897b
Pull Request resolved: #75424 All load_state_dict implementations call synchronize(), so put this into hook for preparation of doing all FSDP-specific state_dict loading logic in pre/post hooks. Differential Revision: [D35439351](https://our.internmc.facebook.com/intern/diff/D35439351/) Approved by: https://github.com/awgu, https://github.com/zhaojuanmao, https://github.com/malfet (cherry picked from commit 9e864f4)
Stack from ghstack (oldest at bottom):
All load_state_dict implementations call synchronize(), so put this into hook for preparation of doing all FSDP-specific state_dict loading logic in pre/post hooks.
Differential Revision: D35439351