Moebius: 以无缝运行时并行性切换服务混合专家模型
Moebius: Serving Mixture-of-Expert Models with Seamless Runtime Parallelism Switch
AI总结:
提出Moebius系统,在运行时动态切换张量并行与专家并行,无需重启或丢弃请求,通过仅迁移所有权变更的切片实现低开销切换,在8×H200 GPU上匹配最优静态并行性能,RL rollout提升1.16-1.25倍。
摘要:
混合专家(MoE)架构将大型语言模型(LLM)扩展到数千亿参数。服务单个MoE模型需要多个GPU并行运行,通常通过张量并行(TP)或专家并行(EP)实现。最优选择取决于正在处理的请求数量:TP在低并发时更快,而EP在高并发时更优。生产工作负载持续跨越这一边界:在线服务遇到突发到达后进入安静期,强化学习rollout以高并发突发开始,然后衰减为长尾延迟。因此,固定任何一种布局都会在工作负载切换到另一边时损失性能。我们提出Moebius,一个服务系统,在运行时无需重启引擎或丢弃正在处理的请求即可在EP和TP之间切换。我们的关键洞察是,EP和TP是一个模型的两种布局,而非两个模型:它们在字节相同的专家权重和KV缓存上计算相同的函数,因此切换仅改变每个rank拥有的切片。移动这些所有权变更的切片是唯一不可减少的开销,现代高带宽GPU互连使其足够快,可以在解码步骤之间完成,而无需清空正在处理的请求。Moebius保留每种并行性的运行时驻留,并通过融合的GPU到GPU传输内核,在固定地址重新分片专家权重和KV缓存的单一副本。在8×H200 GPU上服务Qwen3-235B-A22B时,Moebius在每个操作点匹配更好的静态并行性,并在RL rollout上跨步骤提升1.16-1.25倍。每次切换在215-434毫秒内完成,Moebius以仅2.4%的内存开销保持两种布局驻留。
英文摘要:
Mixture-of-Experts (MoE) architectures scale large language models (LLMs) to hundreds of billions of parameters. Serving a single MoE model requires multiple GPUs operating in parallel, typically through tensor parallelism (TP) or expert parallelism (EP). The optimal choice depends on the number of in-flight requests: TP is faster at low concurrency, whereas EP wins at high concurrency. Production workloads cross this boundary continually: online serving sees bursty arrivals that subside into quiet periods, and reinforcement-learning rollouts begin as a high-concurrency burst that decays into a long tail of stragglers. Pinning either layout therefore forfeits performance when the workload crosses to the other side. We present Moebius, a serving system that switches between EP and TP at runtime without restarting the engine or dropping in-flight requests. Our key insight is that EP and TP are two layouts of one model, not two models: they compute the same function over byte-identical expert weights and KV cache, so a switch changes only which rank owns each slice. Moving those owner-changed slices is the sole irreducible cost, and modern high-bandwidth GPU interconnects make it fast enough to do between decode steps without draining in-flight requests. Moebius preserves each parallelism's runtime resident, and reshards the single copy of expert weights and KV cache at fixed addresses with fused GPU-to-GPU transfer kernels. On 8x H200 GPUs serving Qwen3-235B-A22B, Moebius matches the better static parallelism at every operating point, and beats it on RL rollouts by 1.16-1.25x across steps. Each switch completes in 215-434 ms, and Moebius holds both layouts resident with only 2.4% memory overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。