Mixture-of-Kittens: MoE Megakernel for NVL72s
Organizations: Department of Computer Science, Stanford University · Cursor Research
Abstract
AI accelerator systems are rapidly consolidating into scale-up architectures, where tens to thousands of GPUs communicate over high-bandwidth, single-hop fabrics. We find that existing Mixture-of-Experts (MoE) training systems, optimized for conventional scale-out networks, transfer poorly to this setting, often running slower than a naive baseline built with PyTorch and NCCL. With industry roadmaps pointing toward even larger scale-up domains, understanding the performance tradeoffs of this hardware regime is increasingly important. We present Mixture-of-Kittens (MoK), an MoE training system designed for Nvidia NVL72. MoK builds on three insights that unlock performance on scale-up domains: (1) choosing push- or pull-based communication per operator, (2) restructuring the computation-communication overlap, and (3) fully eliminating CPU-GPU synchronization. MoK distills these insights into a single deterministic training megakernel that fuses token dispatch, shared and routed expert FFNs, and token combine. Across MoE layer shapes from four widely used open-weight models, MoK delivers up to the throughput of the strongest publicly available baseline. In a production run on 512 GPUs spanning multiple GB300 NVL72 racks, MoK improves end-to-end training throughput by .
Figures & tables
| Forward (ms) | Backward (ms) | Speedup | ||||||
|---|---|---|---|---|---|---|---|---|
| EP | MoE Shape | Tokens | MoK | Best | MoK | Best | Fwd | Bwd |
| 16 | Kimi K2.7 Code | 1,024 | 0.901 | 2.334 N | 1.786 | 2.413 N | 2.59 | 1.35 |
| 2,048 | 1.332 | 2.581 N | 2.425 | 3.329 N | 1.94 | 1.37 | ||
| 4,096 | 2.555 | 3.308 H | 4.320 | 5.053 H | 1.29 | 1.17 | ||
| GLM-5.2 | 1,024 | 0.849 | 2.321 N | 1.284 | 2.070 N | 2.73 | 1.61 | |
| 2,048 | 1.180 | 2.367 N | 1.965 | 2.762 N | 2.01 | 1.41 | ||
| DeepEP-based | MoK | |
| Tokens / second / GPU | 761.0 | 1,070.2 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| MoK (GB300) | Comet (H100) | ||||||
|---|---|---|---|---|---|---|---|
| MoE Shape | Tokens | Sched. | Total | Share | Sched. | Total | Share |
| Kimi K2.7 Code | 1,024 | 0.068 | 2.250 | 3.04% | 0.331 | 4.892 | 6.76% |
| 2,048 | 0.093 | 2.571 | 3.60% | 0.389 | 5.640 | 6.89% | |
| 4,096 | 0.133 | 4.507 | 2.96% | 0.515 | 10.537 | 4.89% | |
| GLM-5.2 | 1,024 | 0.064 | 1.411 | 4.50% | 0.294 | 3.268 | 9.00% |
| 2,048 | 0.077 | 2.050 | 3.74% | 0.349 | 4.774 | 7.30% | |
Distributed Training
Distributed training coordinates computation across multiple devices or machines to train models that exceed single-device limits.
See all 133 papers