A paused conversation holds gigabytes of cache that its next turn will need in thirty seconds. Recompute costs prefill; reload costs bandwidth. The comparison is one division per tier, and the answer flips with prompt length.
When does offloading the KV cache to CPU memory or NVMe beat recomputing it?
A paused conversation holds gigabytes of cache that its next turn will need in thirty seconds. Recompute costs prefill; reload costs bandwidth. The comparison is one division per tier, and the answer flips with prompt length.
Updated Sep 2026 · Grounded in real AI infrastructure interview loops and written to a senior-engineer editorial bar, with every number worked and every diagram hand-built.
The concepts behind this question
Ranked by how closely each one overlaps this question's topic, so the first card is the thing to read if the answer above moved too fast.
Scored on the reload-versus-recompute arithmetic with real link bandwidths, on the reuse condition that makes offload worthwhile at all, and on the tier design (HBM, host, NVMe) with what lives where.
No comments yet — be the first to share your approach.
