[MoE] Preserve TP sharding with explicit EP - #52100
Draft
LiuYinfeng01 wants to merge 4 commits into
Draft
Conversation
Allow an experimental EP size independent of TP and construct fixed-lane EP groups while rejecting unsupported backends and parallel modes. Signed-off-by: Liuyinfeng01 <yinfeliu@amd.com>
Use fixed-lane EP ownership for expert mapping and weight filtering while retaining tensor-parallel expert shards and the existing late TP reduction. Signed-off-by: Liuyinfeng01 <yinfeliu@amd.com>
LiuYinfeng01
requested review from
22quinn,
AndreasKaratzas,
ProExpertProg,
WoosukKwon,
hmellor,
houseroad,
mgoin,
pavanimajety,
robertgshaw2-redhat,
tlrmchlsmth,
yewentao256,
youkaichao and
zyongye
as code owners
August 13, 2026 04:54
Exercise explicit EP2 ownership with Kimi-K3's 896 routed experts so each rank owns the validated 448-expert shard. Signed-off-by: Liuyinfeng01 <yinfeliu@amd.com>
Verify that explicit EP2 keeps the physical TP4 shard for Kimi-K3's latent up-projection path. Signed-off-by: Liuyinfeng01 <yinfeliu@amd.com>
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
Stacked on #52099. The topology commit disappears once #52099 merges.
Kimi-K3 has 896 routed experts. With EP2, each process owns 448 experts with TP4-sharded weights; four ranks in a TP group own distinct shards of the same 448-expert set. No Kimi production-code special case is required: the existing ROCm latent runner consumes the preserved physical TP size.
8-GPU validation
Local/global number of experts: 448/896; weight filter loads448/896MoEPrepareAndFinalizeNaiveDPEPModular+AiterExpertsTest plan
git diff --check