Skip to content

[DTensor] preserve norm on NormPartial - #173569

Closed
pianpwk wants to merge 3 commits into
gh/pianpwk/63/basefrom
gh/pianpwk/63/head
Closed

pianpwk wants to merge 3 commits into
gh/pianpwk/63/basefrom
gh/pianpwk/63/head

Conversation

@pianpwk

@pianpwk pianpwk commented Jan 27, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jan 27, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@pytorch-bot

pytorch-bot Bot commented Jan 27, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (5 Unrelated Failures)

As of commit f338ead with merge base 5825d20 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

pianpwk added a commit that referenced this pull request Jan 27, 2026
ghstack-source-id: df78f25
Pull Request resolved: #173569
@pianpwk pianpwk changed the title preserve norm on NormPartial [DTensor] preserve norm on NormPartial Jan 27, 2026
pianpwk added a commit that referenced this pull request Jan 27, 2026
ghstack-source-id: 6855a70
Pull Request resolved: #173569
@@ -315,6 +315,13 @@ def common_reduction_strategy(
# when the partial reduction op matches the global reduction op,
# we can delay redistribution (i.e max, max)
if isinstance(p, Partial) and p.reduce_op != reduction_op:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you remind me why it's under p.reduce_op != reduction_op?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sorry, clauded. I think the update looks more intuitive.

pianpwk added a commit that referenced this pull request Jan 27, 2026
ghstack-source-id: 57675dc
Pull Request resolved: #173569
@pianpwk
pianpwk requested a review from wconstab January 27, 2026 23:28

@tianyu-l tianyu-l left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, thanks

@pianpwk

pianpwk commented Jan 28, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 28, 2026
@pytorchmergebot

Copy link
Copy Markdown
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

@jeanschmidt

jeanschmidt commented Feb 1, 2026 •

Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "breaks internal signals" -c ghfirst

@pytorch-bot

pytorch-bot Bot commented Feb 1, 2026

Copy link
Copy Markdown

❌ 🤖 pytorchbot command failed:

@pytorchbot: error: unrecognized arguments: breaks internal signals

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

Try @pytorchbot --help for more info.

@jeanschmidt

Copy link
Copy Markdown
Contributor

@pytorchbot revert -m "breaks internal signals" -c ghfirst

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pianpwk your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Feb 1, 2026
@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Feb 1, 2026
kapilsh pushed a commit to kapilsh/pytorch that referenced this pull request Feb 2, 2026
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 3, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: 4e6258e
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 3, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: d94772d
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 3, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: aba91dc
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 3, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: de6d6b4
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 6, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: c5ee918
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 6, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: d7ed318
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 6, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: 0202ff0
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 6, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: 182c594
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 6, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: 5e3ec64
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 7, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: 3245f3e
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 7, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: b1b0b06
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 7, 2026
pytorch/pytorch#173569 changes how NormPartial works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with previous result (also FSDP).
ghstack-source-id: ad87608
Pull-Request: #2315
fegin added a commit to pytorch/torchtitan that referenced this pull request Feb 7, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* __->__ #2315

pytorch/pytorch#173569 changes how NormPartial
works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with
previous result (also FSDP).
@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label Apr 2, 2026
TXacs pushed a commit to McmillanTAC/torchtitan that referenced this pull request Apr 13, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* __->__ pytorch#2315

pytorch/pytorch#173569 changes how NormPartial
works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with
previous result (also FSDP).
ACharacterInASimulation pushed a commit to ACharacterInASimulation/torchtitan that referenced this pull request Apr 21, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.14.0)
(oldest at bottom):
* __->__ pytorch#2315

pytorch/pytorch#173569 changes how NormPartial
works and potentially change the loss.

This PR changes
1. Only compare FSDP and HSDP for one step.
2. Have a seperate run to compare the loss of FSDP after 100 steps with
previous result (also FSDP).
@github-actions github-actions Bot closed this May 2, 2026
@github-actions
github-actions Bot deleted the gh/pianpwk/63/head branch June 2, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: distributed (dtensor) release notes category Reverted Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants