解耦DiLoCo用于鲁棒的分布式预训练
Decoupled DiLoCo for Resilient Distributed Pre-training
AI总结:
本文提出解耦DiLoCo,通过打破锁步同步障碍,提升分布式预训练效率,在高故障率环境中实现零全局停机,保持模型性能。
摘要:
现代大规模语言模型预训练依赖于单程序多数据(SPMD)范式,需要在加速器间紧密耦合。由于这种耦合,短暂延迟、硬件故障和同步开销会停滞整个计算,浪费大量计算时间。尽管最近的分布式方法如DiLoCo减少了通信带宽,但它们本质上仍是同步的,容易受到这些系统停滞的影响。为了解决这个问题,我们引入了解耦DiLoCo,这是DiLoCo框架的演变,旨在打破锁步同步障碍,超越SPMD以最大化训练吞吐量。解耦DiLoCo将计算分布在多个独立的“学习者”上,这些学习者执行本地内部优化步骤。这些学习者异步通信参数片段到一个中央同步器,该同步器通过最小多数、自适应 grace 窗口和动态令牌加权合并来绕过失败或滞后学习者。受“混沌工程”启发,我们通过模拟数百万芯片在故障环境中实现了显著提升的训练效率,实现了严格零全局停机,同时在文本和视觉任务中保持竞争性的模型性能,适用于密集和混合专家架构。
英文摘要:
Modern large-scale language model pre-training relies heavily on the single program multiple data (SPMD) paradigm, which requires tight coupling across accelerators. Due to this coupling, transient slowdowns, hardware failures, and synchronization overhead stall the entire computation, wasting significant compute time at scale. While recent distributed methods like DiLoCo reduced communication bandwidth, they remained fundamentally synchronous and vulnerable to these system stalls. To address this, we introduce Decoupled DiLoCo, an evolution of the DiLoCo framework designed to break the lock-step synchronization barrier and go beyond SPMD to maximize training goodput. Decoupled DiLoCo partitions compute across multiple independent ``learners'' that execute local inner optimization steps. These learners asynchronously communicate parameter fragments to a central synchronizer, which circumvents failed or straggling learners by aggregating updates using a minimum quorum, an adaptive grace window, and dynamic token-weighted merging. Inspired by ``chaos engineering'', we achieve significantly improved training efficiency in failure-prone environments with millions of simulated chips with strictly zero global downtime, while maintaining competitive model performance across text and vision tasks, for both dense and mixture-of-expert architectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。