-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[device_mesh][BE] reduce_scatter fallback to funcol and remove from DM #105642
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
DM For the reason similar to #105605 [ghstack-poisoned]
🔗 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 FailuresAs 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]
…move from DM" For the reason similar to #105605 [ghstack-poisoned]
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
| 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) |
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.
Should we support reduce_op directly as well in the python wrappers of funcol?
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.
yeah that's a good point.. I can give it a try in a follow up PR
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!
|
@pytorchbot merge |
Merge startedYour 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 |
Stack from ghstack (oldest at bottom):
For the reason similar to #105605