[GH-ISSUE #4874] [Engine] Support turbo8 KV cache and VBR (--vbr-entry t8) to free up VRAM for Vision at long context #2238

Open
opened 2026-11-04 01:57:48 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @eeGorre on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4874

In Strata, the default 8-bit KV cache (--kv int8 / q8_0) holds a static 8.5 bpv across all layers, while dropping globally to q4_0 at 64K–128K+ context causes a noticeable perplexity hit. When Vision (mmproj, ~1.1 GiB VRAM) is enabled on 12–24 GB GPUs, it directly competes with long-context KV cache and cached MoE experts.

It would be great to port turbo8 and dynamic VBR (--vbr-entry t8) from spiritbuun/buun-llama-cpp, where --vbr-entry t8 is the specifically recommended configuration for Qwen3.8-Flash-Next.

buun-llama-cpp is also under the MIT license, so the turbo8 kernels can be adapted directly...

  1. turbo8 uses fewer bits per value (8.125 bpv vs 8.5 bpv for q8_0), achieves slightly better perplexity (5.693 vs 5.698 at the same 0.00020 median KLD), and decodes faster (28.6 t/s vs 27.4 t/s).
  2. Starting VBR at turbo8 (--vbr-entry t8) gives turbo8 quality from token 1, and as context grows and VRAM fills up, it dynamically steps down only the least-sensitive (layer, side) tensors along the Turbo ladder (turbo8 → turbo4 at 4.125 bpv / 0.00090 KLD, which is lower KLD than q4_0 at 0.00115). This reclaims gigabytes of KV VRAM at long context with near-zero quality loss, opening the exact VRAM window needed to keep Vision (mmproj) on GPU without evicting MoE experts.
  3. Also, buun-llama-cpp also implements on-demand GPU swapping for mmproj (keeping it in RAM and swapping to GPU for ~1–2s only when an image arrives), which pairs well with this setup.
Originally created by @eeGorre on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4874 In Strata, the default 8-bit KV cache (`--kv int8` / `q8_0`) holds a static 8.5 bpv across all layers, while dropping globally to `q4_0` at 64K–128K+ context causes a noticeable perplexity hit. When Vision (`mmproj`, ~1.1 GiB VRAM) is enabled on 12–24 GB GPUs, it directly competes with long-context KV cache and cached MoE experts. It would be great to port **`turbo8`** and dynamic VBR (`--vbr-entry t8`) from [spiritbuun/buun-llama-cpp](https://github.com/spiritbuun/buun-llama-cpp), where `--vbr-entry t8` is the specifically recommended configuration for `Qwen3.8-Flash-Next`. `buun-llama-cpp` is also under the MIT license, so the `turbo8` kernels can be adapted directly... 1. `turbo8` uses fewer bits per value (**8.125 bpv** vs **8.5 bpv** for `q8_0`), achieves slightly better perplexity (**5.693** vs **5.698** at the same `0.00020` median KLD), and decodes faster (**28.6 t/s** vs **27.4 t/s**). 2. Starting VBR at `turbo8` (`--vbr-entry t8`) gives `turbo8` quality from token 1, and as context grows and VRAM fills up, it dynamically steps down only the least-sensitive `(layer, side)` tensors along the Turbo ladder (`turbo8 → turbo4` at 4.125 bpv / `0.00090` KLD, which is lower KLD than `q4_0` at `0.00115`). This reclaims gigabytes of KV VRAM at long context with near-zero quality loss, opening the exact VRAM window needed to keep Vision (`mmproj`) on GPU without evicting MoE experts. 3. Also, `buun-llama-cpp` also implements on-demand GPU swapping for `mmproj` (keeping it in RAM and swapping to GPU for ~1–2s only when an image arrives), which pairs well with this setup.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2238
No description provided.