FEPLB:利用复制引擎实现分布式训练中接近免费的MoE负载平衡
FEPLB: Exploiting Copy Engines for Nearly Free MoE Load Balancing in Distributed Training
AI总结:
FEPLB通过利用NVLink复制引擎实现高效MoE训练负载平衡,减少token和GEMM延迟,无需额外通信开销。
摘要:
细粒度的每微批次负载平衡对高效混合专家(MoE)训练至关重要,但所有先前动态调度方案都需付出额外通信开销,难以隐藏。特别是在现代批量传输后端如DeepEP上。我们做出一个简单但重要的观察:在NVIDIA Hopper架构中,NVLink复制引擎可以在不消耗任何SM周期的情况下,在节点内GPU之间移动数据,从而提供一个几乎免费的通信通道,与计算内核并行运行。FEPLB将这种空闲硬件转化为MoE负载重新平衡的新并行维度。其两阶段调度首先通过标准EP后端将令牌跨节点路由,然后通过复制引擎在NVLink域内重新分配动态专家令牌和权重,几乎不产生成本,同时轻量级的CPU调度器与静态专家计算并发运行。由于FEPLB仅使用复制引擎和CPU,这些资源与EP和PP消耗的资源正交,因此可以与现有并行策略共存而无需重新配置。在GLM-5的MoE层(128专家,无辅助损失,最多16个H100 GPU)上,FEPLB将token延迟减少51-70%,GEMM延迟减少50-68%,且无可测量的EP通信开销。其优势随着EP度数增加:在EP=8时,其token延迟比FasterMoE低2倍。
英文摘要:
Fine-grained, per-micro-batch load balancing is essential for efficient Mixture-of-Experts (MoE) training, yet every prior dynamic scheduling scheme pays for it with extra communication that is hard to hide. Especially on modern bulk-transfer backends such as DeepEP. We make a simple but consequential observation: on the NVIDIA Hopper architecture the NVLink Copy Engine can move data between intra-node GPUs without consuming any SM cycles, effectively providing a nearly free communication channel that runs in parallel with compute kernels. FEPLB turns this idle hardware into a new parallel dimension for MoE load rebalancing. Its Two-Phase Dispatch first routes tokens across nodes via the standard EP backend, then redistributes dynamic-expert tokens and weights within the NVLink domain through the Copy Engine at nearly zero cost, while a lightweight CPU scheduler runs concurrently with static expert computation. Because FEPLB uses only Copy Engine and CPU that are orthogonal to those consumed by EP and PP, it coexists with existing parallel strategies without reconfiguration. On GLM-5's MoE layers (128 experts, no auxiliary loss, up to 16 H100 GPUs), FEPLB reduces the token straggler by 51-70% and the GEMM straggler by 50-68% with no measurable EP communication overhead. Its advantage grows with the EP degree: at EP=8, it achieves 2x lower token straggler than FasterMoE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。