Understanding and Improving Communication Performance in Multi-node LLM Inference
summary
Detailed multi-node measurements on A100 Slingshot clusters show tensor-parallel inference stalls on small (tens of KB–MB) all-reduce messages and that standard Nickel/NCCL collects poorly across nodes. NVRAR hierarchical all-reduce implements intra-node reduce-scatter, inter-node recursive doubling via NVSHMEM, and intra-node all-gather, plus fused signaling and deferred synchronization, and it yields 1.9×–3.6× lower latency than NCCL on all-reduce and cuts end-to-end batch latency up to 1.72× for Llama 3.1 405B when integrated into YALIS, with similar throughput gains in online decode-heavy and MoE non-expert sharding.
AI-written summary · about
chapters (12)
- 0:00Introduction and motivation
- 1:38Parallelism strategies in LLM inference
- 2:42Experimental setup and workloads
- 3:23Scaling performance results
- 4:25Compute vs communication breakdown
- 5:28Communication bottlenecks in decode
- 6:09Designing NVLink for all-reduce
- 7:11Optimizations in NVLink
- 8:59NVLink performance results
- 9:19Integration with inference frameworks
- 9:40Applicability to MoE models
- 10:01Summary and conclusion
