Llama.cpp restarts kill long context prefills: proposal for auto KV state persistence

Dazzling_Equipment_9 · reddit · 2026-08-20

Running local models on a 128GB Strix Halo, the user faces slow 50k-100k context refills after restarting llama.cpp during testing. While llama-server offers slot save/restore APIs, they suggest a server-side mechanism to automatically cache KV/prefill states to disk and restore them upon session return. This generic cache (evicted by LRU) would significantly improve UX for slower-prefill hardware without requiring client-side integration.

Original post →

More from Infra

Infra channel →