Table of Contents
Fetching ...

Efficient Interactive LLM Serving with Proxy Model-based Sequence Length Prediction

Haoran Qiu, Weichao Mao, Archit Patke, Shengkun Cui, Saurabh Jha, Chen Wang, Hubertus Franke, Zbigniew T. Kalbarczyk, Tamer Başar, Ravishankar K. Iyer

TL;DR

A speculative shortest-job-first (SSJF) scheduler that uses a light proxy model to predict LLM output sequence lengths and reduces average job completion times and increases throughput across no batching, dynamic batching, and continuous batching settings.

Abstract

Large language models (LLMs) have been driving a new wave of interactive AI applications across numerous domains. However, efficiently serving LLM inference requests is challenging due to their unpredictable execution times originating from the autoregressive nature of generative models. Existing LLM serving systems exploit first-come-first-serve (FCFS) scheduling, suffering from head-of-line blocking issues. To address the non-deterministic nature of LLMs and enable efficient interactive LLM serving, we present a speculative shortest-job-first (SSJF) scheduler that uses a light proxy model to predict LLM output sequence lengths. Our open-source SSJF implementation does not require changes to memory management or batching strategies. Evaluations on real-world datasets and production workload traces show that SSJF reduces average job completion times by 30.5-39.6% and increases throughput by 2.2-3.6x compared to FCFS schedulers, across no batching, dynamic batching, and continuous batching settings.

Efficient Interactive LLM Serving with Proxy Model-based Sequence Length Prediction

TL;DR

A speculative shortest-job-first (SSJF) scheduler that uses a light proxy model to predict LLM output sequence lengths and reduces average job completion times and increases throughput across no batching, dynamic batching, and continuous batching settings.

Abstract

Large language models (LLMs) have been driving a new wave of interactive AI applications across numerous domains. However, efficiently serving LLM inference requests is challenging due to their unpredictable execution times originating from the autoregressive nature of generative models. Existing LLM serving systems exploit first-come-first-serve (FCFS) scheduling, suffering from head-of-line blocking issues. To address the non-deterministic nature of LLMs and enable efficient interactive LLM serving, we present a speculative shortest-job-first (SSJF) scheduler that uses a light proxy model to predict LLM output sequence lengths. Our open-source SSJF implementation does not require changes to memory management or batching strategies. Evaluations on real-world datasets and production workload traces show that SSJF reduces average job completion times by 30.5-39.6% and increases throughput by 2.2-3.6x compared to FCFS schedulers, across no batching, dynamic batching, and continuous batching settings.
Paper Structure (12 sections, 9 figures, 2 tables)

This paper contains 12 sections, 9 figures, 2 tables.

Figures (9)

  • Figure 1: SSJF overview.
  • Figure 2: Output length predictor architecture.
  • Figure 3: Batching vs. Continuous batching.
  • Figure 4: Job completion time (JCT) with varying rates.
  • Figure 5: Job completion time (JCT) with varying burstiness.
  • ...and 4 more figures