Efficient LLM Scheduling by Learning to Rank

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Fu, Yichao, Zhu, Siqi, Su, Runlong, Qiao, Aurick, Stoica, Ion, Zhang, Hao
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913483946196992
author Fu, Yichao
Zhu, Siqi
Su, Runlong
Qiao, Aurick
Stoica, Ion
Zhang, Hao
author_facet Fu, Yichao
Zhu, Siqi
Su, Runlong
Qiao, Aurick
Stoica, Ion
Zhang, Hao
contents In Large Language Model (LLM) inference, the output length of an LLM request is typically regarded as not known a priori. Consequently, most LLM serving systems employ a simple First-come-first-serve (FCFS) scheduling strategy, leading to Head-Of-Line (HOL) blocking and reduced throughput and service quality. In this paper, we reexamine this assumption -- we show that, although predicting the exact generation length of each request is infeasible, it is possible to predict the relative ranks of output lengths in a batch of requests, using learning to rank. The ranking information offers valuable guidance for scheduling requests. Building on this insight, we develop a novel scheduler for LLM inference and serving that can approximate the shortest-job-first (SJF) schedule better than existing approaches. We integrate this scheduler with the state-of-the-art LLM serving system and show significant performance improvement in several important applications: 2.8x lower latency in chatbot serving and 6.5x higher throughput in synthetic data generation. Our code is available at https://github.com/hao-ai-lab/vllm-ltr.git
format Preprint
id arxiv_https___arxiv_org_abs_2408_15792
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient LLM Scheduling by Learning to Rank
Fu, Yichao
Zhu, Siqi
Su, Runlong
Qiao, Aurick
Stoica, Ion
Zhang, Hao
Machine Learning
In Large Language Model (LLM) inference, the output length of an LLM request is typically regarded as not known a priori. Consequently, most LLM serving systems employ a simple First-come-first-serve (FCFS) scheduling strategy, leading to Head-Of-Line (HOL) blocking and reduced throughput and service quality. In this paper, we reexamine this assumption -- we show that, although predicting the exact generation length of each request is infeasible, it is possible to predict the relative ranks of output lengths in a batch of requests, using learning to rank. The ranking information offers valuable guidance for scheduling requests. Building on this insight, we develop a novel scheduler for LLM inference and serving that can approximate the shortest-job-first (SJF) schedule better than existing approaches. We integrate this scheduler with the state-of-the-art LLM serving system and show significant performance improvement in several important applications: 2.8x lower latency in chatbot serving and 6.5x higher throughput in synthetic data generation. Our code is available at https://github.com/hao-ai-lab/vllm-ltr.git
title Efficient LLM Scheduling by Learning to Rank
topic Machine Learning
url https://arxiv.org/abs/2408.15792