arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21144cs.DCcs.LG

通过张量并行性在多个GPU上扩展状态空间模型

Scaling State-Space Models on Multiple GPUs with Tensor Parallelism

Stony Brook University(石溪大学)

Anurag Dutt, Nimit Shah, Hazem Masarani, Anshul Gandhi

AI总结:

本文提出一种通信高效的张量并行设计,用于在多GPU上加速选择性状态空间模型推理,通过状态缓存、参数分区和量化AllReduce减少通信开销,提升吞吐量。

摘要:

选择性状态空间模型(SSMs)已迅速成为大语言模型的有力支柱,特别是在长上下文工作负载中。然而,在部署时,其推理性能往往受到单个GPU内存容量、带宽和延迟限制的制约,使多GPU执行变得越来越必要。尽管张量并行性(TP)被广泛用于扩展Transformer推理,但将其应用于选择性SSM块是非平凡的,因为SSM混合器将大型投影与序列式递归状态更新和局部混合相结合,其效率取决于保持局部性和避免关键路径中的同步。本文提出了一种通信高效的TP设计,用于选择性SSM推理,以解决三个实际工程挑战:通过跨预填充和解码的SSM状态缓存实现TTFT改进,将混合器的打包参数张量进行分区,使递归更新保持局部化同时最小化通信,以及通过量化AllReduce减少TP聚合开销。我们评估了三种代表性的基于SSM的LLM,涵盖纯SSM和混合架构——Mamba、Falcon-Mamba和Zamba——在NVIDIA A6000和A100集群上。我们的实验表明,从张量并行SSM推理中获得了显著的吞吐量提升,对于Mamba,在2个GPU上将批量请求吞吐量提高了约1.6-2.1倍,在4个GPU上提高了约2.6-4.0倍,最长上下文长度的收益最大,并通过量化AllReduce进一步实现了约10-18%的吞吐量提升,通过降低同步带宽开销。

英文摘要:

Selective state space models (SSMs) have rapidly become a compelling backbone for large language models, especially for long-context workloads. Yet in deployment, their inference performance is often bounded by the memory capacity, bandwidth, and latency limits of a single GPU, making multi-GPU execution increasingly necessary. Although tensor parallelism (TP) is widely used to scale Transformer inference, applying it to selective SSM blocks is non-trivial because the SSM mixer couples large projections with a sequence-wise recurrent state update and local mixing whose efficiency depends on preserving locality and avoiding synchronization in the critical path. This paper presents a communication-efficient TP design for selective SSM inference that addresses three practical engineering challenges: enabling TTFT improvements via an SSM state cache across prefill and decode, partitioning the mixer's packed parameter tensor so that recurrent updates remain local while minimizing communication, and reducing TP aggregation overhead with quantized AllReduce. We evaluate on three representative SSM-based LLMs spanning pure-SSM and hybrid architectures - Mamba, Falcon-Mamba, and Zamba - on NVIDIA A6000 and A100 clusters. Our experiments show substantial throughput gains from tensor-parallel SSM inference, improving batch-request throughput by ~1.6-2.1x on 2 GPUs and ~2.6-4.0x on 4 GPUs for Mamba, with the largest benefits at long context lengths, and achieving a further ~10-18% throughput improvement from quantized all-reduce by lowering synchronization bandwidth overhead.

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

↑