Collective Communication for 100k+ GPUs
Min Si, Pavan Balaji, Yongzhou Chen, Ching-Hsiang Chu, Adi Gangidi, Saif Hasan, Subodh Iyengar, Dan Johnson, Bingzhe Liu, Regina Ren, Ashmitha Jeevaraj Shetty, Greg Steinbrecher, Yulun Wang, Bruce Wu, Xinfeng Xie, Jingyi Yang, Mingran Yang, Kenny Yu, Minlan Yu, Cen Zhao, Wes Bland, Denis Boyda, Suman Gumudavelli, Prashanth Kannan, Cristian Lumezanu, Rui Miao, Zhe Qu, Venkat Ramesh, Maxim Samoylov, Jan Seidel, Srikanth Sundaresan, Feng Tian, Qiye Tan, Shuqiang Zhang, Yimeng Zhao, Shengbao Zheng, Art Zhu, Hongyi Zeng
TL;DR
NCCLX addresses the core bottlenecks of collective communication for large-scale LLM training and low-latency inference by introducing a unified, host-driven, zero-copy transport stack (CTran) built on NCCL. It combines host-centric algorithm scheduling, GPU-buffer zero-copy transfers, and topology-aware load balancing (DQPLB) with fault-tolerant mechanisms (FTAR) and GPU-resident inference primitives (AllToAllvDynamic) to scale to extremely large clusters. The key contributions include host-driven customization, zero-copy and SM-free transfers, DQPLB, FTAR, topology-aware optimizations, scalable initialization tooling, fault localization, and performance observability, together enabling efficient training and inference on clusters of well over one hundred thousand GPUs. Empirical results on Llama4 show substantial improvements in startup time (up to elevenfold), per-step training latency reductions (up to twelve percent), and end-to-end inference latency reductions (from fifteen to eighty percent) across diverse configurations, demonstrating practical impact for future ultra-scale AI deployments.
Abstract
The increasing scale of large language models (LLMs) necessitates highly efficient collective communication frameworks, particularly as training workloads extend to hundreds of thousands of GPUs. Traditional communication methods face significant throughput and latency limitations at this scale, hindering both the development and deployment of state-of-the-art models. This paper presents the NCCLX collective communication framework, developed at Meta, engineered to optimize performance across the full LLM lifecycle, from the synchronous demands of large-scale training to the low-latency requirements of inference. The framework is designed to support complex workloads on clusters exceeding 100,000 GPUs, ensuring reliable, high-throughput, and low-latency data exchange. Empirical evaluation on the Llama4 model demonstrates substantial improvements in communication efficiency. This research contributes a robust solution for enabling the next generation of LLMs to operate at unprecedented scales.
