计算机科学
隐藏物
智能缓存
缓存算法
并行计算
缓存失效
CPU缓存
缓存污染
缓存着色
操作系统
计算机网络
页面缓存
异步通信
嵌入式系统
延迟(音频)
重新使用
调度(生产过程)
公共汽车嗅探
吞吐量
MESI协议
德拉姆
管道(软件)
分布式计算
作者
Kexin Chu,Zixu Shen,Sheng-Ru Cheng,Dawei Xiang,Ziqin Liu,Wei Zhang
标识
DOI:10.1109/icdcs63083.2025.00062
摘要
The KV cache in current LLM serving system is primarily used to accelerate processing within a single request and is aggressively deleted once the response is generated. However, in scenarios like virtual assistants and multi-turn conversations, the KV cache can be reused across requests, which can dramatically reduce computation costs and improve serving latency. Caching historical tokens, however, significantly increases memory requirements. Furthermore, existing serving systems treat the request scheduler and KV cache separately, despite their tight coupling.MCaM is a multi-tier cache system that enables the KV cache reuse and sharing across requests. It leverages DRAM as slow- tier memory for storing the KV cache of historical prompts. To efficiently utilize fast-tier Hign Bandwidth Memory(HBM) on GPU, we co-designed the KV cache manager and scheduler to coordinate request scheduling and token placement across tiers. To hide the reload time, MCaM employs a pipeline prefetcher that overlaps communication and computation. Additionally, MCaM incorporates a quality-aware sparsification algorithm to heterogeneously compress the KV cache in each layer. This approach not only reduces data transfer size but also decreases the overall KV cache size. To remove data offloading from a request’s critical path, we designed an asynchronous offload engine that swaps data from HBM to DRAM in the background. Our experiments show that MCaM can reduce TTFT by up to 69% and improve prompt prefilling throughput by 3.3X. It can also reduce the end-to-end latency of LLM inference by up to 58% when request length increase to 4096 tokens.
科研通智能强力驱动
Strongly Powered by AbleSci AI