PulseAugur
实时 02:31:37
English(EN) Llama-Server is Throwing Away Your Perfectly Good KV Caches, and How to Fix It

Llama-server 错误丢弃 KV 缓存,修复恢复快速状态恢复

llama-server 中的一个错误导致它丢弃了恢复的 KV 缓存,强制进行完全的重新预填充,并显著增加了处理时间。该问题源于服务器的状态保存机制,该机制序列化了 token 数据,但没有序列化高效回滚所需的检查点元数据。成功的修复方法是将此检查点元数据持久化到侧边栏文件中,从而实现更快的状态恢复,并避免冗长的提示重新计算。 AI

影响 修复了一个显著减慢 llama-server 中状态恢复速度的错误,提高了在预算硬件上处理长上下文任务的效率。

排序理由 该条目讨论了 llama-server 软件中特定功能的错误修复,llama-server 是一个用于运行大型语言模型的工具。

在 r/LocalLLaMA 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Llama-server 错误丢弃 KV 缓存,修复恢复快速状态恢复

报道来源 [1]

  1. r/LocalLLaMA TIER_1 English(EN) · /u/apollo_mg ·

    Llama-Server 正在丢弃你完好的 KV 缓存,以及如何修复它

    <!-- SC_OFF --><div class="md"><h1>Introduction</h1> <p><a href="https://gist.github.com/apollo-mg/6defe7c0e3aba47727c758df03360b3e#introduction"></a></p> <p>I watched 2.49 GB of state restore from disk in 1.23 seconds — and then get thrown away. llama-server's slot save/restore …