arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.15411cs.DC
收藏

稀疏检查点机制用于快速可靠的MoE训练

Sparse Checkpointing for Fast and Reliable MoE Training

Stanford University(斯坦福大学);NVIDIA(英伟达)

Swapnil Gandhi, Christos Kozyrakis

AI总结:

本文提出MoEvement系统,通过稀疏检查点、稀疏到密集转换和激活日志记录,有效降低MoE模型训练中的检查点开销和恢复开销,提升训练效率。

摘要:

随着大语言模型规模的扩大,训练它们需要成千上万的GPU进行长时间训练,频繁故障成为必然现实。尽管检查点仍然是主要的容错机制,但现有方法在应用于混合专家(MoE)模型时效果不佳。由于其显著更大的训练状态,MoE模型加剧了检查点开销,常导致昂贵的停顿或延长恢复时间,严重降低训练效率。我们提出了MoEvement,一个专为MoE模型设计的分布式内存检查点系统。MoEvement基于三个关键思想:(1)稀疏检查点,通过迭代逐步快照专家子集以减少开销;(2)稀疏到密集检查点转换机制,逐步从稀疏快照中重建一致的密集检查点;(3)在流水线阶段边界记录激活和梯度,使局部恢复无需重执行未受影响的工人。在多样化的MoE模型上评估显示,MoEvement将检查点开销减少高达4倍,恢复开销减少高达31倍,即使在频繁故障(MTBF最低为10分钟)下仍能维持ETTR≥0.94,并提供高达8倍的整体训练加速,且不牺牲同步训练语义。总体而言,MoEvement为下一代稀疏激活模型提供了稳健且可扩展的容错解决方案。

英文摘要:

As large language models scale, training them requires thousands of GPUs over extended durations--making frequent failures an inevitable reality. While checkpointing remains the primary fault-tolerance mechanism, existing methods fall short when applied to Mixture-of-Experts (MoE) models. Due to their substantially larger training state, MoE models exacerbate checkpointing overheads, often causing costly stalls or prolonged recovery that severely degrade training efficiency. We present MoEvement, a distributed, in-memory checkpointing system tailored for MoE models. MoEvement is built on three key ideas: (1) sparse checkpointing, which incrementally snapshots subsets of experts across iterations to reduce overhead; (2) a sparse-to-dense checkpoint conversion mechanism that incrementally reconstructs consistent dense checkpoints from sparse snapshots; and (3) upstream logging of activations and gradients at pipeline-stage boundaries, enabling localized recovery without re-executing unaffected workers. Evaluations across diverse MoE models with up to 64 experts show that MoEvement reduces checkpointing overhead by up to $4\times$ and recovery overhead by up to $31\times$ compared to state-of-the-art approaches, sustaining ETTR $\ge 0.94$ even under frequent failures (MTBF as low as 10 minutes) and delivering up to $8\times$ overall training speedup, all without compromising synchronous training semantics. Overall, MoEvement offers a robust and scalable fault-tolerance solution for the next generation of sparsely activated models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑