arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.18169cs.DCcs.AI
收藏

KunServe:面向LLM服务中高效内存过载处理的参数中心内存管理

KunServe: Parameter-centric Memory Management for Efficient Memory Overloading Handling in LLM Serving

Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University(并行与分布式系统研究所,上海交通大学)

Rongxin Cheng, Yuxin Lai, Xingda Wei, Rong Chen, Haibo Chen

AI总结:

KunServe提出参数中心内存管理,通过选择性丢弃复制参数应对LLM服务内存过载,结合流水线并行,将尾部TTFT降低高达72.2倍。

摘要:

如今,使用GPU集群服务大语言模型(LLM)已很常见,服务系统必须满足应用所要求的严格延迟SLO。然而,LLM服务的状态特性要求在有限的GPU内存中维护大量状态(即KVCache)。在真实工作负载的尖峰下,GPU内存容易受到限制,导致由于等待KVCache被回收而引入的排队,响应延迟高出几个数量级。先前的KVCache中心方法通过丢弃、迁移或交换KVCache来处理负载限制。这些方法在请求仍在排队时,无法快速释放足够的内存。本文提出第一种参数中心的方法来处理限制,基于一个未被注意的观察:模型参数在服务LLM时通常在GPU间复制,通过选择性丢弃复制的参数来立即为请求释放内存。有了额外内存,所有请求可以以更大的批次服务而无需排队。为使参数中心方法正确且高效,我们使用流水线并行在具有完整参数副本的GPU上协作执行请求,并推导出无需不必要协作的适当丢弃计划。我们还设计了技术来最小化因丢弃下请求执行模式而导致的流水线并行性能开销。评估显示,与包括Llumnix、vLLM和InferCept在内的最先进系统相比,KunServe在限制下将请求的尾部TTFT降低了高达72.2倍。

英文摘要:

Serving LLMs with a cluster of GPUs is common nowadays, where the serving system must meet strict latency SLOs required by applications. However, the stateful nature of LLM serving requires maintaining huge states (i.e., KVCache) in limited GPU memory. Under spikes in real-world workloads, GPU memory can be easily throttled, leading to orders of magnitude higher response latency due to queuing introduced by waiting for KVCache to be reclaimed. Prior KVCache-centric approaches handle load throttling by dropping, migrating, or swapping KVCache. These methods fail to release sufficient memory quickly with requests still queued. This paper proposes the first parameter-centric approach to handling throttling by selectively dropping replicated parameters to instantly free memory for requests, based on an unnoticed observation that model parameters are commonly replicated across GPUs for serving LLMs. With additional memory, all requests can be served with a larger batch without queuing. To make the parameter-centric approach correct and efficient, we cooperatively execute requests on GPUs with a complete copy of parameters using pipeline parallelism, and derive an appropriate drop plan without unnecessary cooperation. We also design techniques to minimize the performance overhead due to pipeline parallelism with the execution patterns of requests under drop. Evaluations show that {\sys} reduces the tail TTFT of requests under throttling by up to 72.2 times compared to the state-of-the-art systems including Llumnix, vLLM and InferCept.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑