面向高度异构集群的高效流水线并行训练
Efficient Training with Pipeline Parallelism for Highly Heterogeneous Clusters
摘要 流水线并行技术已广泛应用于加速分布式深度学习,以缓解显卡内存瓶颈,确保在有限显存条件下模型能够顺利训练与部署.然而,在高度异构的分布式集群中,传统的模型切分方法难以实现负载均衡,且通信与计算的重叠也面临较大挑战.提出了一种面向异构集群的高效流水线并行训练方法(HePipe).首先,根据神经网络模型流水线训练任务特点,面向 2 级异构集群计算拓扑,提出了基于 2 层阶段的神经网络建模及分区的训练方法,提高了并行性;其次,通过改进单前向单反向(1F1B)调度策略,设计了一种多前向调度策略,通过提前执行计算单元,最大化前向传播通信和反向传播计算的重叠度,减少了各阶段的训练时间;最后,提出了基于任务显存需求预测的动态重计算策略,提升了任务和显存的适配比,提高了集群的吞吐量,解决了异构集群的显存差异导致的内存短板问题.实验结果表明,HePipe 比经典的异步流水线解决方案PipeDream训练速度提高了 60%.
Abstract:
Pipeline parallelism has been widely used to accelerate distributed deep learning to alleviate GPU memory bottlenecks and ensure that models can be trained and deployed smoothly under limited GPU memory conditions.However,in highly heterogeneous distributed clusters,conventional model partitioning methods fail to achieve load balancing,and the overlap between communication and computation also poses a significant challenge.In this paper,HePipe is proposed,an efficient pipeline parallel training method for heterogeneous clusters.First,according to the characteristics of the neural network model pipeline training task,targeting the 2-level heterogeneous cluster computing topology,a training method based on 2-level stage neural network modeling and partitioning is designed to improve parallelism.Then,by improving the 1F1B(one forward pass followed by one backward pass)scheduling strategy,a multi-forward scheduling strategy is designed to reduce the training time of each stage by executing computing units in advance to maximize the overlap between forward propagation communication and backward propagation computation.Finally,a dynamic recomputation strategy based on task GPU memory requirement prediction is proposed to improve the fitness ratio between tasks and GPU memory,which improves cluster throughput and solves the GPU memory shortfall problem caused by GPU memory differences in heterogeneous clusters.Experiments indicate that HePipe improves training speed by 60%compared with the classic asynchronous pipeline solution PipeDream.
刊 名 通信技术
年,卷(期): 2026, 59(10)
分类号: TN919.2
机标分类号: TP311.13 TP181 G808.12
在线出版日期: 2026年11月9日