Close Menu
NCIJ Network NCIJ Network
    What's Hot

    Ugandan opposition leader Kizza Besigye in ICU after collapsing in court, his wife says

    July 30, 2026

    Reform UK to hold press conference after Met rules out investigating Polanski over anti-Farage message – UK politics live | Politics

    July 30, 2026

    Digital euro app to incorporate highest accessibility standards

    July 30, 2026
    Facebook X (Twitter) Instagram
    Trending
    • Ugandan opposition leader Kizza Besigye in ICU after collapsing in court, his wife says
    • Reform UK to hold press conference after Met rules out investigating Polanski over anti-Farage message – UK politics live | Politics
    • Digital euro app to incorporate highest accessibility standards
    • ZDNET readers are skeptical of a foldable iPhone in 2026. Here’s what they think instead
    • Meet Token Saver: An Open-Source MCP Extension Using Local Hybrid RAG to Cut Claude PDF Token Costs 90-99%
    • Windows 11 KB5101684 update released with 42 changes and fixes
    • US Sanctions Iran-Linked HormuzSafe, Cites Bitcoin Payments
    • NASA Johnson Interns Shaping the Future of Exploration 
    • About
      • Our Team
      • Editorial Policy
      • Editorial Independence
      • International Support
    • Trust & Standards
      • AI Usage Policy
      • Conflict of Interest Policy
      • Corrections Policy
      • Ethics Policy
      • Fact-Checking Policy
      • Source Protection
    • Get Involved
      • Guide for Sources
      • Support Independent Journalism
    • Legal
      • Cookie Policy
      • Privacy Policy
      • Terms of Use
    Facebook X (Twitter) Instagram
    NCIJ Network NCIJ Network
    Thursday, July 30
    • Home
    • World
    • Ai
    • Business
    • Politics
    • Health
    • Crypto
    • Science
    • Technology
    • Cybersecurity
    • Defense & Security
    • Economy
    • Energy
    • Europe
    • More
      • Fact Check
      • Investigations
      • Opinion & Analysis
      • Environment
    NCIJ Network NCIJ Network
    Home»Artificial Intelligence

    Moonshot AI Open-Sources MoonEP: A Perfectly Balanced Expert Parallelism Library for MoE Training

    NCIJ NETWNCIJ NETWORKBy NCIJ NETWNCIJ NETWORKJuly 30, 2026 Artificial Intelligence No Comments6 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Moonshot AI has open-sourced MoonEP, an Expert Parallelism (EP) communication library for distributed Mixture-of-Experts (MoE) workloads. The team announced the release as a library built to make expert-parallel communication more efficient at scale. It ships under an MIT license.

    MoonEP arrived as part of Kimi K3 Open Day. Alongside the K3 model weights and technical report, Moonshot released three infrastructure codebases: MoonEP, FlashKDA, and AgentEnv. FlashKDA had already been open-sourced; MoonEP and AgentEnv were published with this release. MoonEP is one of the innovations behind a claimed 2.5× improvement in scaling efficiency for Kimi K3, a 2.8-trillion-parameter MoE model with native vision and a 1M-token context window.

    The problem MoonEP targets

    In expert parallelism, a router sends each token to its top-K experts, which live on different ranks. Routers are rarely balanced. Some experts get far more tokens than others.

    The repository quantifies skew with maxvio, defined as max_e (T_e / T̄) − 1, where T_e is tokens routed to expert e and T̄ is the expected count under perfect balance. A maxvio of 0 means perfectly balanced.

    Imbalance costs are structural, not incidental. A collective’s latency is set by its slowest participant, so the hottest rank determines iteration time. Worse, token counts per rank change every step. Those dynamic activation shapes fragment GPU memory and force per-layer host synchronization.

    The core idea: dynamic redundant experts

    MoonEP’s main mention is a hard invariant. Every rank receives exactly S × K tokens, no matter how skewed the routing is — where S is input tokens per rank and K is routed top-k per token.

    It achieves this by planning a small number of redundant experts online, directly from the current router outputs. Those duplicated experts are prefetched before expert computation. In the backward pass, their gradients are reduced back to their home ranks.

    The design is set up into three properties:

    1. Perfect balance: the S × K guarantee above, via online-planned redundant experts.
    2. Online planning: a near-optimal GPU planning kernel with negligible overhead. It is implemented in the CUTLASS CuTe DSL; setup.py pins nvidia-cutlass-dsl==4.4.2.
    3. Zero copy and static shapes: fused permute/unpermute. Tokens are written directly into their expert-grouped positions on remote ranks, and buffer views are returned to the computation. Only a fixed S × K buffer is needed, and statically known shapes eliminate per-layer MoE host synchronization.

    The interactive explainer below computes the resulting buffer and prefetch-pool sizes live from a config you control.

    Balanced Expert Library MoE MoonEP Moonshot OpenSources Parallelism perfectly Training
    NCIJ NETWNCIJ NETWORK
    • Website

    Keep Reading

    Meet Token Saver: An Open-Source MCP Extension Using Local Hybrid RAG to Cut Claude PDF Token Costs 90-99%

    Messi returns to MLS training 10 days after World Cup final heartbreak | Football News

    Prompt Engineering vs Loop Engineering vs Graph Engineering: What Changes at Each Layer

    Google AI Overviews become more common in search

    OpenAI report links coding agents to faster science software builds

    Liquid AI Releases LFM2.5-Encoder-230M and LFM2.5-Encoder-350M: Bidirectional Encoders That Stay Fast at 8K Context on CPU

    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    Ugandan opposition leader Kizza Besigye in ICU after collapsing in court, his wife says

    July 30, 2026

    Reform UK to hold press conference after Met rules out investigating Polanski over anti-Farage message – UK politics live | Politics

    July 30, 2026

    Digital euro app to incorporate highest accessibility standards

    July 30, 2026

    ZDNET readers are skeptical of a foldable iPhone in 2026. Here’s what they think instead

    July 30, 2026
    Latest Posts

    Who’s in Andy Burnham’s new Labour cabinet?

    July 22, 2026

    Streeting apologises after early prisoner release comments heard on mic

    July 22, 2026

    Mehr Risikokapital, mehr Rüstung – Reiches Start-up-Plan – POLITICO

    July 22, 2026

    Subscribe to News

    Get the latest sports news from NewsSite about world, sports and politics.

    NCIJ Network is an independent digital news platform delivering trusted investigative journalism, European and global news, in-depth analysis, and fact-based reporting with accuracy, transparency, and integrity.

    Facebook X (Twitter) Instagram Pinterest YouTube

    Ugandan opposition leader Kizza Besigye in ICU after collapsing in court, his wife says

    July 30, 2026

    Reform UK to hold press conference after Met rules out investigating Polanski over anti-Farage message – UK politics live | Politics

    July 30, 2026

    Digital euro app to incorporate highest accessibility standards

    July 30, 2026

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Type above and press Enter to search. Press Esc to cancel.