[Feature] Add MoE expert tensor parallelism - #2007
Open
jayhenry wants to merge 7 commits into
Open
Conversation
jayhenry
force-pushed
the
etp_pr
branch
2 times, most recently
from
August 12, 2026 11:40
2087502 to
c6c042d
Compare
Collaborator
Author
|
@claude review |
jayhenry
force-pushed
the
etp_pr
branch
2 times, most recently
from
August 12, 2026 15:43
71433df to
ff3d262
Compare
Collaborator
Author
|
@claude review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR ports MoE expert tensor parallelism onto the latest
upstream/mainwhile keeping checkpoint formats topology-independent. The work is split into four ordered, independently testable commits.flowchart LR A["DTensor-aware HF planning"] --> B["InterleavedShard HF I/O"] B --> C["InterleavedShard DCP"] C --> D["Expert TP"]Changes
InterleavedShardHF checkpoint round trips.InterleavedShardDCP save/load and reshard planning.(FSDP, EP, ETP)meshes and Expert TP support for Naive, All2All, and DeepEP dispatchers, including async/Domino and tile-wise FP8 paths.Verification
git diff --checkpassed.InterleavedSharddistributed tests passed on both 4 and 8 GPUs.upstream/mainparent, EP1 throughput changed by +0.12% (BF16) and -0.10% (FP8), with matching loss and peak memory.Result
The final tree preserves the existing Expert TP behavior and numerical results while integrating it with the current
upstream/maincheckpoint and training architecture.