MCCL:基于测量的集体通信库
MCCL: Measurement-based Collective Communication Library
AI总结:
针对大规模分布式训练中灰色故障导致静态调度失效的问题,提出MCCL库,通过运行时网络测量与动态调度综合闭环,在低开销下缩短了灰色故障场景下的LLM训练时间。
摘要:
集体通信是大规模分布式训练中的关键性能瓶颈。现有库和综合框架仅计算一次开环调度,假设拓扑静态且链路容量达到峰值。但在生产环境中,持续的灰色故障可能会在数小时内悄悄降低链路吞吐量和延迟,导致预计算的调度在执行过程中效率大幅下降。本文提出了基于测量的集体通信库(MCCL),这是一种将运行时网络测量与动态调度综合形成闭环的集体通信库。MCCL被动测量GPU间的吞吐量,检测持续的性能下降,使用热启动的综合器重新合成受影响的通信密集型调度,并在不中断训练的情况下热切换这些调度。我们在多节点硬件原型上验证了完整闭环,并使用模拟评估集群规模场景。实验表明,MCCL产生的开销可忽略不计(<2%),同时保持高测量精度(误差<1.2%)和低调度热切换时间(约12毫秒)。值得注意的是,在灰色故障下,针对Llama和DeepSeek等最先进的大语言模型(LLM)的模拟训练工作负载,MCCL相比静态调度将训练时间最多缩短了4.99倍。
英文摘要:
Collective communication is a critical performance bottleneck in large-scale distributed training. Existing libraries and synthesis frameworks compute open-loop schedules once, assuming a static topology and peak link capacities. In production, however, persistent gray failures can silently degrade link throughput and latency for hours, causing pre-computed schedules to lose much of their efficiency during execution. In this paper, we present Measurement-based Collective Communication Library (MCCL), a collective communication library that closes the loop between runtime network measurement and dynamic schedule synthesis. MCCL passively measures GPU-to-GPU throughput, detects persistent degradation, re-synthesizes the affected communication-intensive schedules with warm-started synthesizers, and hot-swaps them without interrupting training. We validate the complete loop on a multi-node hardware prototype and use simulations to evaluate cluster-scale scenarios. In our experiments, MCCL incurs negligible overhead (<2%) while maintaining high measurement accuracy (<1.2% error) and low schedule hot-swap time (about 12 ms). Notably, under gray failures, MCCL reduces training time by up to 4.99x over static schedules on simulated training workloads for state-of-the-art LLMs such as Llama and DeepSeek.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。