Mell: Memory-Efficient Large Language Model Serving via Multi-GPU KV Cache Management

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Qianli, Liu, Zicong, Hong, Fahao, Chen, Peng, Li, Song, Guo
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929672079540224
author Qianli, Liu
Zicong, Hong
Fahao, Chen
Peng, Li
Song, Guo
author_facet Qianli, Liu
Zicong, Hong
Fahao, Chen
Peng, Li
Song, Guo
contents Serving large language models (LLMs) for massive users is challenged by the significant memory footprint of the transient state, known as the key-value (KV) cache, which scales with sequence length and number of requests. Instead of renting or buying more expensive GPUs, the load imbalance of the KV cache across GPUs, coupled with recent advances in inter-GPU communication, provides an opportunity to serve more requests via request migration. However, high migration overhead and unpredictable request patterns make it challenging. Therefore, this paper proposes MELL, a memory-efficient LLM serving system via multi-GPU KV cache management. It saves the number of GPUs needed in the system by considering the dynamic KV cache load and the costly request migration. Specifically, we first develop an adaptive request migration mechanism to balance the computational and communication overheads and adapt to diverse resource conditions. Then, we design an online algorithm tailored to a multi-LLM request and multi-GPU scheduling problem with migration enabled. It aims to minimise the required GPUs while limiting the number of migrations. Finally, we implement a prototype of MELL and demonstrate that it reduces the number of GPUs by 31% and increases the GPU utilization by 43% at most compared to existing LLM serving systems.
format Preprint
id arxiv_https___arxiv_org_abs_2501_06709
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Mell: Memory-Efficient Large Language Model Serving via Multi-GPU KV Cache Management
Qianli, Liu
Zicong, Hong
Fahao, Chen
Peng, Li
Song, Guo
Distributed, Parallel, and Cluster Computing
Serving large language models (LLMs) for massive users is challenged by the significant memory footprint of the transient state, known as the key-value (KV) cache, which scales with sequence length and number of requests. Instead of renting or buying more expensive GPUs, the load imbalance of the KV cache across GPUs, coupled with recent advances in inter-GPU communication, provides an opportunity to serve more requests via request migration. However, high migration overhead and unpredictable request patterns make it challenging. Therefore, this paper proposes MELL, a memory-efficient LLM serving system via multi-GPU KV cache management. It saves the number of GPUs needed in the system by considering the dynamic KV cache load and the costly request migration. Specifically, we first develop an adaptive request migration mechanism to balance the computational and communication overheads and adapt to diverse resource conditions. Then, we design an online algorithm tailored to a multi-LLM request and multi-GPU scheduling problem with migration enabled. It aims to minimise the required GPUs while limiting the number of migrations. Finally, we implement a prototype of MELL and demonstrate that it reduces the number of GPUs by 31% and increases the GPU utilization by 43% at most compared to existing LLM serving systems.
title Mell: Memory-Efficient Large Language Model Serving via Multi-GPU KV Cache Management
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2501.06709