Skip to content
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] Fixed device_mesh and auto wrap #119064

Closed
wants to merge 1 commit into from
Closed

Conversation

awgu
Copy link
Contributor

@awgu awgu commented Feb 2, 2024

Stack from ghstack (oldest at bottom):

If the user passes device_mesh, then we should not forward the process groups to the children during auto wrap and instead just rely on the device_mesh argument. This should fix #118906.

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225

@pytorch-bot pytorch-bot bot added the release notes: distributed (fsdp) release notes category label Feb 2, 2024
awgu added a commit that referenced this pull request Feb 2, 2024
ghstack-source-id: 73185b4d742035bd982e63d1c13416ff8a9c6324
Pull Request resolved: #119064
Copy link

pytorch-bot bot commented Feb 2, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/119064

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit f2b9157 with merge base 9afd539 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions github-actions bot added oncall: distributed Add this issue/PR to distributed oncall triage queue ciflow/inductor labels Feb 2, 2024
@awgu awgu added the ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR label Feb 2, 2024
@awgu awgu marked this pull request as ready for review February 2, 2024 22:40
@awgu awgu requested review from fegin and wz337 February 2, 2024 22:40
Copy link
Contributor

@wz337 wz337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the quick fix!

@awgu
Copy link
Contributor Author

awgu commented Feb 3, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 3, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorch-bot bot pushed a commit that referenced this pull request Feb 8, 2024
If the user passes `device_mesh`, then we should not forward the process groups to the children during auto wrap and instead just rely on the `device_mesh` argument. This should fix #118906.

Pull Request resolved: #119064
Approved by: https://github.com/wz337
mvpatel2000 pushed a commit to mvpatel2000/pytorch that referenced this pull request Feb 13, 2024
If the user passes `device_mesh`, then we should not forward the process groups to the children during auto wrap and instead just rely on the `device_mesh` argument. This should fix pytorch#118906.

Pull Request resolved: pytorch#119064
Approved by: https://github.com/wz337
atalman pushed a commit that referenced this pull request Feb 14, 2024
Co-authored-by: Andrew Gu <andgu@fb.com>
resolved: #112435
resolved: #118620
Fixed `device_mesh` and auto wrap (#119064)
fix #118906.
resolved: #119064
resolved: #118638
Fixes #118639.
resolved: #119481
@github-actions github-actions bot deleted the gh/awgu/505/head branch March 5, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor ciflow/periodic Trigger jobs ran periodically on master (periodic.yml) on the PR ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (fsdp) release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants