-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[pytorch][fakepg] enhance fakepg: broadcast and scatter #107480
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
Summary: Add support for broadcast and scatter in FakeProcessGroup. As a side note, we can't easily support broadcast_object_list or scatter_object_list since they rely on actual broadcasted/scattered values for pickle object deserialization. We could add support for rank 0, but other to support ranks may need additional changes outside of FakeProcessGroup. Test Plan: `buck2 run mode/dev-nosan -c fbcode.enable_gpu_sections=true //caffe2/test/distributed:fake_pg`, on of TARGETS diff: D48481513 `python test/distributed/test_fake_pg.py` after github sync Differential Revision: D48481512 fbshipit-source-id: 96c9c0db6d900593269ff55fe90307b7bdd75b2a
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/107480
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 9da551b with merge base bdecdfd ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D48481512 |
|
@pytorchbot label "topic: not user facing" |
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, thanks!
|
@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 |
Summary: Add support for broadcast and scatter in FakeProcessGroup. As a side note, we can't easily support broadcast_object_list or scatter_object_list since they rely on actual broadcasted/scattered values for pickle object deserialization. We could add support for rank 0, but other to support ranks may need additional changes outside of FakeProcessGroup. Test Plan: `buck2 run mode/dev-nosan -c fbcode.enable_gpu_sections=true //caffe2/test/distributed:fake_pg`, on of TARGETS diff: D48481513 `python test/distributed/test_fake_pg.py` after github sync Differential Revision: D48481512 Pull Request resolved: pytorch#107480 Approved by: https://github.com/wanchaol
Summary:
Add support for broadcast and scatter in FakeProcessGroup.
As a side note, we can't easily support broadcast_object_list or
scatter_object_list since they rely on actual broadcasted/scattered
values for pickle object deserialization. We could add support for rank 0, but
other to support ranks may need additional changes outside of
FakeProcessGroup.
Test Plan:
buck2 run mode/dev-nosan -c fbcode.enable_gpu_sections=true //caffe2/test/distributed:fake_pg, on of TARGETS diff: D48481513python test/distributed/test_fake_pg.pyafter github syncDifferential Revision: D48481512