arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.00079cs.DCcs.AIcs.AR
收藏

Mooncake:一种面向大语言模型服务的以KVCache为中心的分解架构

Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving

Moonshot AI;Tsinghua University(清华大学)

Ruoyu Qin, Zheming Li, Weiran He, Mingxing Zhang, Yongwei Wu, Weimin Zheng, Xinran Xu

AI总结:

本研究提出了面向LLM服务的以KVCache为中心的分解架构Mooncake,通过分离预填充与解码集群、利用闲置资源构建分布式缓存及预测式早期拒绝策略,在长上下文场景下大幅提升吞吐量,支撑Kimi服务处理更多请求。

摘要:

Mooncake是Moonshot AI推出的领先大语言模型服务Kimi的服务平台。它采用以KVCache为中心的分解架构,将预填充(prefill)集群和解码(decoding)集群分离,还利用GPU集群中未充分利用的CPU、DRAM和SSD资源,实现了KVCache的分布式缓存。Mooncake的核心是以KVCache为中心的调度器,它在最大化整体有效吞吐量的同时,满足与延迟相关的服务水平目标(SLO)。与传统研究假设所有请求都会被处理不同,Mooncake面临着高度过载场景带来的挑战。为缓解这些问题,我们开发了一种基于预测的早期拒绝策略。实验表明,Mooncake在长上下文场景中表现出色。与基线方法相比,在某些模拟场景下,Mooncake在遵守SLO的同时,吞吐量可提升高达525%。在真实工作负载下,Mooncake的创新架构使Kimi能够多处理75%的请求。

英文摘要:

Mooncake is the serving platform for Kimi, a leading LLM service provided by Moonshot AI. It features a KVCache-centric disaggregated architecture that separates the prefill and decoding clusters. It also leverages the underutilized CPU, DRAM, and SSD resources of the GPU cluster to implement a disaggregated cache of KVCache. The core of Mooncake is its KVCache-centric scheduler, which balances maximizing overall effective throughput while meeting latency-related Service Level Objectives (SLOs). Unlike traditional studies that assume all requests will be processed, Mooncake faces challenges due to highly overloaded scenarios. To mitigate these, we developed a prediction-based early rejection policy. Experiments show that Mooncake excels in long-context scenarios. Compared to the baseline method, Mooncake can achieve up to a 525% increase in throughput in certain simulated scenarios while adhering to SLOs. Under real workloads, Mooncake's innovative architecture enables Kimi to handle 75% more requests.

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

↑