-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[FSDP][state_dict] Add world_size 1 unittest #112669
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
As title Differential Revision: [D50754433](https://our.internmc.facebook.com/intern/diff/D50754433/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112669
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 6e94fc4 with merge base 94f3df2 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
As title Differential Revision: [D50754433](https://our.internmc.facebook.com/intern/diff/D50754433/) ghstack-source-id: 206184496 Pull Request resolved: #112669
FSDPInitMode.RECURSIVE, | ||
CUDAInitMode.CUDA_BEFORE, |
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.
QQ for my understanding: what are these init mode?
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.
it is explained here:
cuda_init_mode (CUDAInitMode): Determines model movement to CUDA. |
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.
LGTM!
return self.outer(i + j) | ||
|
||
|
||
class TestDummyModel(torch.nn.Module): |
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.
not necessary in this PR, but can we move it to torch/testing/_internal/common_fsdp.py?
@pytorchbot merge -f "The failing test is not related." |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
As title Differential Revision: [D50754433](https://our.internmc.facebook.com/intern/diff/D50754433/) Pull Request resolved: pytorch#112669 Approved by: https://github.com/wz337, https://github.com/fduwjj
As title Differential Revision: [D50754433](https://our.internmc.facebook.com/intern/diff/D50754433/) Pull Request resolved: pytorch#112669 Approved by: https://github.com/wz337, https://github.com/fduwjj
Stack from ghstack (oldest at bottom):
As title
Differential Revision: D50754433