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

COPUS:大语言模型训练中的协同并行与批量大小选择

COPUS: Co-adaptive Parallelism and Batch Size Selection in Large Language Model Training

Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Akhmed Sakip, Erland Hilman Fuadi, Omar Sayedelahl, Zonghang Li, Jianshu She, Alham Fikri Aji, Steve Liu, Eric Xing, Qirong Ho

AI总结:

COPUS通过动态调整全局批量大小、并行策略和微批次大小,提升大语言模型训练效率,实验显示在不同配置下平均收敛时间缩短3.9%-8.0%,峰值提升达11.1%。

摘要:

训练大语言模型需要同时配置两个相互关联的系统方面:全局批量大小,它决定了统计效率,以及3D并行策略,它决定了硬件吞吐量。现有方法将这些决策独立处理:优化工作将批量大小适应以跟踪变化的临界批量大小,同时保持并行性固定;系统工作则为给定的固定批量大小选择最快的并行性,而不考虑最优批量大小可能变化。我们证明这些决策紧密相关:吞吐量最优的并行策略可能随着全局批量大小的变化而变化,因此任何固定一个而调整另一个的方法在训练运行的某些部分会处于次优配置。我们提出了COPUS,一个在训练过程中自适应调整全局批量大小、并行策略和微批次大小的系统。COPUS由Goodput指导,即吞吐量与统计效率的乘积,它联合建模硬件和统计效应,并直接测量单位墙钟时间的有用收敛量。该系统结合了在3D并行下的在线梯度噪声尺度估计与吞吐量感知的候选配置评估,并支持在训练过程中高效重新配置批量大小和并行性。我们在1-4个8xH100和8xMI210 GPU节点上评估了COPUS,涵盖了从3B到32B参数的模型规模,证明在四个配置中,平均收敛时间比最快基线快3.9%-8.0%,峰值提升达11.1%,包括系统开销。

英文摘要:

Training large language models requires jointly configuring two interdependent aspects of the system: the global batch size, which governs statistical efficiency, and the 3D parallelism strategy, which governs hardware throughput. Existing approaches make these decisions independently: optimization work adapts the batch size to track the evolving critical batch size while keeping parallelism fixed, and systems work selects the fastest parallelism for a given fixed batch size without anticipating that the optimal batch size could change. We show that these decisions are tightly coupled: the throughput-optimal parallelism strategy may shift as the global batch size changes, so any method that fixes one while adapting the other operates with a suboptimal configuration for part of the training run. We present COPUS, a system that adaptively tunes the global batch size, parallelism strategy, and micro-batch size as training evolves. COPUS is guided by Goodput, the product of throughput and statistical efficiency, which models both hardware and statistical effects jointly and directly measures useful convergence per unit of wall-clock time. The system combines online gradient noise scale estimation under 3D parallelism with throughput-aware evaluation of candidate configurations, and supports efficient reconfiguration of both batch size and parallelism during training. We evaluate COPUS on LLM pre-training workloads across 1-4 nodes of 8xH100 and 8xMI210 GPUs and model sizes from 3B to 32B parameters, demonstrating average time-to-convergence speedups of 3.9-8.0% over the fastest baseline across four configurations, with peak gains up to 11.1%, including system overheads.

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

↑