Repository navigation
Conversation
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/178735
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 2 Cancelled Jobs, 1 Unrelated FailureAs of commit b04496a with merge base e899f15 ( NEW FAILURES - The following jobs have failed:
CANCELLED JOBS - The following jobs were cancelled. Please retry:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. [ghstack-poisoned]
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. ghstack-source-id: 37d21c7 Pull Request resolved: #178735
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. [ghstack-poisoned]
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. ghstack-source-id: 9a33bfd Pull Request resolved: #178735
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. [ghstack-poisoned]
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. ghstack-source-id: db8d52b Pull Request resolved: #178735
we have two source of _StridedShard in DTensor * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning [ghstack-poisoned]
On a 1D mesh, _StridedShard causes shard_order=None which forces the graph-based planner. The graph-based planner can't decode split_factor into a shard order with only one mesh dimension, crashing with ValueError. Skip graph-based planning for 1D mesh _StridedShard so the greedy path's 1D shortcut creates a direct transform, and the existing execution handler calls _StridedShard._to_replicate_tensor(). Authored with Claude. ghstack-source-id: 0823b66 Pull Request resolved: #178735
…ry split_factor" we have two source of _StridedShard in DTensor * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement [ghstack-poisoned]
…ry split_factor" we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement [ghstack-poisoned]
…ry split_factor" we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement [ghstack-poisoned]
…ry split_factor" we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement [ghstack-poisoned]
…ry split_factor" we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement [ghstack-poisoned]
zpcore
left a comment
There was a problem hiding this comment.
Discussed offline, this is good as a temporary fix. We will make follow up.
|
the CI error is from broken trunk: test/inductor/test_fp8.py::TestFP8LoweringCPU::test_rowwise_scaling_acceptable_input_dims_M_1024_K_32_N_16_persistent_matmul_False_cpu https://hud.pytorch.org/pytorch/pytorch/commit/edda74bb2bd946d18612f62ecb2f1337056523c8 |
|
@pytorchmergebot merge -i |
Merge startedYour change will be merged while ignoring the following 6 checks: inductor / unit-test / inductor-cpu-core-test (3.12) / test (inductor_core, 2, 2, linux.c7i.2xlarge), inductor / unit-test / inductor-cpu-core-test (3.11) / test (inductor_core, 1, 2, linux.c7i.2xlarge), inductor / unit-test / inductor-cpu-core-test (3.12) / test (inductor_core, 1, 2, linux.c7i.2xlarge), inductor / unit-test / inductor-cpu-core-test (3.13) / test (inductor_core, 2, 2, linux.c7i.2xlarge), inductor / unit-test / inductor-cpu-core-test (3.11) / test (inductor_core, 2, 2, linux.c7i.2xlarge), inductor / unit-test / inductor-cpu-core-test (3.13) / test (inductor_core, 1, 2, linux.c7i.2xlarge) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…split_factor (pytorch#178735)" This reverts commit 7b4db62. Reverted pytorch#178735 on behalf of https://github.com/malfet due to Not sure what's wrong with TD, but it breaks distributed tests, see https://hud.pytorch.org/hud/pytorch/pytorch/38dff61c1bc3f4b6cece9734c2412a9fa5db53ce/1?per_page=50&name_filter=distributed&mergeEphemeralLF=true ([comment](pytorch#178735 (comment)))
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…ctor (#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: #178735 Approved by: https://github.com/zpcore
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…split_factor (pytorch#178735)" This reverts commit 7b4db62. Reverted pytorch#178735 on behalf of https://github.com/malfet due to Not sure what's wrong with TD, but it breaks distributed tests, see https://hud.pytorch.org/hud/pytorch/pytorch/38dff61c1bc3f4b6cece9734c2412a9fa5db53ce/1?per_page=50&name_filter=distributed&mergeEphemeralLF=true ([comment](pytorch#178735 (comment)))
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…split_factor (pytorch#178735)" This reverts commit 7b4db62. Reverted pytorch#178735 on behalf of https://github.com/malfet due to Not sure what's wrong with TD, but it breaks distributed tests, see https://hud.pytorch.org/hud/pytorch/pytorch/38dff61c1bc3f4b6cece9734c2412a9fa5db53ce/1?per_page=50&name_filter=distributed&mergeEphemeralLF=true ([comment](pytorch#178735 (comment)))
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…179208) View ops (flatten) produce literal _StridedShard placements with use_strided_shard_as_shard_order=False. Previously, downstream ops could auto-detect this flag incorrectly due to `use_strided_shard_as_shard_order` not getting correctly propagate into downstream DTensorSpec. This change: - Adds _propagate_use_strided_shard_flag in the sharding propagator as a centralized post-processing step for all OpStrategy results, ensuring use_strided_shard_as_shard_order is always inherited from input specs. - Adds a guard in view ops to error on inputs with use_strided_shard_as_shard_order=True (shard-order-encoded _StridedShard would be misinterpreted by dimension mapping). - Improves __post_init__ auto-detection to actually attempt shard order decoding before setting the flag to True. - Revert temporary fix in #178735. Authored with Claude. Pull Request resolved: #179208 Approved by: https://github.com/weifengpy
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…split_factor (pytorch#178735)" This reverts commit 7b4db62. Reverted pytorch#178735 on behalf of https://github.com/malfet due to Not sure what's wrong with TD, but it breaks distributed tests, see https://hud.pytorch.org/hud/pytorch/pytorch/38dff61c1bc3f4b6cece9734c2412a9fa5db53ce/1?per_page=50&name_filter=distributed&mergeEphemeralLF=true ([comment](pytorch#178735 (comment)))
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…split_factor (pytorch#178735)" This reverts commit 7b4db62. Reverted pytorch#178735 on behalf of https://github.com/malfet due to Not sure what's wrong with TD, but it breaks distributed tests, see https://hud.pytorch.org/hud/pytorch/pytorch/38dff61c1bc3f4b6cece9734c2412a9fa5db53ce/1?per_page=50&name_filter=distributed&mergeEphemeralLF=true ([comment](pytorch#178735 (comment)))
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…ytorch#179208) View ops (flatten) produce literal _StridedShard placements with use_strided_shard_as_shard_order=False. Previously, downstream ops could auto-detect this flag incorrectly due to `use_strided_shard_as_shard_order` not getting correctly propagate into downstream DTensorSpec. This change: - Adds _propagate_use_strided_shard_flag in the sharding propagator as a centralized post-processing step for all OpStrategy results, ensuring use_strided_shard_as_shard_order is always inherited from input specs. - Adds a guard in view ops to error on inputs with use_strided_shard_as_shard_order=True (shard-order-encoded _StridedShard would be misinterpreted by dimension mapping). - Improves __post_init__ auto-detection to actually attempt shard order decoding before setting the flag to True. - Revert temporary fix in pytorch#178735. Authored with Claude. Pull Request resolved: pytorch#179208 Approved by: https://github.com/weifengpy
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…split_factor (pytorch#178735)" This reverts commit 7b4db62. Reverted pytorch#178735 on behalf of https://github.com/malfet due to Not sure what's wrong with TD, but it breaks distributed tests, see https://hud.pytorch.org/hud/pytorch/pytorch/38dff61c1bc3f4b6cece9734c2412a9fa5db53ce/1?per_page=50&name_filter=distributed&mergeEphemeralLF=true ([comment](pytorch#178735 (comment)))
…ctor (pytorch#178735) we have two source of _StridedShard * FSDP2 + TP sharding on same dim, split_factor can be interpreated with a device order * view, split_factor may not be interpreated with a device order when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement Pull Request resolved: pytorch#178735 Approved by: https://github.com/zpcore
…ytorch#179208) View ops (flatten) produce literal _StridedShard placements with use_strided_shard_as_shard_order=False. Previously, downstream ops could auto-detect this flag incorrectly due to `use_strided_shard_as_shard_order` not getting correctly propagate into downstream DTensorSpec. This change: - Adds _propagate_use_strided_shard_flag in the sharding propagator as a centralized post-processing step for all OpStrategy results, ensuring use_strided_shard_as_shard_order is always inherited from input specs. - Adds a guard in view ops to error on inputs with use_strided_shard_as_shard_order=True (shard-order-encoded _StridedShard would be misinterpreted by dimension mapping). - Improves __post_init__ auto-detection to actually attempt shard order decoding before setting the flag to True. - Revert temporary fix in pytorch#178735. Authored with Claude. Pull Request resolved: pytorch#179208 Approved by: https://github.com/weifengpy
Stack from ghstack (oldest at bottom):
we have two source of _StridedShard
when split_factor cannot be interpreated with a device order, graph-based planner fails, falling back to greedy planning. It treats _StridedShard as a opague placement