跳到正文
DEV Community · LLM· RuChating·· 6 天前AI 评分54

推测解码的第二份 KV cache 为何会改变推理服务器的内存规划

The second KV cache: why speculative decoding's memory bill is not the one you modeled

AI 导读

文章指出,推测解码的每个请求同时维护目标模型和 draft 模型两份 KV cache,容量规划不能只计算一份。文中解读的 K4V4 方案将 draft KV cache 内存降低 66.20%,两份 cache 合计内存降低 23.95%,平均接受率从 57.93% 降至 57.14%。

来源:DEV Community · LLM · dev.to