Tag · kv-cache
# kv-cache
All posts tagged "kv-cache".
-
Qwen3.8-27B at 77 t/s with 242K of context on 24 GB: anaelith now reads only the useful parts of the cache
↻At 242K tokens of context, Qwen3.8-27B dropped to 8 t/s on the Olares One: the KV cache held in RAM was read in full for every token. I ported the BasinKV idea into anaelith, and decoding now stays at 77 t/s all the way, with the same answers on my recall tests. Plus a lesson about speculative decoding, and three HTML pages coded by the 27B through DeepSeek Harness. Update: in free generation the selection sometimes copies a passage of the prompt, so app 1.0.4 keeps 98K tokens exact.
Lire → -
--kv-select, part 2: the prompt copying comes from greedy decoding, and a better cache cuts the gap by 28 to 70 %
Follow-up to the --kv-select post (Qwen3.8-27B at 242K on 24 GB). I looked for why the selection sometimes made the model copy a passage of the prompt: it is a greedy-decoding effect, absent from 90 sampled generations. Then I improved the block cache: it keeps the blocks that score best and prefetches the next ones. The gap with a full read drops by 36 % at 32 blocks and 70 % at 64, at no speed cost.
Lire →