Skip to content

Conversation

wz337
Copy link
Contributor

@wz337 wz337 commented Feb 1, 2024

Fixes ISSUE_NUMBER

i.e.
mesh = init_device_mesh("cuda", (8,), mesh_dim_names=("dp"))
then we do dp_mesh = mesh["dp"] should still work, just dummy return without recording parent mesh

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

Copy link

pytorch-bot bot commented Feb 1, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 6174702 with merge base a43c283 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@github-actions github-actions bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Feb 1, 2024
@wz337 wz337 marked this pull request as draft February 1, 2024 21:37
@wconstab
Copy link
Contributor

wconstab commented Feb 2, 2024

i was running into this today and wanted to ask someone why we didn't support it. thanks for enabling it !

Copy link
Collaborator

@wanchaol wanchaol left a comment

Choose a reason for hiding this comment

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

lgtm, thx for the quick PR!

@wz337
Copy link
Contributor Author

wz337 commented Feb 2, 2024

@pytorchmergebot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 2, 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

pytorchmergebot pushed a commit that referenced this pull request Feb 5, 2024
The test is no longer applicable after we allow 1D slice from 1D mesh. #118895

Pull Request resolved: #119172
Approved by: https://github.com/awgu, https://github.com/atalman
pytorch-bot bot pushed a commit that referenced this pull request Feb 8, 2024
Fixes [ISSUE_NUMBER](#118851)

i.e.
mesh = init_device_mesh("cuda", (8,), mesh_dim_names=("dp"))
then we do dp_mesh = mesh["dp"] should still work, just dummy return without recording parent mesh

Pull Request resolved: #118895
Approved by: https://github.com/wanchaol
pytorch-bot bot pushed a commit that referenced this pull request Feb 8, 2024
The test is no longer applicable after we allow 1D slice from 1D mesh. #118895

Pull Request resolved: #119172
Approved by: https://github.com/awgu, https://github.com/atalman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged module: DeviceMesh oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: DeviceMesh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[device_mesh] slice a device mesh from a 1d device mesh

4 participants