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

TawPipe:用于加速长上下文大模型训练的拓扑感知权重流水线并行方法

TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models Training

Houming Wu, Ling Chen

AI总结:

针对长上下文大模型训练中现有流水线并行方法通信开销高、带宽利用率低的问题,提出拓扑感知权重流水线并行方法TawPipe,通过拓扑分组、固定分片、通信计算重叠优化效率,实验验证其吞吐量与可扩展性优于现有最优基线。

摘要:

大语言模型(LLM)训练从根本上受限于有限的设备内存与高昂的设备间通信成本。流水线并行虽通过跨设备切分模型缓解了内存压力,但会产生随序列长度线性增长的激活通信开销,限制了长上下文训练的效率。近期的权重传递方法(如WeiPipe)通过传输模型权重而非激活来缓解该问题,但存在冗余点对点(P2P)传输、节点内带宽利用率不足的缺陷。我们提出TawPipe——拓扑感知权重流水线并行方法,利用分布式集群的层级带宽提升通信效率。TawPipe包含三项核心设计:(i)基于拓扑对设备分组,优化节点内集合通信与节点间P2P通信;(ii)为每个设备分配固定的模型权重与梯度分片,避免冗余传输;(iii)将通信与计算重叠以隐藏延迟。与完全分片数据并行(FSDP)采用的全局集合操作不同,TawPipe将大部分通信限制在节点边界内,大幅降低跨节点流量。在最多24张GPU上针对LLaMA风格模型开展的大量实验表明,TawPipe相比当前最优基线方法实现了更优的吞吐量与可扩展性。

英文摘要:

Training large language models (LLMs) is fundamentally constrained by limited device memory and costly inter-device communication. Although pipeline parallelism alleviates memory pressure by partitioning models across devices, it incurs activation communication overhead that scales linearly with sequence length, limiting efficiency in long-context training. Recent weight-passing approaches (e.g., WeiPipe) mitigate this by transmitting model weights instead of activations, but suffer from redundant peer-to-peer (P2P) transfers and underutilized intra-node bandwidth. We propose TawPipe--topology-aware weight pipeline parallelism, which exploits hierarchical bandwidth in distributed clusters for improved communication efficiency. TawPipe: (i) groups devices based on topology to optimize intra-node collective and inter-node P2P communication; (ii) assigns each device a fixed shard of model weights and gradients, avoiding redundant transfers; and (iii) overlaps communication with computation to hide latency. Unlike global collective operations used in fully sharded data parallelism (FSDP), TawPipe confines most communication within node boundaries, significantly reducing cross-node traffic. Extensive experiments on up to 24 GPUs with LLaMA-style models show that TawPipe achieves superior throughput and scalability compared to state-of-the-art baselines.

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

↑