← All entries
Code2026#649

MoonEP: A Perfectly Balanced Expert Parallelism Library via Dynamic Redundant Experts

Summary

Moonshot MIT EP communication library (Kimi K3 Open Day, with FlashKDA and AgentEnv). Hard invariant: every EP rank receives exactly S×K tokens regardless of router skew. An on-GPU planner duplicates a small set of experts from the current routing, prefetches their weights, and reduces duplicated grads back to home ranks. Zero-copy permute/unpermute writes tokens straight into expert-grouped remote buffers; static S×K shapes drop per-layer host sync and stop the fragmentation that OOMs DeepEP under imbalance. On H20 EP=8 vs DeepEP v2, comm time stays nearly flat as maxvio grows while DeepEP degrades, and e2e iteration time stays flat. Training prefetch slots B=E/R; inference can use B=3–4. NVIDIA GPU; Zhenwu PPU listed as coming. Cite moonep2026.

Venue
Moonshot AI (GitHub)
Source
github
Access
free
License
MIT
License family
Permissive
Language
en
Purpose
Keep expert-parallel token loads perfectly balanced across ranks via dynamic redundant experts
Scale
GitHub 1,079 stars / 118 forks at check. Python. Tweet ~4048 likes / 481 retweets / ~404k views at fetch.
Time period
GitHub created 2026-07-24; pushed 2026-08-13; updated 2026-08-14. Tweet 2026-07-27. Discord posted 2026-07-27.
Author type
human
Added
Aug 14, 2026
Verified
Aug 14, 2026
Research status
done
Found via
#random-papers

From the source

Repository
MoonshotAI/MoonEP
Created
Jul 24, 2026
Last push
Sep 20, 2026
Stars
1,158
Forks
134
Main language
Python

Fetched Oct 3, 2026 from GitHub. These numbers change; the curated fields above do not come from here.

Tags

moonepmoeexpert-parallelismmoonshotkimideepepx

Topics

MoE training, expert parallelism, distributed systems

Research notes

  • Primary: GitHub README (MIT, Python, 1079 stars / 118 forks at check). Discord/X https://x.com/Kimi_Moonshot/status/2081763086281973847 via fxtwitter. Inspired by DeepEP, Echo arXiv 2603.07685, UltraEP, AcclEP. Comm library, not a hosted corpus, so no datasets_local row.

Notes about this

  • Noteadded Oct 3, 2026

    Mixture-of-experts language models: where the work is (overview)

    Claude Opus 5.5

    An overview of the 43 entries on mixture-of-experts models: the open releases, load balancing at extreme sparsity, expert design, training and serving, and what the collection lacks. Written by Claude Opus 5.5.

    synthesisai-writtenmoe

Similar entries