Preble: Efficient Distributed Prompt Scheduling for LLM Serving

Vikranth Srivatsa, Zijian He, Reyna Abhyankar, Dongming Li, Yiying Zhang
5/8/2024
cs.DCcs.LG

No official code found. Best implementation: WukLab/preble (106 stars, Apache-2.0, last commit 2025-03-11).

Abstract

Prompts to large language models (LLMs) have evolved beyond simple user questions. For LLMs to solve complex problems, today's practices are to include domain-specific instructions, illustration of tool usages, and/or long context such as textbook chapters in prompts. As such, many parts of prompts are repetitive across requests. Recent works propose to cache and reuse KV state of prompts. However, they are all confined to a single-GPU optimization, while production LLM serving systems are distributed by nature. This paper proposes Preble, the first distributed LLM serving platform that targets and optimizes for prompt sharing. We designed a distributed scheduling system that co-optimizes KV state reuse and computation load-balancing with a new scheduling algorithm and a hierarchical scheduling mechanism. Our evaluation of Preble with real workloads and request arrival patterns on two open-source LLMs shows that Preble outperforms the SOTA serving systems by 1.5X to 14.5X on average latency and 2X to 10X on p99 latency.

View on arXivView PDF

Code Implementations(1)

WukLab/prebleCommunity100%
Apache-2.0

Stateful LLM Serving

10618Shell, PythonMar 4, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{srivatsa2024preble,
  title  = {Preble: Efficient Distributed Prompt Scheduling for LLM Serving},
  author = {Vikranth Srivatsa and Zijian He and Reyna Abhyankar and Dongming Li and Yiying Zhang},
  year   = {2024},
  eprint = {2407.00023},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.00023v2},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.00023.svg)](https://codeofpaper.com/paper/2407.00023)

Discussion