Skip to content

[DTensor] Add decomposition-based sharding propagation to strategy validator#174638

Closed
wconstab wants to merge 4 commits intogh/wconstab/527/basefrom
gh/wconstab/527/head
Closed

[DTensor] Add decomposition-based sharding propagation to strategy validator#174638
wconstab wants to merge 4 commits intogh/wconstab/527/basefrom
gh/wconstab/527/head

Conversation

@wconstab
Copy link
Copy Markdown
Contributor

@wconstab wconstab commented Feb 9, 2026

Stack from ghstack (oldest at bottom):

The validator previously only discovered sharding rules via
op_single_dim_strategy_funcs and op_strategy_funcs. This adds a
third fallback path that uses DecompShardingStrategy to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared _extract_rules_from_op_strategy helper to avoid
duplicating the normalize/filter logic between the op_strategy_funcs
and decomp paths.

Authored with Claude.

…lidator

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Feb 9, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/174638

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 37 Pending

As of commit 1a189e8 with merge base f365425 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

wconstab added a commit that referenced this pull request Feb 9, 2026
…lidator

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

ghstack-source-id: 37e8918
Pull Request resolved: #174638
@wconstab wconstab requested a review from pianpwk February 10, 2026 04:56
…strategy validator"

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Feb 10, 2026
…lidator

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

ghstack-source-id: 6c3a962
Pull Request resolved: #174638
Copy link
Copy Markdown
Contributor

@pianpwk pianpwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in claude we trust

…strategy validator"

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Feb 11, 2026
…lidator

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

ghstack-source-id: cb81a66
Pull Request resolved: #174638
…strategy validator"

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Feb 11, 2026
…lidator

The validator previously only discovered sharding rules via
`op_single_dim_strategy_funcs` and `op_strategy_funcs`. This adds a
third fallback path that uses `DecompShardingStrategy` to discover rules
for ops that have decompositions but no direct strategy registration.

Extracts a shared `_extract_rules_from_op_strategy` helper to avoid
duplicating the normalize/filter logic between the `op_strategy_funcs`
and decomp paths.

Authored with Claude.

ghstack-source-id: c7df5ee
Pull Request resolved: #174638
@wconstab
Copy link
Copy Markdown
Contributor Author

squashed

@wconstab wconstab closed this Feb 11, 2026
@github-actions github-actions Bot deleted the gh/wconstab/527/head branch March 14, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants