Fix type annotation for _sym_get_coordinate#177446
Fix type annotation for _sym_get_coordinate#177446aorenste wants to merge 9 commits intogh/aorenste/219/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177446
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 2 Unrelated FailuresAs of commit dac6fce with merge base 417a890 ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
BC Error: |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
|
@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 |
|
@pytorchbot revert -m "blocking the revert of #177445 which is failing internal tests" |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot revert -m "blocking the revert of #177445 which is failing internal tests" -c nosignal |
|
@pytorchbot revert -m "the pr breaks lint test, please fix it, see https://github.com/pytorch/pytorch/actions/runs/23302872205/job/67768676562" -c nosignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
This reverts commit 2a86e11. Reverted #177446 on behalf of https://github.com/yangw-dev due to the pr breaks lint test, please fix it, see https://github.com/pytorch/pytorch/actions/runs/23302872205/job/67768676562 ([comment](#177446 (comment)))
|
@aorenste your PR has been successfully reverted. |
[ghstack-poisoned]
Pull Request resolved: pytorch#177446 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#172795
This reverts commit b8d53c6. Reverted pytorch#177446 on behalf of https://github.com/aorenste due to blocking the revert of pytorch#177445 which is failing internal tests ([comment](pytorch#177446 (comment)))
Pull Request resolved: pytorch#177446 Approved by: https://github.com/Skylion007
|
test/distributed/tensor/test_random_ops.py::DistTensorRandomOpTest::test_pipeline_parallel_manual_seed test is pre-existing on trunk |
Merge startedYour change will be merged while ignoring the following 4 checks: dtensor / dtensor-test / test (dtensor, 1, 1, linux.g5.12xlarge.nvidia.gpu), inductor / inductor-cpu-test / test (cpu_inductor_torchbench, 1, 2, linux.2xlarge.amx, unstable), inductor / inductor-test / test (inductor_torchbench, 2, 2, linux.g5.4xlarge.nvidia.gpu), trunk / linux-jammy-cuda13.0-py3.10-gcc11 / test (distributed, 2, 3, lf.linux.g4dn.12xlarge.nvidia.gpu) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Use mesh._sym_get_coordinate() in _compute_rng_offsets so that RNG offset values become symbolic SymInts (via _runtime_compute_coordinate_on_dim) when compile_on_one_rank is active. Previously, mesh.get_coordinate() returned concrete rank-specific integers that got baked into the compiled graph, producing different graphs on different ranks. Also refactors test_compile_on_one_rank.py to extract graph-comparison helpers (_assert_graphs_identical_across_ranks, _compile_and_capture_graph) and adds a test for DTensor random op graph consistency. Authored with Claude. Pull Request resolved: #177447 Approved by: https://github.com/yiming0416 ghstack dependencies: #177446
Pull Request resolved: pytorch#177446 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#172795
This reverts commit b8d53c6. Reverted pytorch#177446 on behalf of https://github.com/aorenste due to blocking the revert of pytorch#177445 which is failing internal tests ([comment](pytorch#177446 (comment)))
Pull Request resolved: pytorch#177446 Approved by: https://github.com/Skylion007 ghstack dependencies: pytorch#172795
This reverts commit b8d53c6. Reverted pytorch#177446 on behalf of https://github.com/aorenste due to blocking the revert of pytorch#177445 which is failing internal tests ([comment](pytorch#177446 (comment)))
Pull Request resolved: pytorch#177446 Approved by: https://github.com/Skylion007
This reverts commit 2a86e11. Reverted pytorch#177446 on behalf of https://github.com/yangw-dev due to the pr breaks lint test, please fix it, see https://github.com/pytorch/pytorch/actions/runs/23302872205/job/67768676562 ([comment](pytorch#177446 (comment)))
Pull Request resolved: pytorch#177446 Approved by: https://github.com/Skylion007
…177447) Use mesh._sym_get_coordinate() in _compute_rng_offsets so that RNG offset values become symbolic SymInts (via _runtime_compute_coordinate_on_dim) when compile_on_one_rank is active. Previously, mesh.get_coordinate() returned concrete rank-specific integers that got baked into the compiled graph, producing different graphs on different ranks. Also refactors test_compile_on_one_rank.py to extract graph-comparison helpers (_assert_graphs_identical_across_ranks, _compile_and_capture_graph) and adds a test for DTensor random op graph consistency. Authored with Claude. Pull Request resolved: pytorch#177447 Approved by: https://github.com/yiming0416 ghstack dependencies: pytorch#177446
Pull Request resolved: pytorch#177446 Approved by: https://github.com/Skylion007
…177447) Use mesh._sym_get_coordinate() in _compute_rng_offsets so that RNG offset values become symbolic SymInts (via _runtime_compute_coordinate_on_dim) when compile_on_one_rank is active. Previously, mesh.get_coordinate() returned concrete rank-specific integers that got baked into the compiled graph, producing different graphs on different ranks. Also refactors test_compile_on_one_rank.py to extract graph-comparison helpers (_assert_graphs_identical_across_ranks, _compile_and_capture_graph) and adds a test for DTensor random op graph consistency. Authored with Claude. Pull Request resolved: pytorch#177447 Approved by: https://github.com/yiming0416 ghstack dependencies: pytorch#177446
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @kadeng @chauhang @amjames @Lucaskabela @jataylo @xmfan @aditvenk