arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.19232cs.DC
收藏

Adaptra:通过流水线适应实现抗掉队者的混合并行训练

Adaptra: Straggler-Resilient Hybrid-Parallel Training with Pipeline Adaptation

Tianyuan Wu, Lunxi Cao, Hanfeng Lu, Xiaoxiao Jiang, Yinghao Yu, Siran Yang, Guodong Yang, Jiamang Wang, Lin Qu, Liping Zhang, Wei Wang

AI总结:

针对大规模DNN训练中通信延迟引发的流水线气泡问题,提出ADAPTRA系统,通过动态适应流水线调度和将通信卸载至主机内存利用CPU端RDMA传输,消除队头阻塞,将训练迭代速度提升1.2-3.5倍。

摘要:

大规模训练大型深度神经网络(DNN)模型经常遇到掉队者问题,主要由网络拥塞、RNIC/交换机缺陷或拓扑不对称导致通信中出现延迟。在先进的流水线并行下,即使是微小的通信延迟也会导致显著的训练减速。这是因为:(1)缓慢的通信会打乱流水线调度,以多米诺骨牌效应产生级联的“气泡”;(2)当前的GPU内核调度容易受到队头阻塞的影响,缓慢的通信会阻塞后续计算,进一步增加这些气泡。为了应对这些挑战,我们提出了ADAPTRA,一个抗掉队者的训练系统,包含两项关键优化。首先,它在存在掉队者时优化适应流水线调度,以吸收通信延迟而不产生级联气泡,使用由分析模型指导的简单而有效的算法。其次,在检测到缓慢通信时,ADAPTRA将通信操作从GPU卸载到主机内存,并利用CPU端的RDMA进行数据传输。这消除了队头阻塞,因为后续计算内核可以立即在GPU上调度。综合来看,这些优化在存在通信掉队者时有效减少了流水线停顿,在我们的实验中,在各种设置下将训练迭代时间提高了1.2-3.5倍。

英文摘要:

Training large Deep Neural Network (DNN) models at scale often encounters straggler issues, mostly in communications due to network congestion, RNIC/switch defects, or topological asymmetry. Under advanced pipeline parallelism, even minor communication delays can induce significant training slowdowns. This occurs because (1) slow communication disrupts the pipeline schedule, creating cascading "bubbles" in a domino effect, and (2) current GPU kernel scheduling is susceptible to head-of-line blocking, where slow communication blocks subsequent computations, further adding to these bubbles. To address these challenges, we present ADAPTRA, a straggler-resilient training system with two key optimizations. First, it optimally adapts the pipeline schedule in the presence of stragglers to absorb communication delays without inducing cascading bubbles, using a simple yet effective algorithm guided by an analytical model. Second, upon detecting slow communication, ADAPTRA offloads communication operations from GPU to host memory and utilizes CPU-side RDMA for data transfer. This eliminates head-of-line blocking as subsequent computation kernels can be scheduled immediately on GPUs. Together, these optimizations effectively reduce pipeline stalls in the presence of communication stragglers, improving the training iteration time by 1.2-3.5x in our experiments under various settings.

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

↑