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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Holmes, Connor, Tanaka, Masahiro, Wyatt, Michael, Awan, Ammar Ahmad, Rasley, Jeff, Rajbhandari, Samyam, Aminabadi, Reza Yazdani, Qin, Heyang, Bakhtiari, Arash, Kurilenko, Lev, He, Yuxiong
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929212360753152
author Holmes, Connor
Tanaka, Masahiro
Wyatt, Michael
Awan, Ammar Ahmad
Rasley, Jeff
Rajbhandari, Samyam
Aminabadi, Reza Yazdani
Qin, Heyang
Bakhtiari, Arash
Kurilenko, Lev
He, Yuxiong
author_facet Holmes, Connor
Tanaka, Masahiro
Wyatt, Michael
Awan, Ammar Ahmad
Rasley, Jeff
Rajbhandari, Samyam
Aminabadi, Reza Yazdani
Qin, Heyang
Bakhtiari, Arash
Kurilenko, Lev
He, Yuxiong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_08671
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle DeepSpeed-FastGen: High-throughput Text Generation for LLMs via MII and DeepSpeed-Inference
Holmes, Connor
Tanaka, Masahiro
Wyatt, Michael
Awan, Ammar Ahmad
Rasley, Jeff
Rajbhandari, Samyam
Aminabadi, Reza Yazdani
Qin, Heyang
Bakhtiari, Arash
Kurilenko, Lev
He, Yuxiong
Performance
Machine Learning
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.
title DeepSpeed-FastGen: High-throughput Text Generation for LLMs via MII and DeepSpeed-Inference
topic Performance
Machine Learning
url https://arxiv.org/abs/2401.08671