arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.17565cs.DC
收藏

MemServe:面向具有弹性内存池的分离式 LLM 服务上下文缓存

MemServe: Context Caching for Disaggregated LLM Serving with Elastic Memory Pool

Cunchen Hu, Heyang Huang, Junhao Hu, Jiang Xu, Xusheng Chen, Tao Xie, Chenxi Wang, Sa Wang, Yungang Bao, Ninghui Sun, Yizhou Shan

AI总结:

MemServe 是一个统一系统,通过弹性内存池 MemPool 管理分布式内存和 KV 缓存,首次将上下文缓存与分离式推理结合,并利用全局调度器提升缓存重用,显著改善作业完成时间和首字时间。

摘要:

大语言模型(LLM)服务已从无状态系统转变为有状态系统,利用了上下文缓存和分离式推理等技术。这些优化扩展了 KV 缓存的生命周期和作用域,需要一种新的架构方法。我们提出了 MemServe,一个整合了请求间和请求内优化的统一系统。MemServe 引入了 MemPool,这是一个弹性内存池,用于管理服务实例间的分布式内存和 KV 缓存。使用 MemPool API,MemServe 首次将上下文缓存与分离式推理相结合,并由全局调度器支持,该调度器通过基于全局提示树的局部性感知策略增强缓存重用。测试表明,MemServe 显著改善了作业完成时间和首字时间。

英文摘要:

Large language model (LLM) serving has transformed from stateless to stateful systems, utilizing techniques like context caching and disaggregated inference. These optimizations extend the lifespan and domain of the KV cache, necessitating a new architectural approach. We present MemServe, a unified system that integrates both inter-request and intra-request optimizations. MemServe introduces MemPool, an elastic memory pool managing distributed memory and KV caches across serving instances. Using MemPool APIs, MemServe combines context caching with disaggregated inference for the first time, supported by a global scheduler that enhances cache reuse through a global prompt tree-based locality-aware policy. Tests show that MemServe significantly improves job completion time and time-to-first-time.

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

↑