Files
UnbiasedStrata/docs
lotherk 5cd37fa703 poly: hold the attention caches' growth back from the expert cache (kv_unmapped)
The expert cache was sized from the VRAM free at load, but the attention
caches map their rows later, as the conversation grows (cover()).  A card
filled with experts then cut the cache on every prompt, and once it was at
zero a long prompt died with "no VRAM for the attention cache (2 MiB more)"
(GTX 1060 6 GB, Qwen3.6-35B-A3B, --max-context 131072, --kv q8_0).

kv_unmapped() is what the chunked caches will still map to reach
--max-context; fill_expert_cache(), mind_card_vram() and held_is_budget()
leave it to the rows.  If it does not fit, every expert runs on the CPU and
the message says what makes room.  docs/VRAM_BUDGET.md has the analysis.

Not yet verified: docs/VRAM_BUDGET.md says "compile verification running"
-- build and run it before relying on it.
2026-11-19 09:56:23 +00:00
..