arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.16495cs.DC
收藏

Shift Parallelism:低延迟、高吞吐量的LLM推理用于动态工作负载

Shift Parallelism: Low-Latency, High-Throughput LLM Inference for Dynamic Workloads

Snowflake AI Research(Snowflake 人工智能研究)

Mert Hidayetoglu, Aurick Qiao, Michael Wyatt, Jeff Rasley, Yuxiong He, Samyam Rajbhandari

AI总结:

Shift Parallelism通过结合张量并行和序列并行,实现动态工作负载下的低延迟和高吞吐量LLM推理。

摘要:

高效并行化对于实现大语言模型(LLM)的低延迟、高吞吐量推理至关重要。张量并行(TP)是减少LLM响应延迟的最新方法,然而GPU通信会降低综合token吞吐量。另一方面,数据并行(DP)可以获得更高的吞吐量,但响应延迟较慢。最佳方案并不存在,且由于KV缓存的差异无法将TP和DP结合。我们注意到序列并行(SP - Ulysses在训练中)具有与DP相似的特性,但具有KV缓存不变性。我们适应SP用于推理,并将其与TP结合,以获得最佳方案。我们的解决方案:Shift Parallelism。Shift Parallelism动态切换TP和SP,并在低流量时最小化延迟,在高流量时不损失吞吐量。Shift Parallelism的高效GPU通信在交互式工作负载中比仅TP方案快1.51倍,在批量工作负载中吞吐量高50%。我们使用真实世界生产跟踪和动态流量模式以及跨模型、上下文大小和到达率的合成基准测试评估Shift Parallelism。所有结果都证实了相同:Shift Parallelism在延迟与吞吐量的权衡上优于TP或DP,因此在动态工作负载中获得低延迟而不降低吞吐量。

英文摘要:

Efficient parallelism is necessary for achieving low-latency, high-throughput inference with large language models (LLMs). Tensor parallelism (TP) is the state-of-the-art method for reducing LLM response latency, however GPU communications reduces combined token throughput. On the other hand, data parallelism (DP) obtains a higher throughput yet is slow in response latency. Best of both worlds does not exist, and it is not possible to combine TP and DP because of the KV cache variance across the parallelisms. We notice Sequence Parallelism (SP - Ulysses in training) has similar properties as DP but with KV cache invariance. We adapt SP to inference, and combine it with TP to get the best of both worlds. Our solution: Shift Parallelism. Shift Parallelism dynamically switches across TP and SP, and minimizes latency in low traffic without losing throughput in high traffic. The efficient GPU communications of Shift Parallelism yields up to i) 1.51x faster response in interactive workloads and ii) 50% higher throughput in batch workloads, compared to a TP-only solution. We evaluate Shift Parallelism with real-world production traces with dynamic traffic patterns as well as synthetic benchmarking patterns across models, context sizes, and arrival rates. All results affirm the same: Shift Parallelism has a better the latency vs. throughput tradeoff than TP or DP, and hence obtains low latency without degrading throughput in dynamic workloads.

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

↑