[Paper Review] DeepSpeed-FastGen: High-throughput Text Generation for LLMs via MII and DeepSpeed-Inference
DeepSpeed-FastGen uses Dynamic SplitFuse with DeepSpeed-MII and DeepSpeed-Inference to achieve higher throughput and lower latency for LLM text generation, outperforming vLLM on multiple Llama-2 models.
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.
Motivation & Objective
- Motivate the need for high-throughput, low-latency LLM serving for long prompts and interactive workloads.
- Introduce Dynamic SplitFuse as a prompt-generation composition strategy to improve continuous batching.
- Showcase integration of DeepSpeed-MII and DeepSpeed-Inference to deliver an easy-to-use serving system.
- Benchmark performance across models and hardware to quantify throughput, latency, and tail latency improvements.
- Discuss deployment options (non-persistent vs persistent) and roadmap for broader model support and hardware backends.
Proposed method
- Proposes Dynamic SplitFuse to decompose long prompts into small chunks scheduled across multiple forward passes.
- Utilizes continuous batching and non-contiguous KV caches to improve occupancy and reduce fragmentation.
- Leverages a blocked KV cache to increase concurrency and throughput.
- Combines DeepSpeed-MII with DeepSpeed-Inference to provide frontend APIs, batching scheduler, and optimized kernels.
- Implements both non-persistent and persistent deployment modes with optional load balancing for scalability.
- Evaluates via throughput-latency curves and effective throughput under SLA constraints across multiple models and GPUs.

Experimental results
Research questions
- RQ1Can Dynamic SplitFuse improve throughput and latency for long-prompt LLM workloads compared with state-of-the-art systems like vLLM?
- RQ2How does the forward-token count influence latency and throughput relative to batch-size variations?
- RQ3What is the impact of load balancing and multi-replica deployment on overall scalability and SLA satisfaction?
- RQ4How do non-persistent vs persistent deployment modes affect usability and performance in interactive versus long-running scenarios?
- RQ5What are the observed tail-latency improvements (P90/P95) and overall latency stability with DeepSpeed-FastGen?
Key findings
- DeepSpeed-FastGen achieves up to 2.3x higher effective throughput vs vLLM.
- On average, it delivers about 2x lower latency and up to 3.7x lower token-level tail latency.
- Tail latency improvements are attributed to concurrent prompt processing and generation rather than preemption.
- Load balancing across up to 16 replicas yields near-linear scalability (16x throughput with 16 replicas).
- Performance gains are observed across Llama-2 70B, 13B, and 7B on A100, H100, and A6000 hardware.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.