-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[IntraNodeComm] fix a recent breakage #141200
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/141200
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 2f51ba1 with merge base 161425f ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@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 |
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.
Thanks for the quick fix!
| input.dtype() == at::kBFloat16, | ||
| "oneShotAllReduce only supports bf16 for now"); | ||
| input.dtype() == at::kBFloat16 || input.dtype() == at::kFloat, | ||
| "oneShotAllReduce only supports float and bf16 for now"); |
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.
Nice fix. Was hitting this issue last week. It unblocks me now :)
- Pass `group_name` to `CUDASymmetricMemory::alloc()` instead of `CUDASymmetricMemory::rendezvous()`. We can only move the argument to rendezvous() once all the underlying operators do the same. - Added `float` to the allowlist for intra-node all-reduces. - Added a warning when `IntraNodeComm::rendezvous()` is performed with overlapping devices among participants. Pull Request resolved: pytorch#141200 Approved by: https://github.com/weifengpy, https://github.com/kwen2501
Stack from ghstack (oldest at bottom):
group_nametoCUDASymmetricMemory::alloc()instead ofCUDASymmetricMemory::rendezvous(). We can only move the argument to rendezvous() once all the underlying operators do the same.floatto the allowlist for intra-node all-reduces.IntraNodeComm::rendezvous()is performed with overlapping devices among participants.cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o