Repository navigation
[simplefsdp auto-bucketing] manual bucketing with plan - #158321
ruisizhang123 wants to merge 5 commits into
Conversation
🔗 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 FailuresAs of commit 08b7820 with merge base 5dad5b4 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
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]
…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]
…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]
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
ghstack-source-id: 10945cd Pull-Request: pytorch/pytorch#158321
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:
torch._inductor.config.simplefsdp.bucketing_plan= ["tok_embeddings", "layers.[0-31]", "norm+output"].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