arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.13606cs.DCcs.AIcs.ARcs.LG
收藏

NCCL EP:迈向统一的专家并行通信API

NCCL EP: Towards a Unified Expert Parallel Communication API for NCCL

Oak Ridge National Laboratory(橡树岭国家实验室);University of New Mexico(新墨西哥大学);Los Alamos National Laboratory(洛斯阿拉莫斯国家实验室)
Amos Goldman, Nimrod Boker, Maayan Sheraizin, Nimrod Admoni, Artem Polyakov, Subhadeep Bhattacharya, Fan Yu, Kai Sun, Georgios Theodorakis, Hsin-Chun Yin, Peter… 展开作者

Amos Goldman, Nimrod Boker, Maayan Sheraizin, Nimrod Admoni, Artem Polyakov, Subhadeep Bhattacharya, Fan Yu, Kai Sun, Georgios Theodorakis, Hsin-Chun Yin, Peter-Jan Gootzen, Aamir Shafi, Assaf Ravid, Salvatore Di Girolamo, James Dinan, Xiaofan Li, Manjunath Gorentla Venkata, Gil Bloch

AI总结:

本文提出NCCL EP,一种基于NCCL设备API的MoE通信库,提供统一的调度和组合原语,支持低延迟和高吞吐模式,提升大语言模型的通信性能。

摘要:

混合专家(MoE)架构已成为扩展大语言模型的关键,推动了如DeepEP、Hybrid-EP等专用设备启动通信库的发展。本文提出了NCCL EP(专家并行),一种完全基于NCCL设备API构建的MoE通信库。NCCL EP提供了统一的ncclEpDispatch和ncclEpCombine原语,支持低延迟模式用于推理解码和高吞吐模式用于训练和预填充。低延迟模式使用直接的点对点RDMA+NVLink网格连接,通过双缓冲通信重叠调度和组合阶段。高吞吐模式使用分层通信,先在NVLink域内聚合token再进行跨节点RDMA传输。两种模式均利用设备API进行内节点和跨节点通信,利用其拓扑意识和优化的GPU启动实现。我们在H100集群上评估了NCCL EP,展示了具有竞争力的低延迟内核性能,并展示了与vLLM集成的端到端结果。通过在NCCL中原生构建MoE通信,NCCL EP为当前和新兴NVIDIA平台提供了支持专家并行的路径。

英文摘要:

Mixture-of-Experts (MoE) architectures have become essential for scaling large language models, driving the development of specialized device-initiated communication libraries such as DeepEP, Hybrid-EP, and others. These libraries demonstrate the performance benefits of GPU-initiated RDMA for MoE dispatch and combine operations. This paper presents NCCL EP (Expert Parallelism), a ground-up MoE communication library built entirely on NCCL's Device API. NCCL EP provides unified ncclEpDispatch and ncclEpCombine primitives with both C and Python interfaces, supporting Low-Latency (LL) mode for inference decoding and High-Throughput (HT) mode for training and inference prefill. LL targets small batch sizes (1-128 tokens) using direct all-to-all RDMA+NVLink mesh connectivity with double-buffered communication for overlapping dispatch and combine phases. HT targets large batches (4096+ tokens) using hierarchical communication that aggregates tokens within NVLink domains before inter-node RDMA transmission. Both modes leverage Device API for both intra- and inter-node communications, taking advantage of its topology awareness and optimized GPU-initiated implementation. We evaluate NCCL EP on an H100-based cluster across multi-node configurations, demonstrating competitive LL kernel performance and presenting end-to-end results with vLLM integration. By building MoE communication natively within NCCL, NCCL EP provides a supported path for expert parallelism on current and emerging NVIDIA platforms.

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

↑