arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.08671cs.PFcs.LG
收藏

DeepSpeed-FastGen:通过 MII 和 DeepSpeed-Inference 实现 LLM 的高吞吐量文本生成

DeepSpeed-FastGen: High-throughput Text Generation for LLMs via MII and DeepSpeed-Inference

Microsoft DeepSpeed(微软DeepSpeed)

Connor Holmes, Masahiro Tanaka, Michael Wyatt, Ammar Ahmad Awan, Jeff Rasley, Samyam Rajbhandari, Reza Yazdani Aminabadi, Heyang Qin, Arash Bakhtiari, Lev Kurilenko, Yuxiong He

AI总结:

DeepSpeed-FastGen 通过 Dynamic SplitFuse 策略结合 MII 与 DeepSpeed-Inference,显著提升 LLM 文本生成的吞吐量并降低延迟,优于 vLLM 等现有系统。

摘要:

随着大型语言模型(LLMs)渗透到各种应用中,其部署和扩展变得至关重要,这要求服务系统具备高吞吐量和低延迟。现有框架难以平衡这些需求,尤其是在处理长提示词的工作负载时。本文介绍了 DeepSpeed-FastGen,一个采用 Dynamic SplitFuse 的系统,这是一种新颖的提示与生成组合策略,与 vLLM 等最先进的系统相比,可提供高达 2.3 倍的有效吞吐量、平均低 2 倍的延迟以及低至 3.7 倍的(token 级)尾部延迟。我们利用 DeepSpeed-MII 和 DeepSpeed-Inference 的协同组合,为 LLMs 提供一个高效且易于使用的服务系统。DeepSpeed-FastGen 的高级实现支持多种模型,并提供非持久性和持久性部署选项,以满足从交互式会话到长期运行应用的各种用户场景。我们提出了详细的基准测试方法,通过延迟-吞吐量曲线分析性能,并通过负载均衡研究可扩展性。我们的评估表明,在各种模型和硬件配置下,吞吐量和延迟均有显著改善。我们讨论了未来增强的路线图,包括更广泛的模型支持和新的硬件后端。DeepSpeed-FastGen 代码已开放,供社区参与和贡献。

英文摘要:

The deployment and scaling of large language models (LLMs) have become critical as they permeate various applications, demanding high-throughput and low-latency serving systems. Existing frameworks struggle to balance these requirements, especially for workloads with long prompts. This paper introduces DeepSpeed-FastGen, a system that employs Dynamic SplitFuse, a novel prompt and generation composition strategy, to deliver up to 2.3x higher effective throughput, 2x lower latency on average, and up to 3.7x lower (token-level) tail latency, compared to state-of-the-art systems like vLLM. We leverage a synergistic combination of DeepSpeed-MII and DeepSpeed-Inference to provide an efficient and easy-to-use serving system for LLMs. DeepSpeed-FastGen's advanced implementation supports a range of models and offers both non-persistent and persistent deployment options, catering to diverse user scenarios from interactive sessions to long-running applications. We present a detailed benchmarking methodology, analyze the performance through latency-throughput curves, and investigate scalability via load balancing. Our evaluations demonstrate substantial improvements in throughput and latency across various models and hardware configurations. We discuss our roadmap for future enhancements, including broader model support and new hardware backends. The DeepSpeed-FastGen code is readily available for community engagement and contribution.

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

↑