A System for Microserving of LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jin, Hongyi, Lai, Ruihang, Ruan, Charlie F., Wang, Yingcheng, Mowry, Todd C., Miao, Xupeng, Jia, Zhihao, Chen, Tianqi
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915067159642112
author Jin, Hongyi
Lai, Ruihang
Ruan, Charlie F.
Wang, Yingcheng
Mowry, Todd C.
Miao, Xupeng
Jia, Zhihao
Chen, Tianqi
author_facet Jin, Hongyi
Lai, Ruihang
Ruan, Charlie F.
Wang, Yingcheng
Mowry, Todd C.
Miao, Xupeng
Jia, Zhihao
Chen, Tianqi
contents The recent advances in LLMs bring a strong demand for efficient system support to improve overall serving efficiency. As LLM inference scales towards multiple GPUs and even multiple compute nodes, various coordination patterns, such as prefill-decode disaggregation and context migration, arise in serving systems. Most inference services today expose a coarse-grained request-level API with a pre-configured coordination strategy, limiting the ability to customize and dynamically reconfigure the coordination. In this paper, we propose LLM microserving, a multi-level architecture for structuring and programming LLM inference services. We introduces simple yet effective microserving APIs to support fine-grained sub-request level actions. A programmable router transforms user requests into sub-request calls, enabling the dynamic reconfiguration of serving patterns. To support diverse execution patterns, we develop a unified KV cache interface that handles various KV compute, transfer, and reuse scenarios. Our evaluation shows that LLM microserving can be reconfigured to support multiple disaggregation orchestration strategies in a few lines of Python code while maintaining state-of-the-art performance for LLM inference tasks. Additionally, it allows us to explore new strategy variants that reduce up to 47% of job completion time compared to the existing strategies.
format Preprint
id arxiv_https___arxiv_org_abs_2412_12488
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A System for Microserving of LLMs
Jin, Hongyi
Lai, Ruihang
Ruan, Charlie F.
Wang, Yingcheng
Mowry, Todd C.
Miao, Xupeng
Jia, Zhihao
Chen, Tianqi
Distributed, Parallel, and Cluster Computing
The recent advances in LLMs bring a strong demand for efficient system support to improve overall serving efficiency. As LLM inference scales towards multiple GPUs and even multiple compute nodes, various coordination patterns, such as prefill-decode disaggregation and context migration, arise in serving systems. Most inference services today expose a coarse-grained request-level API with a pre-configured coordination strategy, limiting the ability to customize and dynamically reconfigure the coordination. In this paper, we propose LLM microserving, a multi-level architecture for structuring and programming LLM inference services. We introduces simple yet effective microserving APIs to support fine-grained sub-request level actions. A programmable router transforms user requests into sub-request calls, enabling the dynamic reconfiguration of serving patterns. To support diverse execution patterns, we develop a unified KV cache interface that handles various KV compute, transfer, and reuse scenarios. Our evaluation shows that LLM microserving can be reconfigured to support multiple disaggregation orchestration strategies in a few lines of Python code while maintaining state-of-the-art performance for LLM inference tasks. Additionally, it allows us to explore new strategy variants that reduce up to 47% of job completion time compared to the existing strategies.
title A System for Microserving of LLMs
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2412.12488