LGDCMay 10, 2023

Fast Distributed Inference Serving for Large Language Models

arXiv:2305.05920v3192 citations
Originality Highly original
AI Analysis

This work addresses low-latency serving for interactive AI applications like ChatGPT, representing an incremental improvement over existing systems.

The authors tackled the problem of high latency in large language model (LLM) serving systems by developing FastServe, a distributed inference system that uses preemptive scheduling and efficient GPU memory management, resulting in throughput improvements of up to 31.4x and 17.9x compared to vLLM under latency constraints.

Large language models (LLMs) power a new generation of interactive AI applications exemplified by ChatGPT. The interactive nature of these applications demands low latency for LLM inference. Existing LLM serving systems use run-to-completion processing for inference jobs, which suffers from head-of-line blocking and long latency. We present FastServe, a distributed inference serving system for LLMs. FastServe exploits the autoregressive pattern of LLM inference to enable preemption at the granularity of each output token. FastServe uses preemptive scheduling to minimize latency with a novel skip-join Multi-Level Feedback Queue scheduler. Based on the new semi-information-agnostic setting of LLM inference, the scheduler leverages the input length information to assign an appropriate initial queue for each arrival job to join. The higher priority queues than the joined queue are skipped to reduce demotions. We design an efficient GPU memory management mechanism that proactively offloads and uploads intermediate state between GPU memory and host memory for LLM inference. We build a system prototype of FastServe and experimental results show that compared to the state-of-the-art solution vLLM, FastServe improves the throughput by up to 31.4x and 17.9x under the same average and tail latency requirements, respectively.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes