KEMBAR78
[DTensor] Add guide for what to do about mixed torch.Tensor and DTensor operations by zou3519 · Pull Request #162651 · pytorch/pytorch · GitHub
Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Sep 10, 2025

…or operaitons

Also updates the error message to point to the guide.

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added ciflow/inductor oncall: distributed Add this issue/PR to distributed oncall triage queue labels Sep 10, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 10, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 5d3960b with merge base f4c33cd (image):
💚 Looks good so far! There are no failures yet. 💚

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

zou3519 added a commit that referenced this pull request Sep 10, 2025
…or operaitons

Also updates the error message to point to the guide.

ghstack-source-id: bd976a8
Pull Request resolved: #162651
…r and DTensor operations"

Also updates the error message to point to the guide.

[ghstack-poisoned]
@zou3519 zou3519 changed the title [DTensor] Add guide for what to do about mixed torch.Tensor and DTensor operaitons [DTensor] Add guide for what to do about mixed torch.Tensor and DTensor operations Sep 10, 2025
zou3519 added a commit that referenced this pull request Sep 10, 2025
…or operations

Also updates the error message to point to the guide.

ghstack-source-id: bd976a8
Pull Request resolved: #162651

So you got the following error message.
```
: got mixed torch.Tensor and DTensor, need to convert all
Copy link
Contributor

Choose a reason for hiding this comment

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

looks truncated?

can lead to silent incorrectness.

- [Turning on implicit replication in Python](https://github.com/pytorch/pytorch/blob/d8e6b2fddc54c748d976e8f0ebe4b63ebe36d85b/torch/distributed/tensor/experimental/__init__.py#L15)
- [Turning on implicit replication in C++](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/DTensorState.h#L10)
Copy link
Contributor

Choose a reason for hiding this comment

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

put this on a hash, not main, so the line number doesn't go stale

@ezyang
Copy link
Contributor

ezyang commented Sep 11, 2025

@ezyang
Copy link
Contributor

ezyang commented Sep 11, 2025

The heading organization is a bit sus

image

https://docs-preview.pytorch.org/pytorch/pytorch/162651/index.html

@zou3519
Copy link
Contributor Author

zou3519 commented Sep 17, 2025

Yup the heading was too big, I'll fix it.

…r and DTensor operations"

Also updates the error message to point to the guide.

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Sep 17, 2025
…or operations

Also updates the error message to point to the guide.

ghstack-source-id: 31f4f30
Pull Request resolved: #162651
@zou3519 zou3519 added the release notes: distributed (dtensor) release notes category label Sep 18, 2025
@zou3519
Copy link
Contributor Author

zou3519 commented Sep 18, 2025

@pytorchbot merge

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

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

pytorchmergebot pushed a commit that referenced this pull request Sep 19, 2025
This PR adds an experimental way to register a custom rule for if
inductor should partition the graph around an operator.

Test Plan:
- new test

Pull Request resolved: #163310
Approved by: https://github.com/ProExpertProg, https://github.com/BoyuanFeng, https://github.com/eellison
ghstack dependencies: #162117, #162307, #162651
zou3519 added a commit that referenced this pull request Sep 20, 2025
This PR adds an experimental way to register a custom rule for if
inductor should partition the graph around an operator.

Test Plan:
- new test

Pull Request resolved: #163310
Approved by: https://github.com/ProExpertProg, https://github.com/BoyuanFeng, https://github.com/eellison
ghstack dependencies: #162117, #162307, #162651
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
…or operations (pytorch#162651)

Also updates the error message to point to the guide.

Pull Request resolved: pytorch#162651
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#162117, pytorch#162307
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
This PR adds an experimental way to register a custom rule for if
inductor should partition the graph around an operator.

Test Plan:
- new test

Pull Request resolved: pytorch#163310
Approved by: https://github.com/ProExpertProg, https://github.com/BoyuanFeng, https://github.com/eellison
ghstack dependencies: pytorch#162117, pytorch#162307, pytorch#162651
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
…or operations (pytorch#162651)

Also updates the error message to point to the guide.

Pull Request resolved: pytorch#162651
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#162117, pytorch#162307
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
This PR adds an experimental way to register a custom rule for if
inductor should partition the graph around an operator.

Test Plan:
- new test

Pull Request resolved: pytorch#163310
Approved by: https://github.com/ProExpertProg, https://github.com/BoyuanFeng, https://github.com/eellison
ghstack dependencies: pytorch#162117, pytorch#162307, pytorch#162651
huydhn pushed a commit that referenced this pull request Sep 23, 2025
This PR adds an experimental way to register a custom rule for if
inductor should partition the graph around an operator.

Test Plan:
- new test

Pull Request resolved: #163310
Approved by: https://github.com/ProExpertProg, https://github.com/BoyuanFeng, https://github.com/eellison
ghstack dependencies: #162117, #162307, #162651
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
…or operations (pytorch#162651)

Also updates the error message to point to the guide.

Pull Request resolved: pytorch#162651
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#162117, pytorch#162307
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
This PR adds an experimental way to register a custom rule for if
inductor should partition the graph around an operator.

Test Plan:
- new test

Pull Request resolved: pytorch#163310
Approved by: https://github.com/ProExpertProg, https://github.com/BoyuanFeng, https://github.com/eellison
ghstack dependencies: pytorch#162117, pytorch#162307, pytorch#162651
@github-actions github-actions bot deleted the gh/zou3519/1200/head branch October 19, 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