arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.09557cs.DCcs.LG
收藏

理解并改进多节点LLM推理中的通信性能

Understanding and Improving Communication Performance in Multi-node LLM Inference

Department of Computer Science, University of Maryland(马里兰大学计算机科学系);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室)

Prajwal Singhania, Siddharth Singh, Lannie Dalton Hough, Akarsh Srivastava, Harshitha Menon, Charles Fredrick Jekel, Abhinav Bhatele

AI总结:

本研究探讨了多节点分布式推理中通信性能的优化,通过分析不同模型并行方案的强标度行为,提出了一种基于递归倍增的分层all-reduce算法NVRAR,显著降低了推理延迟。

摘要:

随着大型语言模型(LLMs)的持续增长,分布式推理变得越来越重要。模型并行策略现在必须高效地扩展到多个GPU以及多个节点。在本工作中,我们对使用GPU超级计算机上的LLM进行多节点分布式推理进行了详细性能研究。我们使用几种最先进的推理引擎以及YALIS,一个面向研究的原型引擎进行实验。我们分析了不同模型并行方案的强标度行为,并识别了关键瓶颈。由于all-reduce操作是常见的性能瓶颈,我们开发了NVRAR,一种基于递归倍增的分层all-reduce算法,使用NVSHMEM。NVRAR在HPE Slingshot和InfiniBand互连上,对于128 KB到2 MB的消息大小,延迟比NCCL低高达1.9$ imes$-3.6$ imes$。集成到YALIS中,NVRAR在使用张量并行的多节点解码密集工作负载中,对于Llama 3.1 405B模型实现了高达1.72$ imes$的端到端批量延迟减少。

英文摘要:

As large language models (LLMs) continue to grow in size, distributed inference has become increasingly important. Model-parallel strategies must now efficiently scale not only across multiple GPUs but also across multiple nodes. In this work, we present a detailed performance study of multi-node distributed inference using LLMs on GPU-based supercomputers. We conduct experiments with several state-of-the-art inference engines alongside YALIS, a research-oriented prototype engine designed for controlled experimentation. We analyze the strong-scaling behavior of different model-parallel schemes and identify key bottlenecks. Because all-reduce operations are a common performance bottleneck, we develop NVRAR, a hierarchical all-reduce algorithm based on recursive doubling with NVSHMEM. NVRAR achieves up to 1.9$\times$-3.6$\times$ lower latency than NCCL for message sizes between 128 KB and 2 MB on HPE Slingshot and InfiniBand interconnects. Integrated into YALIS, NVRAR achieves up to a 1.72$\times$ reduction in end-to-end batch latency for the Llama 3.1 405B model in multi-node decode-heavy workloads using tensor parallelism.

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

↑