ACCO:在通信的同时进行累积,用于通信重叠的分片式LLM训练
ACCO: Accumulate While You Communicate for Communication-Overlapped Sharded LLM Training
AI总结:
针对分布式LLM训练中通信开销大和内存成本高的问题,提出ACCO算法,通过通信时累积延迟梯度减少GPU空闲,并引入技术保证收敛,相比ZeRO-1显著提速且支持异构硬件。
摘要:
训练大型语言模型(LLM)依赖于使用多个GPU的分布式实现,通过分片优化器并行计算梯度。然而,在数据并行设置中同步梯度会引入通信开销,且该开销随工作节点数量增加而增长,限制了并行化效率。局部优化算法可以减少通信,但会带来高昂的内存成本,因为它们阻止了优化器状态的分片,从而阻碍了可扩展性。为解决此问题,我们提出了ACCO(ACcumulate while COmmunicate,即“通信时累积”),一种用于分布式LLM训练的内存高效优化算法。通过在新梯度计算的同时同步延迟梯度,ACCO减少了GPU空闲时间并支持异构硬件。为缓解延迟更新引起的收敛问题,我们引入了一种新技术,确保训练动态与标准分布式优化保持一致。与ZeRO-1相比,我们的方法显著更快,并能有效扩展到异构硬件上。
英文摘要:
Training LLMs relies on distributed implementations using multiple GPUs to compute gradients in parallel with sharded optimizers. However, synchronizing gradients in data parallel setups introduces communication overhead that grows with the number of workers, limiting parallelization efficiency. Local optimization algorithms reduce communications but incur high memory costs as they prevent optimizer state sharding, hindering scalability. To address this, we propose \textbf{AC}cumulate while \textbf{CO}mmunicate (ACCO), a memory-efficient optimization algorithm for distributed LLM training. By synchronizing delayed gradients while computing new ones, ACCO reduces GPU idle time and supports heterogeneous hardware. To mitigate the convergence issues caused by delayed updates, we introduce a novel technique ensuring training dynamics align with standard distributed optimization. Compared to ZeRO-1, our approach is significantly faster and scales effectively across heterogeneous hardware.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。