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

BitPipe:用于加速大模型训练的双向交错流水线并行

BitPipe: Bidirectional Interleaved Pipeline Parallelism for Accelerating Large Models Training

Zhejiang University(浙江大学)

Houming Wu, Ling Chen, Wenjie Yu

AI总结:

针对同步流水线并行中的气泡与通信开销问题,提出 BitPipe 双向交错流水线及 V 形即时梯度同步调度,在最多 32 GPU 上将 GPT/BERT 风格模型训练吞吐提升 1.05–1.28 倍。

摘要:

随着模型规模不断增大,对高效分布式训练的需求变得日益迫切。近来,许多同步流水线并行方法被提出以提高训练吞吐量。然而,这些方法仍存在两大问题,即周期性刷新导致的流水线气泡,以及因流水线阶段数量增加而产生的额外通信。为此,我们提出了 BitPipe,这是一种用于加速大模型训练的双向交错流水线并行方法。具体而言,论文提出了一种将交错流水线与双向流水线相融合的混合方案,以减少每个单一微批次的计算时间,并成倍增加同时执行的设备数量。文中还引入了带有即时梯度同步的 V 形调度,以减少设备间通信并使其重叠。在多达 32 块 GPU 上进行的实验表明,与最先进的同步方法相比,BitPipe 将 GPT 风格和 BERT 风格模型的训练吞吐量提升了 1.05 倍至 1.28 倍。我们实现的代码可在 https://github.com/wuhouming/BitPipe 获取。

英文摘要:

With the increasing scale of models, the need for efficient distributed training has become increasingly urgent. Recently, many synchronous pipeline parallelism approaches have been proposed to improve training throughput. However, these approaches still suffer from two major issues, i.e., pipeline bubbles caused by periodic flushing and extra communication due to the increasing number of pipeline stages. To this end, we propose BitPipe, a bidirectional interleaved pipeline parallelism for accelerating large models training. Specifically, a hybrid scheme of fusing interleaved pipelines with bidirectional pipelines is proposed to reduce the computational time of each single micro-batch and multiply the number of devices executing simultaneously. A V-shaped schedule with eager gradient synchronization is introduced to reduce and overlap the communication between devices. Experiments conducted on up to 32 GPUs show that BitPipe improves the training throughput of GPT-style and BERT-style models by 1.05x-1.28x compared to the state-of-the-art synchronous approaches. The code of our implementation is available at https://github.com/wuhouming/BitPipe.

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

↑