面向多GPU系统的计算感知交换机计算
Towards Compute-Aware In-Switch Computing for LLMs Tensor-Parallelism on Multi-GPU Systems
AI总结:
本文提出CAIS框架,通过计算感知的ISA扩展、线程块协调和数据流优化,提升多GPU系统中LLM张量并行的通信与计算效率,实验显示其在训练速度上优于现有方案。
摘要:
大规模LLM推理和训练中的张量并行(TP)引入了频繁的集体操作,主导了GPU间的通信。尽管交换机计算(如NVLink SHARP)通过减少冗余数据传输加速了集体操作,但其以通信为中心的设计哲学导致通信模式与LLM计算内核的内存语义需求不匹配,使计算与通信阶段分离,导致资源利用率低和多GPU系统中重叠有限。为解决此问题,本文提出CAIS,首个计算感知的交换机计算框架,通过三个技术:(1)计算感知的ISA和微架构扩展;(2)融合感知的线程块协调;(3)图级数据流优化,实现紧密的跨内核重叠。在LLM工作负载上的评估表明,CAIS在训练速度上比SOTA的NVLS方案快1.38倍,比不利用NVLS的SOTA计算-通信重叠方案快1.61倍,证明其在多GPU系统中加速TP的有效性。
英文摘要:
Tensor parallelism (TP) in large-scale LLM inference and training introduces frequent collective operations that dominate inter-GPU communication. While in-switch computing, exemplified by NVLink SHARP (NVLS), accelerates collective operations by reducing redundant data transfer, its communication-centric design philosophy introduces the mismatch between its communication mode and the memory semantic requirement of LLM's computation kernel. Such a mismatch isolates the compute and communication phases, resulting in underutilized resources and limited overlap in multi-GPU systems. To address the limitation, we propose CAIS, the first Compute-Aware In-Switch computing framework that aligns communication modes with computation's memory semantics requirement. CAIS consists of three integral techniques: (1) compute-aware ISA and microarchitecture extension to enable compute-aware in-switch computing. (2) merging-aware TB (Thread Block) coordination to improve the temporal alignment for efficient request merging. (3) graph-level dataflow optimizer to achieve a tight cross-kernel overlap. Evaluations on LLM workloads show that CAIS achieves 1.38$\times$ average end-to-end training speedup over the SOTA NVLS-enabled solution, and 1.61$\times$ over T3, the SOTA compute-communicate overlap solutions but do not leverage NVLS, demonstrating its effectiveness in accelerating TP on multi-GPU systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。