Repository navigation
Conversation
[ghstack-poisoned]
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - Ready for human review:
Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/203096
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 867fce8 with merge base b85dea2 ( 🟢 GREEN LIGHT - PR approved to be merged without human review:
reason: 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.
Automated review of 867fce8: nothing blocking; ready for human review.
The PR points setup_fake_process_groups in torch/_dynamo/repro/after_aot.py at the new torch.distributed._backends.fake module instead of the fake_pg.py compatibility shim, and stops writing the unused FakeStore import into generated repros. The review found no issues. Recommendation: Approve.
This review is AI-generated and advisory. Each new automated review replaces the previous one.
…ter_aot (pytorch#203096) pytorch#202141 moved FakeProcessGroup/FakeStore to `torch.distributed._backends.fake`, leaving `torch/testing/_internal/distributed/fake_pg.py` as a compatibility shim. `after_aot.py` was its last user in `torch/` outside `torch/testing`. `setup_fake_process_groups` now imports from the new module; the `fake` backend is registered on demand by `init_process_group`, so the shim's import-time registration isn't needed. The `FakeStore` import emitted into generated repros is dropped: it has been unused since repros started calling `setup_fake_process_groups`, and dropping it rather than repointing it keeps generated repros runnable on released torch (2.11+), which lacks `torch.distributed._backends.fake`. Test plan: ``` python -m pytest test/dynamo/test_fx_graph_runnable.py lintrunner -a --skip CLANGTIDY torch/_dynamo/repro/after_aot.py ``` 22 passed; the collective and multi-process-group tests run the generated repro in a fresh subprocess. Line changes: implementation +1/-2, tests +0/-0. This PR was authored with the help of an AI assistant (Claude). Pull Request resolved: pytorch#203096 Approved by: https://github.com/pytorchgreenlight
…ter_aot (pytorch#203096) pytorch#202141 moved FakeProcessGroup/FakeStore to `torch.distributed._backends.fake`, leaving `torch/testing/_internal/distributed/fake_pg.py` as a compatibility shim. `after_aot.py` was its last user in `torch/` outside `torch/testing`. `setup_fake_process_groups` now imports from the new module; the `fake` backend is registered on demand by `init_process_group`, so the shim's import-time registration isn't needed. The `FakeStore` import emitted into generated repros is dropped: it has been unused since repros started calling `setup_fake_process_groups`, and dropping it rather than repointing it keeps generated repros runnable on released torch (2.11+), which lacks `torch.distributed._backends.fake`. Test plan: ``` python -m pytest test/dynamo/test_fx_graph_runnable.py lintrunner -a --skip CLANGTIDY torch/_dynamo/repro/after_aot.py ``` 22 passed; the collective and multi-process-group tests run the generated repro in a fresh subprocess. Line changes: implementation +1/-2, tests +0/-0. This PR was authored with the help of an AI assistant (Claude). Pull Request resolved: pytorch#203096 Approved by: https://github.com/pytorchgreenlight
Stack from ghstack (oldest at bottom):
#202141 moved FakeProcessGroup/FakeStore to
torch.distributed._backends.fake, leavingtorch/testing/_internal/distributed/fake_pg.pyas a compatibility shim.after_aot.pywas its last user intorch/outsidetorch/testing.setup_fake_process_groupsnow imports from the new module; thefakebackend is registered on demand byinit_process_group, so the shim's import-time registration isn't needed. TheFakeStoreimport emitted into generated repros is dropped: it has been unused since repros started callingsetup_fake_process_groups, and dropping it rather than repointing it keeps generated repros runnable on released torch (2.11+), which lackstorch.distributed._backends.fake.Test plan:
22 passed; the collective and multi-process-group tests run the generated repro in a fresh subprocess.
Line changes: implementation +1/-2, tests +0/-0.
This PR was authored with the help of an AI assistant (Claude).
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @jataylo @azahed98