GC-MoE K3: A Green-Context Role Graph for Latent Mixture-of-Experts Decode
Organizations: Alibaba Inc.
Abstract
Kimi K3 combines a latent routed mixture of experts with full-width shared experts. A complete feed-forward evaluation must score and select experts, project tokens into the latent space, exchange tokens across expert-parallel ranks, compute the routed and shared branches, and normalize and project the routed sum before joining the branches. We present GC-MoE K3, a datacenter Blackwell implementation that schedules this entire evaluation as a CUDA Graph across two Green Contexts. Five base roles split input projection, routing, dispatch, expert computation, and finalization. Dispatch can fill the routed input ring while the compute partition evaluates shared experts. Finalize waits for the expert owners needed by each token and overlaps routed reduction and RMSNorm with loading the output projection weights. Conditional roles reuse the communication partition for routed computation and reduce split- projection partials. On GB200 at EP8, EP16, and EP32, the operator is faster at all 24 measured configurations than the paired SGLang-style reference (mean speedup ). A comparison with historical vLLM-style measurements gives across the same 24 shapes. Both latency comparisons time single-layer graph replay on synthetic K3-shaped inputs with a residual prefix. The separate paired numerical suite passes all 142 cases and 2,936 rank checks.
Figures & tables
| Path | Front | Routed and shared experts | Output |
|---|---|---|---|
| SGLang-style | Merged gate/down, then Top16 and FP8 staging | Mega MoE routed call, shared MLP on a side stream | Routed norm and up projection, then join and add shared/prefix |
| vLLM-style | Gate/Top16 can overlap latent down projection, then staging | Mega MoE routed call, then shared MLP on the main stream | Routed norm, BF16 projection with shared addend, then prefix add |
| GC-MoE K3 | Joint front projection with latent quantization, then router | Dispatch and a four-phase expert compute scheduler on separate SM partitions | Peer-ready combine, norm, up projection and shared/prefix addition |
| SGLang / GC (paired) | vLLM / GC (historical) | ||||
|---|---|---|---|---|---|
| Group | Points | Mean | Peak | Mean | Peak |
| EP8 | 8 | 1.1102 | 1.1537 | 1.2962 | 1.4226 |
| EP16 | 8 | 1.1354 | 1.1804 | 1.3756 | 1.5011 |
| EP32 | 8 | 1.1514 | 1.2222 | 1.4236 | 1.5404 |
| All | 24 | 1.1324 | 1.2222 | 1.3651 | 1.5404 |
| Path | Minimum cosine | Maximum relative | Maximum absolute error |
|---|---|---|---|
| GC-MoE K3 | 0.999995410 | 0.003025480 | 0.50 |
| SGLang-style | 0.999996305 | 0.002748258 | 0.50 |
| vLLM-style | 0.999996006 | 0.002818683 | 0.50 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| EP | Tokens/rank | Total tokens | GC-MoE K3 | SGLang (paired) | vLLM (historical) |
|---|---|---|---|---|---|
| 8 | 1 | 8 | 135.065 | 154.775 | 192.141 |
| 8 | 2 | 16 | 157.357 | 181.541 | 215.983 |
| 8 | 4 | 32 | 182.449 | 201.645 | 241.794 |
| 8 | 8 | 64 | 214.038 | 233.386 | 275.104 |
| 8 | 16 | 128 | 247.180 | 276.877 | 314.660 |
| 8 | 32 | 256 | 287.506 | 325.036 | 360.202 |
Mixture-of-Experts Inference
Mixture-of-experts inference studies how to run sparsely activated expert models efficiently while preserving their quality.
See all 204 papers