Repository navigation
Update sharding propagation given single-dim migration upstream - #489
Merged
Merged
Conversation
PyTorch removed _mm_like_strategy when pytorch/pytorch#186667 migrated mm to single-dim strategy. Register AutoParallel's einsum strategy on the single-dim path and reuse _try_single_dim_strategy for expansion. Pass user kwargs through to DTensor OpSchema so single-dim strategies that depend on keyword-only arguments can compute metadata correctly. Authored with Claude. stack-info: PR: #489, branch: aditvenk/stack/1
aditvenk
force-pushed
the
aditvenk/stack/1
branch
from
June 12, 2026 19:01
250e8ae to
58f9494
Compare
Contributor
Author
|
CI won't pass till pytorch/pytorch#187199 gets into PyTorch nightly |
aditvenk
marked this pull request as draft
June 15, 2026 04:22
This was referenced Jun 15, 2026
aditvenk
marked this pull request as ready for review
June 15, 2026 04:23
fmassa
approved these changes
Jun 15, 2026
| assert isinstance(input_metas, tuple) | ||
| assert len(input_metas) == 2, "Only two args to einsum supported for now" | ||
|
|
||
| # ignore strategies with Partial inputs. |
Contributor
There was a problem hiding this comment.
Interesting, so now we have a richer set of sharding placements for matmul ops which are propagated, right? We might want to change this in the future to allow for partial inputs as well, but let's keep things as is for now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked PRs:
Update sharding propagation given single-dim migration upstream
PyTorch removed _mm_like_strategy when pytorch/pytorch#186667 migrated mm to single-dim strategy. Register AutoParallel's einsum strategy on the single-dim path and reuse _try_single_dim_strategy for expansion.
Pass user kwargs through to DTensor OpSchema so single-dim strategies that depend on keyword-only arguments can compute metadata correctly.
Authored with Claude.