Skip to content

[simplefsdp auto-bucketing] manual bucketing with plan - #158321

Closed
ruisizhang123 wants to merge 5 commits into
gh/ruisizhang123/6/basefrom
gh/ruisizhang123/6/head
Closed

ruisizhang123 wants to merge 5 commits into
gh/ruisizhang123/6/basefrom
gh/ruisizhang123/6/head

Conversation

@ruisizhang123

@ruisizhang123 ruisizhang123 commented Jul 15, 2025 •

Copy link
Copy Markdown
Contributor

This manual plan takes a list of module definition as input, and bucket all-gather/reduce-scatter based on the definition.

An example would be:

  • The plan is set to betorch._inductor.config.simplefsdp.bucketing_plan= ["tok_embeddings", "layers.[0-31]", "norm+output"].
  • The inductor backend will group nodes from the same module as a bucket. Here, the bucket groups are tok_embeddings, layers.0, layers.1, etc.

Stack from ghstack (oldest at bottom):

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jul 15, 2025 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 3 New Failures

As of commit 08b7820 with merge base 5dad5b4 (image):

NEW FAILURES - The following jobs have failed:

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

@github-actions

Copy link
Copy Markdown
Contributor

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.

[ghstack-poisoned]
[ghstack-poisoned]
This manual plan takes a list of module definition as input, and bucket all-gather/reduce-scatter based on the definition.

An example would be:

- The plan is set to be`torch._inductor.config.simplefsdp.bucketing_plan= ["tok_embeddings", "layers.[0-31]", "norm+output"]`. 
- The inductor backend will group nodes from the same module as a bucket. Here, the bucket groups are `tok_embeddings`, `layers.0`, `layers.1`, etc.




[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Aug 11, 2025
…cket helper function"

This pr is based on Diff D67292294 from yf225.

Major changes are:

- Change the function structure to be compatible with auto-bucketing
- Group bucketed nodes & dependencies with GroupedSchedulerNodes for easier reordering.

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):

* #160282
* #158609
* #158321
* #158098
*  __->__ #158097
* #157572



cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov

[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Aug 11, 2025
…tion"

This pr is based on Diff D67292294 from yf225.

Major changes are:

- Change the function structure to be compatible with auto-bucketing
- Group bucketed nodes & dependencies with GroupedSchedulerNodes for easier reordering.

Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom):

* #160282
* #158609
* #158321
* #158098
*  __->__ #158097
* #157572



cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov

[ghstack-poisoned]
[ghstack-poisoned]
@github-actions

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 Oct 19, 2025
Khanaksahu pushed a commit to Khanaksahu/pytorch that referenced this pull request Nov 17, 2025
@github-actions github-actions Bot closed this Nov 18, 2025
@github-actions
github-actions Bot deleted the gh/ruisizhang123/6/head branch December 19, 2025 02:19
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.

1 participant