Compass: Dissecting Communication and Computation Operators for Efficient LLM Training
Guangyu Xiang, Lin Zhang, Haoxuan Yu, Xinglin Pan, Shaohuai Shi, Xiaowen Chu
Abstract
Overlapping communication and computation operators is a common practice to hide communication overheads, accelerating large language models (LLMs) training on GPU clusters. Existing systems achieve this through either intra-operator fusion (IntraFusion), which packs operators into a single large kernel, or inter-operator decomposition (InterDecom), which splits a tensor into multiple parts for pipelined execution. However, current IntraFusion methods underutilize network topology, causing suboptimal bandwidth usage on multi-GPU systems, while InterDecom struggles to determine the optimal number of decomposed parts for peak performance. To address these issues, we introduce Compass, which employs systematic optimization and comprehensive modeling. First, we design a novel IntraFusion algorithm leveraging double-ring communications to maximize bandwidth utilization in hybrid NVLink-PCIe systems, achieving 1.5x-2.5x speedups. Second, we develop a decomposition model that mathematically derives the optimal tensor decomposition degree for InterDecom, improving performance by up to 1.3x. Finally, we develop a unified performance framework that accurately determines the best strategy for different scenarios. We validate Compass through extensive evaluation across 288 configurations and end-to-end experiments on real-world applications. The results demonstrate that Compass consistently selects the optimal strategy, achieving up to a 1.42x end-to-end speedup compared to the Megatron-LM baseline.
Create a lesson
Related papers
Modeling the Impact of Fiber Latency on Compute-Communication Overlap in Geo-Distributed Multi-Datacenter AI Training
Shared title terminology · Ioannis Papavasileiou, Sairam Prabhakar, Indu Kant Deo et al.
Direct-Operable SIMD Bit-Slicing: A Framework for Memory-Efficient Predicate Evaluation
Shared title terminology · Arunkumar Mathiyazhagan
Mixed-Precision For Energy Efficient Computations
Shared title terminology · Gülçin Gedik, Robert Schöne, Roman Iakymchuk
HybridGen: Efficient LLM Generative Inference via CPU-GPU Hybrid Computing
Shared title terminology · Mao Lin, Xi Wang, Guilherme Cox et al.
Green AI Carbon Optimizer: Carbon-Efficient Training Location Recommendation and Global AI Energy Demand Forecasting
Shared title terminology · Yuxin Chen, Hao Gao, Chujie Zou
Closed-Loop Integrated Sensing, Communication, and Control for Efficient Drone Flight
Shared title terminology · Jingli Li, Yiyan Ma, Bo Ai et al.