TACO:用于可扩展张量并行LLM训练的高效中间张量通信压缩
TACO: Efficient Communication Compression of Intermediate Tensors for Scalable Tensor-Parallel LLM Training
AI总结:
本文提出TACO框架,通过FP8压缩技术减少大规模张量并行训练中的通信开销,提升训练吞吐量并保持高精度。
摘要:
在大规模张量并行训练中,处理通信开销仍是一个关键挑战,由于中间张量的密集近零分布,频繁通信会加剧误差并引入显著的计算开销。为此,我们提出TACO(张量并行自适应通信压缩),一种基于FP8的框架,用于压缩TP中间张量。首先,我们采用数据驱动的重塑策略结合自适应缩放-哈达玛变换,实现高保真的FP8量化,其双尺度量化机制确保训练过程中的数值稳定性。其次,我们设计了高度融合的压缩操作符以减少内存交通和内核启动开销,允许高效地与通信重叠。最后,我们将TACO与现有的最先进的数据并行和流水线并行方法结合,开发出一个支持压缩的3D并行训练框架。在GPT模型和Qwen模型上的详细实验表明,TACO在保持近无损精度的同时,实现了高达1.87倍的端到端吞吐量提升,验证了其在大规模训练中的有效性和效率。
英文摘要:
Handling communication overhead in large-scale tensor-parallel training remains a critical challenge due to the dense, near-zero distributions of intermediate tensors, which exacerbate errors under frequent communication and introduce significant computational overhead during compression. To this end, we propose TACO (Tensor-parallel Adaptive COmmunication compression), a robust FP8-based framework for compressing TP intermediate tensors. First, we employ a data-driven reshaping strategy combined with an Adaptive Scale-Hadamard Transform to enable high-fidelity FP8 quantization, while its Dual-Scale Quantization mechanism ensures numerical stability throughout training. Second, we design a highly fused compression operator to reduce memory traffic and kernel launch overhead, allowing efficient overlap with communication. Finally, we integrate TACO with existing state-of-the-art methods for Data and Pipeline Parallelism to develop a compression-enabled 3D-parallel training framework. Detailed experiments on GPT models and Qwen model demonstrate up to 1.87X end-to-end throughput improvement while maintaining near-lossless accuracy, validating the effectiveness and efficiency of TACO in large-scale training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。