arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.04964cs.AI
收藏

Flash Communication:降低张量并行瓶颈以实现大语言模型快速推理

Flash Communication: Reducing Tensor Parallelization Bottleneck for Fast Large Language Model Inference

Meituan(美团)

Qingyuan Li, Bo Zhang, Liang Ye, Yifan Zhang, Wei Wu, Yerui Sun, Lin Ma, Yuchen Xie

AI总结:

针对大语言模型分布式推理中张量并行带来的通信瓶颈问题,提出名为Flash Communication的低位压缩技术,在几乎不损失精度的前提下显著提升通信速度、缩短首token生成时间。

摘要:

大语言模型规模持续增长,亟需利用多维并行的分布式方案实现快速推理,将计算负载拆分到GPU集群等各类加速器上。但该方法往往会引入显著的通信开销,在带宽有限的设备上尤为突出。本文提出Flash Communication,这是一种新型低位压缩技术,旨在缓解推理过程中的张量并行通信瓶颈。该方法将节点内通信速度大幅提升3倍以上,首token生成时间缩短2倍,且几乎不损失模型精度。在多款最新LLM上开展的大量实验证明了该方法的有效性。

英文摘要:

The ever-increasing sizes of large language models necessitate distributed solutions for fast inference that exploit multi-dimensional parallelism, where computational loads are split across various accelerators such as GPU clusters. However, this approach often introduces significant communication overhead, especially on devices with limited bandwidth. In this paper, we introduce Flash Communication, a novel low-bit compression technique designed to alleviate the tensor-parallelism communication bottleneck during inference. Our method substantially boosts intra-node communication speed by more than 3x and reduces the time-to-first-token by 2x, with nearly no sacrifice in model accuracy. Extensive experiments on various up-to-date LLMs demonstrate the effectiveness of our approach.

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

↑