Skip to content

[DTensor] Refactor strategy/rule registration into dedicated module#168221

Closed
wconstab wants to merge 2 commits intogh/wconstab/463/basefrom
gh/wconstab/463/head
Closed

[DTensor] Refactor strategy/rule registration into dedicated module#168221
wconstab wants to merge 2 commits intogh/wconstab/463/basefrom
gh/wconstab/463/head

Conversation

@wconstab
Copy link
Contributor

@wconstab wconstab commented Nov 20, 2025

Stack from ghstack (oldest at bottom):

To avoid circular import issues:

  • utils.py used to include registration functions which import/depend on
    DTensor.sharding_propagator
  • I plan to use other utils from utils.py inside sharding_propagator.py

To avoid circular import issues:
- utils.py used to include registration functions which import/depend on
  DTensor.sharding_propagator
- I plan to use other utils from utils.py inside sharding_propagator.py

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 20, 2025

🔗 Helpful Links

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

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

❌ 3 New Failures

As of commit 557fedc with merge base 6edf2aa (image):

NEW FAILURES - The following jobs have failed:

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

…ed module"

To avoid circular import issues:
- utils.py used to include registration functions which import/depend on
  DTensor.sharding_propagator
- I plan to use other utils from utils.py inside sharding_propagator.py

[ghstack-poisoned]
)


# convenient wrapper to register sharding propagation rules
Copy link
Contributor Author

Choose a reason for hiding this comment

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

no code change, i promise. just moved from other file

Copy link
Collaborator

@albanD albanD left a comment

Choose a reason for hiding this comment

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

Ok!

@wconstab
Copy link
Contributor Author

@pytorchbot merge -I

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 23, 2025

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: unrecognized arguments: -I

usage: @pytorchbot [-h] {merge,revert,rebase,label,drci,cherry-pick} ...

Try @pytorchbot --help for more info.

@wconstab
Copy link
Contributor Author

@pytorchbot merge -i

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 23, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 2 checks: pull / linux-jammy-rocm-py3.10 / build, inductor / inductor-cpu-test / test (cpu_inductor_torchbench, 1, 2, linux.2xlarge.amx)

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

aditvenk added a commit to aditvenk/autoparallel that referenced this pull request Nov 25, 2025
xmfan pushed a commit to meta-pytorch/autoparallel that referenced this pull request Nov 26, 2025
JacobSzwejbka pushed a commit that referenced this pull request Dec 8, 2025
…168221)

To avoid circular import issues:
- utils.py used to include registration functions which import/depend on
  DTensor.sharding_propagator
- I plan to use other utils from utils.py inside sharding_propagator.py
Pull Request resolved: #168221
Approved by: https://github.com/albanD
tiendatngcs pushed a commit to tiendatngcs/pytorch-Dec25 that referenced this pull request Dec 10, 2025
To avoid circular import issues:
- utils.py used to include registration functions which import/depend on
  DTensor.sharding_propagator
- I plan to use other utils from utils.py inside sharding_propagator.py

ghstack-source-id: e2087c8
Pull Request resolved: pytorch/pytorch#168221
wconstab added a commit that referenced this pull request Dec 16, 2025
wconstab added a commit that referenced this pull request Dec 16, 2025
…module (#168221)"

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Dec 16, 2025
…module (#168221)"

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

ghstack-source-id: d68ea51
Pull Request resolved: #170615
wconstab added a commit that referenced this pull request Dec 16, 2025
… dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Dec 16, 2025
…module (#168221)"

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

ghstack-source-id: 8c00738
Pull Request resolved: #170615
wconstab added a commit that referenced this pull request Dec 17, 2025
… dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Dec 17, 2025
…module (#168221)"

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

ghstack-source-id: 29c372c
Pull Request resolved: #170615
wconstab added a commit that referenced this pull request Dec 17, 2025
…module (#168221)"

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

ghstack-source-id: 97ee16a
Pull Request resolved: #170615
wconstab added a commit that referenced this pull request Dec 17, 2025
…egistration into dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Dec 17, 2025
… dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Dec 17, 2025
…egistration into dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Dec 17, 2025
… dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Dec 17, 2025
…module (#168221)" (#170615)

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.
Pull Request resolved: #170615
Approved by: https://github.com/wdvr, https://github.com/malfet
pytorchmergebot added a commit that referenced this pull request Dec 18, 2025
… module (#168221)" (#170615)

This reverts commit c65f67b.

Reverted #170615 on behalf of https://github.com/jeanschmidt due to Required to revert #170030 ([comment](#170615 (comment)))
wconstab added a commit that referenced this pull request Dec 18, 2025
…egistration into dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Dec 18, 2025
… dedicated module (#168221)""

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

[ghstack-poisoned]
weifengpy pushed a commit that referenced this pull request Dec 19, 2025
…module (#168221)"

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

ghstack-source-id: b787988
Pull Request resolved: #170615
weifengpy pushed a commit that referenced this pull request Dec 19, 2025
…module (#168221)"

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.

ghstack-source-id: b787988
Pull Request resolved: #170615
pytorchmergebot pushed a commit that referenced this pull request Dec 19, 2025
…module (#168221)" (#170615)

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.
Pull Request resolved: #170615
Approved by: https://github.com/wdvr, https://github.com/malfet
majing921201 pushed a commit to majing921201/pytorch that referenced this pull request Dec 19, 2025
majing921201 pushed a commit to majing921201/pytorch that referenced this pull request Dec 19, 2025
…module (pytorch#168221)" (pytorch#170615)

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.
Pull Request resolved: pytorch#170615
Approved by: https://github.com/wdvr, https://github.com/malfet
xgz2 pushed a commit that referenced this pull request Dec 22, 2025
… module (#168221)" (#170615)

This reverts commit c65f67b.

Reverted #170615 on behalf of https://github.com/jeanschmidt due to Required to revert #170030 ([comment](#170615 (comment)))
xgz2 pushed a commit that referenced this pull request Dec 22, 2025
…module (#168221)" (#170615)

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.
Pull Request resolved: #170615
Approved by: https://github.com/wdvr, https://github.com/malfet
@github-actions github-actions bot deleted the gh/wconstab/463/head branch December 24, 2025 02:19
drizzlezyk pushed a commit to Ascend/pytorch that referenced this pull request Jan 7, 2026
Co-authored-by: dilililiwhy<why.wuhuanyu@huawei.com>



# message auto-generated for no-merge-commit merge:
!28630 merge main_sync_20251202 into master

TORCH MAIN SYNC : strategy/rule registration refactoring (DTensor)

Created-by: dilililiwhy
Commit-by: dilililiwhy
Merged-by: ascend-robot
Description: <!--  Thanks for sending a pull request! 
-->

**What type of PR is this?**
> Uncomment only one ` /kind <>` line, hit enter to put that in a new line, and remove leading whitespaces from that line:
>
> /kind bug
> /kind task
> /kind feature


**What does this PR do / why do we need it**:
2.10.0.dev20251124

**Which issue(s) this PR fixes**:
<!-- 
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
-->
Fixes #

**Special notes for your reviewers**:
pytorch/pytorch#166264
pytorch/pytorch#167782
pytorch/pytorch#168221



See merge request: Ascend/pytorch!28630
krastogi-in pushed a commit to krastogi-in/pytorch that referenced this pull request Jan 9, 2026
…module (pytorch#168221)" (pytorch#170615)

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.
Pull Request resolved: pytorch#170615
Approved by: https://github.com/wdvr, https://github.com/malfet
krastogi-in pushed a commit to krastogi-in/pytorch that referenced this pull request Jan 9, 2026
krastogi-in pushed a commit to krastogi-in/pytorch that referenced this pull request Jan 9, 2026
…module (pytorch#168221)" (pytorch#170615)

This reverts commit cb3754f.

Reverting this change as it affects the import path of a publicly
used API.
Pull Request resolved: pytorch#170615
Approved by: https://github.com/wdvr, https://github.com/malfet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants