Reproduce “MegaScale-Infer: Serving Mixture-of-Experts at Scale with Disaggregated Expert Parallelism” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Ruidong Zhu, Ziheng Jiang, Chao Jin, Peng Wu, Cesar A. Stuardo, Dongyang Wang, Xinlei Zhang, Huaping Zhou and 12 more
MegaScale-Infer, a system from ByteDance Seed and Peking University, introduces a disaggregated expert parallelism architecture designed for efficient serving of large-scale Mixture-of-Experts (MoE) language models. The system achieves up to 1.90x higher per-GPU decoding throughput and reduces serving costs by 1.5-2.0x in production by addressing the memory-bound nature of MoE inference.
Key insights
- Disaggregating attention and FFN modules, coupled with tailored parallelism, is critical for enhancing GPU utilization and cost-effectiveness in MoE inference by enabling more effective batching for experts.
- Communication patterns for token routing in MoE models are distinct and necessitate specialized M2N communication mechanisms that overcome the limitations of general-purpose collective communication libraries.
- Optimal deployment of MoE models requires a systematic search algorithm to balance attention and expert computation times across potentially heterogeneous hardware, thereby maximizing throughput per unit cost.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.