一句话:提出 MoC-System,用部分专家检查点、全分片检查点与两级异步管理降低稀疏 MoE 训练容错开销。
随着大语言模型扩展到万级节点,检查点成为主流容错策略;但稀疏 MoE 模型参数量远大于稠密模型,检查点分片多、写入开销大。论文提出 MoC-System,通过算法-系统协同设计:部分专家检查点(PEC)仅保存选定专家子集,将 MoE 检查点规模降至接近稠密模型;结合混合并行,采用全分片检查点均衡各 rank 负载;并用两级检查点管理异步处理内存快照与持久化。基于 Megatron-DeepSpeed 实现,在 ZeRO-2 数据并行和专家并行下,每次检查点开销最多降低 98.9%,且模型精度相当,下游任务平均提升 1.08%。
As large language models continue to scale up, distributed training systems have expanded beyond 10k nodes, intensifying the importance of fault tolerance. Checkpoint has emerged as the predominant fault tolerance strategy, with extensive studies dedicated to optimizing its efficiency. However, the advent of the sparse Mixture-of-Experts (MoE) model presents new challenges due to the substantial increase in model size, despite comparable computational demands to dense models. In this work, we propose the Mixture-of-Checkpoint System (MoC-System) to orchestrate the vast array of checkpoint shards produced in distributed training systems. MoC-System features a novel Partial Experts Checkpointing (PEC) mechanism, an algorithm-system co-design that strategically saves a selected subset of experts, effectively reducing the MoE checkpoint size to levels comparable with dense models. Incorporating hybrid parallel strategies, MoC-System involves fully sharded checkpointing strategies to evenly distribute the workload across distributed ranks. Furthermore, MoC-System introduces a two-level checkpointing management method that asynchronously handles in-memory snapshots and persistence processes. We build MoC-System upon the Megatron-DeepSpeed framework, achieving up to a 98.9% reduction in overhead for each checkpointing process compared to the original method, during MoE model training with ZeRO-2 data parallelism and expert parallelism. Additionally, extensive empirical analyses substantiate that our methods enhance efficiency while maintaining comparable model accuracy, even achieving an average accuracy increase of 1.08% on downstream tasks.