Skip to content

ad hoc changes to unblock Expert Parallel prototype - #141937

Closed
tianyu-l wants to merge 2 commits into
gh/tianyu-l/6/basefrom
gh/tianyu-l/6/head
Closed

tianyu-l wants to merge 2 commits into
gh/tianyu-l/6/basefrom
gh/tianyu-l/6/head

Conversation

@tianyu-l

@tianyu-l tianyu-l commented Dec 3, 2024 •

Copy link
Copy Markdown
Contributor

tianyu-l added a commit that referenced this pull request Dec 3, 2024
ghstack-source-id: 3c19fd9
Pull Request resolved: #141937
@pytorch-bot

pytorch-bot Bot commented Dec 3, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 4 New Failures

As of commit 8404021 with merge base 5d3bc63 (image):

NEW FAILURES - The following jobs have failed:

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

@pytorch-bot pytorch-bot Bot added oncall: distributed Add this issue/PR to distributed oncall triage queue labels Dec 3, 2024
@tianyu-l
tianyu-l marked this pull request as draft December 3, 2024 04:16
@github-actions

github-actions Bot commented Dec 3, 2024

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.

tianyu-l added a commit to pytorch/torchtitan that referenced this pull request Dec 3, 2024
The expert-choice MoE implementation is mostly from torchtune: meta-pytorch/torchtune#1902
The PR requires (ad hoc) changes to pytorch: pytorch/pytorch#141937

Issue tracking:
- [ ] [dp2ep] how to apply FSDP only to the non-MoE modules?
- [ ] [dp2ep] `shard_dim_alltoall` not robust (especially during backward with more than 1D)
- [ ] [tp2ep] backward efficiency may not optimized (e.g. right now `aten.scatter.src` only supports [replicate](https://github.com/pytorch/pytorch/blob/main/torch/distributed/tensor/_ops/_tensor_ops.py#L368) sharding prop)
- [ ] [tp2ep] using DTensor (e.g. in "tp2ep"), the backward `aten.scatter.src` requires `_allow_implicit_replication` (maybe because in backward some tensor is not generated as DTensor)
- [ ] some other issues tracked in pytorch/pytorch#141937
- [ ] `torch.compile` fails on `torch.topk`

Haven't worked on
- softmax scoring instead of sigmoid (can be done similarly, would incur extra communications)
- part of DP (e.g. CP) to EP

Not considering
- shared expert overlapping
- token-choice MoE

[ghstack-poisoned]
cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o

[ghstack-poisoned]
tianyu-l added a commit that referenced this pull request Dec 9, 2024
ghstack-source-id: 7b11857
Pull Request resolved: #141937
@github-actions

github-actions Bot commented Feb 8, 2025

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 Feb 8, 2025
@github-actions github-actions Bot closed this Mar 10, 2025
@github-actions
github-actions Bot deleted the gh/tianyu-l/6/head branch April 11, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: distributed Add this issue/PR to distributed oncall triage queue Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant