跳到正文
返回论文列表
cs.LG提交于 已译

Gandalf:Flash 不会消逝!提升 LLM 服务中 KV Cache 卸载的 Flash 存储寿命

Gandalf: Flash Shall Not Die! Increasing Flash Storage Lifetime for KV Cache Offloading in LLM Serving

Maharani A. P. Irawan · Kuntai Du · Jiayi Yao · Dongjoo Seo · Yuyang Huang · Haryadi S. Gunawi · et al.

中文摘要

KV 缓存可降低大语言模型(LLM)的 serving 成本,但其规模持续增长,已逐渐超出 GPU 和主机内存容量,因此人们使用高 I/O 带宽的 SSD 扩展存储容量。然而,在多轮对话和 LLM agent 等生产负载中,KV 缓存总写入量显著超过 SSD 容量,使 SSD 寿命从数年缩短至数月。依据历史访问模式筛选缓存写入可减少写入量,但不同注意力类型可能具有相同历史模式、不同未来模式,导致缓存命中率下降并推高服务成本。Gandalf 是首个具备 SSD 寿命感知能力的 KV Cache 卸载系统,优先将全注意力(full-attention)生成的缓存写入 SSD,而非其他注意力类型的缓存,从而延长 SSD 寿命且不牺牲缓存命中率。多类工作负载轨迹和多种硬件容量下的评估显示,Gandalf 平均将 SSD 寿命延长 7.3X,缓存命中率影响可忽略;其设计也可扩展至 High Bandwidth Flash(HBF)等闪存存储。

关键要点

  1. 01KV Cache 写入量超过 SSD 容量, Flash 寿命可由数年降至数月
  2. 02仅按历史访问模式抑制写入会降低命中率并增加 LLM 服务成本
  3. 03结合注意力类型,优先将全注意力缓存卸载至 SSD
  4. 04Gandalf 在多种工作负载与硬件容量下平均延长 SSD 寿命 7.3X
  5. 05该设计也可扩展至 High Bandwidth Flash 等闪存存储

解读

尚无解读。

原始英文摘要

arXiv:2610.30791v1 Announce Type: new Abstract: KV caching reduces the serving cost of large language models (LLMs), but the growing KV cache footprint is increasingly exceeds GPU and host-memory capacity. Therefore, people use SSD to expand the KV cache storage capacity with high I/O bandwidth. However, in production LLM workload, such as multi-round conversation and LLM agents, the total amount of KV cache writes significantly exceeds SSD capacity, shortening SSD lifetime from years to months. To improve SSD lifetime, a natural solution is to reduce the KV cache writes by gating the KV cache writes via historical access patterns. However, that significantly lowers the KV cache hit rate (and increase the LLM serving cost) since KV caches from different attention types might have identical historical access pattern but different future access patterns. Our insight is that, to reduce KV cache writes without hurting KV cache hit rate, one need to not only consider the access pattern, but also application-level information such as the attention type of KV cache. Leveraging this observation, we propose Gandalf , the first SSD KV cache offloading system with SSD life time awareness. Gandalf prioritize the admission of full-attention KV cache into SSD over the cache generated by other types of attention, which significantly increases SSD lifetime without sacrificing cache hit rate. Our evaluation shows that Gandalf extends the SSD lifetime by 7.3X on average, while having negligible impact on cache hit rate across multiple workload traces and wide range of hardware capacity. Gandalf design can be extended to other flash-based storage, such as High Bandwidth Flash (HBF).

同方向论文 · cs.LG

查看全部 →

反向发现 · 这篇论文相关的工具与提示词

去交叉发现 →

关联提示词 · 3

编程github.com/f/awesome-chatgpt-prompts·外部收录·

Android AI App Security Specialist Task

Act as an Android AI App Security Specialist. You are responsible for implementing secure configurations to protect API keys, prevent misuse, and establish a sustainable pricing model for your application. Your tasks include: 1. **Backend…

编程github.com/f/awesome-chatgpt-prompts·外部收录·

AI Engineer

--- name: ai-engineer description: "Use this agent when implementing AI/ML features, integrating language models, building recommendation systems, or adding intelligent automation to applications. This agent specializes in practical AI impl…