arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.14065cs.DC
收藏

Prime集合通信库——技术报告

Prime Collective Communications Library -- Technical Report

Michael Keiblinger, Mario Sieg, Jack Min Ong, Sami Jaghouar, Johannes Hagemann

AI总结:

本研究提出面向公网分布式ML的容错集合通信库PCCL,支持动态节点管理、高效广域网传输与低通信优化策略,兼容主流框架且开源。

摘要:

本报告介绍Prime集合通信库(Prime Collective Communications Library,简称PCCL),这是一款专为公共互联网上的分布式机器学习工作负载设计的新型容错集合通信库。PCCL引入了一种全新的编程模型,支持动态节点加入与故障恢复。该库实现了all-reduce等高效集合操作,同时提供 robust 容错机制,即使在运行过程中出现节点故障或新节点加入,系统仍能持续运行。我们证明,PCCL的设计能够为具有重复操作和确定性状态推进特性的工作负载中的动态成员资格挑战提供实用解决方案。我们的实现通过了覆盖所有主流操作系统的大量压力测试,即使在节点快速 churn 且存在并发集合操作的场景下仍能可靠运行。通过向多条连接分发流量,我们能够高效利用跨洲际的长肥管道TCP广域网链路:实验中,欧洲境内的带宽利用率最高可达45 Gbit/s,北美与欧洲之间的带宽利用率最高可达25 Gbit/s。PCCL的架构可轻松实现DiLoCo这类低通信量分布式优化策略,这类策略能显著降低通信频率。结合量化技术,这可大幅减少分布式训练工作负载所需的带宽。PCCL还支持并发集合操作,可实现async DiLoCo这类优化策略——该策略通过实现一步延迟参数更新,能够完全隐藏通信开销。在节点平滑或突发 churn 引发的所有场景下,PCCL都能保障各节点间共享状态的精确比特奇偶一致性。PCCL提供C99 API,同时提供与PyTorch及FSDP兼容的Python绑定,以MIT开源许可证发布。

英文摘要:

This report presents the Prime Collective Communications Library (PCCL), a novel fault-tolerant collective communication library designed for distributed ML workloads over the public internet. PCCL introduces a new programming model that enables dynamic peer joining and failure recovery. The library implements efficient collective operations like all-reduce while providing robust fault tolerance mechanisms that allow the system to continue operating even when peers fail or join during ongoing operations. We demonstrate that PCCL's design enables practical solutions to dynamic membership challenges in workloads with repeated operations and deterministic state advancement. Our implementation passes extensive stress tests across all major operating systems, showing reliable operation even under rapid peer churn and concurrent collective operations. By dispatching to multiple connections, we can efficiently utilize cross-continental long-fat-pipe TCP WAN links, in our experiments achieving up to 45 Gbit/s of bandwidth utilization across Europe and 25 Gbit/s across North America and Europe. PCCL's architecture enables easy implementation of distributed low-communication optimization strategies like DiLoCo, which significantly reduce communication frequency. Combined with quantization, this leads to a significant reduction in the bandwidth required for distributed training workloads. PCCL also allows for concurrent collective operations, which enables optimization strategies like async DiLoCo, which can completely hide communication overhead by implementing one-step delayed parameter updates. PCCL can facilitate exact bit-parity of the shared state across peers in all cases induced by graceful or abrupt peer churn. While PCCL exposes a C99 API, Python bindings are available which are compatible with PyTorch alongside FSDP. PCCL is available under the open source MIT license.

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

↑