Skip to content

Avoid creating Python OpSchema in the DTensor dispatch fast path#166372

Closed
swolchok wants to merge 17 commits intogh/swolchok/864/basefrom
gh/swolchok/864/head
Closed

Avoid creating Python OpSchema in the DTensor dispatch fast path#166372
swolchok wants to merge 17 commits intogh/swolchok/864/basefrom
gh/swolchok/864/head

Conversation

All we need to do is move a few checks around.

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 28, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit d44b6cf with merge base 780e325 (image):

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.

…sor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Oct 28, 2025
All we need to do is move a few checks around.

ghstack-source-id: 2cd88a6
Pull Request resolved: #166372
@swolchok swolchok added the release notes: distributed (dtensor) release notes category label Oct 28, 2025
…ing Python OpSchema in the DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Oct 31, 2025
All we need to do is move a few checks around.

ghstack-source-id: bc2894d
Pull Request resolved: #166372
…e DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Oct 31, 2025
All we need to do is move a few checks around.

ghstack-source-id: cd5c2e8
Pull Request resolved: #166372
…t path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Oct 31, 2025
All we need to do is move a few checks around.

ghstack-source-id: 1528ed0
Pull Request resolved: #166372
…spatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Oct 31, 2025
All we need to do is move a few checks around.

ghstack-source-id: 0460fff
Pull Request resolved: #166372
…atch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
swolchok added a commit that referenced this pull request Nov 1, 2025
All we need to do is move a few checks around.

ghstack-source-id: 8d2fae7
Pull Request resolved: #166372
…t path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
…n OpSchema in the DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
@swolchok swolchok requested review from XilunWu and wconstab November 3, 2025 23:29
… dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
…r dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
…ma in the DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
…t path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
…in the DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
@ezyang ezyang requested a review from zpcore November 12, 2025 03:51
…comments on "Avoid creating Python OpSchema in the DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
…ensor on "Avoid creating Python OpSchema in the DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
…n OpSchema in the DTensor dispatch fast path"

All we need to do is move a few checks around.

cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta msaroufim dcci

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Starting merge as part of PR stack under #167475

pytorchmergebot pushed a commit that referenced this pull request Nov 13, 2025
pytorchmergebot pushed a commit that referenced this pull request Nov 13, 2025
…hecks (#167475)

This seems to generate a several-microsecond performance improvement in the detach benchmark I've been using.

Pull Request resolved: #167475
Approved by: https://github.com/ezyang
ghstack dependencies: #167051, #166372, #166808
Khanaksahu pushed a commit to Khanaksahu/pytorch that referenced this pull request Nov 17, 2025
All we need to do is move a few checks around.

ghstack-source-id: 106864a
Pull Request resolved: pytorch/pytorch#166372
Silv3S pushed a commit to Silv3S/pytorch that referenced this pull request Nov 18, 2025
…orch#166372)

All we need to do is move a few checks around.

Pull Request resolved: pytorch#166372
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#167051
Silv3S pushed a commit to Silv3S/pytorch that referenced this pull request Nov 18, 2025
Silv3S pushed a commit to Silv3S/pytorch that referenced this pull request Nov 18, 2025
…hecks (pytorch#167475)

This seems to generate a several-microsecond performance improvement in the detach benchmark I've been using.

Pull Request resolved: pytorch#167475
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#167051, pytorch#166372, pytorch#166808
pytorchmergebot pushed a commit that referenced this pull request Nov 21, 2025
```
git revert --no-commit 567dcdb 200156e 3d801a4 2034ca9 480b4ff f570e58
```

    And Revert "[DTensor] Document fast-path dispatch (#168192)"
    And Revert "[DTensor] Fix deadlock after fast cache clear (#168069)"

Reverts:
* #167860
* #167588
* #167475
* #166808
* #166372
* #168192
* #168069

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: #168264
Approved by: https://github.com/seemethere, https://github.com/malfet
JacobSzwejbka pushed a commit that referenced this pull request Dec 8, 2025
```
git revert --no-commit 567dcdb 200156e 3d801a4 2034ca9 480b4ff f570e58
```

    And Revert "[DTensor] Document fast-path dispatch (#168192)"
    And Revert "[DTensor] Fix deadlock after fast cache clear (#168069)"

Reverts:
* #167860
* #167588
* #167475
* #166808
* #166372
* #168192
* #168069

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

Pull Request resolved: #168264
Approved by: https://github.com/seemethere, https://github.com/malfet
@github-actions github-actions bot deleted the gh/swolchok/864/head branch December 14, 2025 02:20
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 oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (dtensor) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants