Skip to content

Conversation

@wanchaol
Copy link
Collaborator

@wanchaol wanchaol commented Jul 20, 2023

@pytorch-bot
Copy link

pytorch-bot bot commented Jul 20, 2023

🔗 Helpful Links

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

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

✅ 2 Unrelated Failures

As of commit cbd7326:

UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:

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

…move from DM"

For the reason similar to #105605

[ghstack-poisoned]
@wanchaol wanchaol changed the title [device_mesh][BE] move reduce_scatter fallback to funcol and remove from [device_mesh][BE] reduce_scatter fallback to funcol and remove from DM Jul 20, 2023
…move from DM"

For the reason similar to #105605

[ghstack-poisoned]
wanchaol added a commit that referenced this pull request Jul 20, 2023
For the reason similar to #105605

ghstack-source-id: 6b6cf9c
Pull Request resolved: #105642
@wanchaol wanchaol requested a review from kumpera July 20, 2023 17:28
@wanchaol wanchaol added ciflow/trunk Trigger trunk jobs on your pull request release notes: distributed (dtensor) release notes category labels Jul 20, 2023
@wanchaol wanchaol requested a review from wz337 July 26, 2023 20:09
Copy link
Contributor

@kumpera kumpera left a comment

Choose a reason for hiding this comment

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

LGTM

output = mesh.reduce_scatter(
tensor, op=reduce_op, mesh_dim=mesh_dim, scatter_dim=self.dim
output = funcol.reduce_scatter_tensor(
tensor, reduce_op.name, scatter_dim=self.dim, group=(mesh, mesh_dim)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we support reduce_op directly as well in the python wrappers of funcol?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah that's a good point.. I can give it a try in a follow up PR

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!

@wanchaol
Copy link
Collaborator Author

@pytorchbot merge

@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

@facebook-github-bot facebook-github-bot deleted the gh/wanchaol/335/head branch July 30, 2023 14:18
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 release notes: distributed (dtensor) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants