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

CommFuse:通过通信分解与融合隐藏尾部延迟以分布式LLM训练

CommFuse: Hiding Tail Latency via Communication Decomposition and Fusion for Distributed LLM Training

Huawei(华为)

Rezaul Karim, Austin Wen, Wang Zongzuo, Weiwei Zhang, Yang Liu, Walid Ahmed

AI总结:

本文提出CommFuse方法,通过分解与融合通信操作,有效缓解分布式LLM训练中的通信瓶颈,降低延迟并提升模型利用率。

摘要:

大语言模型规模的快速增长需要在GPU、TPU和NPU等加速器上分配计算负载。然而,这些并行化策略带来了显著的数据通信开销,严重阻碍了计算效率。尽管通信-计算重叠是一个有前途的方向,但现有基于数据切片的解决方案存在尾部延迟。为克服这一限制,本文提出了一种新的通信-计算重叠技术,以消除现有重叠方法中的尾部延迟。该技术旨在有效缓解张量并行和数据并行中的通信瓶颈。特别地,我们提出了一种新的方法,称为CommFuse,用分解的点对点(P2P)通信取代传统的减少散射和全部收集操作,并调度分割的计算以实现细粒度重叠。我们的方法提供了一种精确的算法来减少通信开销,从而消除尾部延迟。此外,它还提供了一种通用的解决方案,适用于数据并行训练和各种张量级并行策略,包括TPSP和UP。实验评估表明,我们的技术在延迟、模型FLOPS利用率(MFU)和吞吐量方面均表现优异。

英文摘要:

The rapid growth in the size of large language models has necessitated the partitioning of computational workloads across accelerators such as GPUs, TPUs, and NPUs. However, these parallelization strategies incur substantial data communication overhead significantly hindering computational efficiency. While communication-computation overlap presents a promising direction, existing data slicing based solutions suffer from tail latency. To overcome this limitation, this research introduces a novel communication-computation overlap technique to eliminate this tail latency in state of the art overlap methods for distributed LLM training. The aim of this technique is to effectively mitigate communication bottleneck of tensor parallelism and data parallelism for distributed training and inference. In particular, we propose a novel method termed CommFuse that replaces conventional collective operations of reduce-scatter and all-gather with decomposed peer-to-peer (P2P) communication and schedules partitioned computations to enable fine-grained overlap. Our method provides an exact algorithm for reducing communication overhead that eliminates tail latency. Moreover, it presents a versatile solution compatible with data-parallel training and various tensor-level parallelism strategies, including TPSP and UP. Experimental evaluations demonstrate that our technique consistently achieves lower latency, superior Model FLOPS Utilization (MFU), and high throughput.

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

↑