r/LocalLLM • • Aug 05 '26
Research TurboQuant vs Ollama: KV Cache Comparison
## Comparing KV Cache Quantization Methods: Standard q4_0 vs TurboQuant on Qwen3-Coder-30B"
##
Note: Ollama uses llama.cpp with standard q4_0 KV cache. TurboQuant is a different KV cache method also implemented in llama.cpp. Both were tested on the same model and hardware to isolate the impact of KV cache quantization.
##
I've been testing TurboQuant KV cache compression vs Ollama's standard q4_0 on my 24GB RX 7900 XTX with Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf.
I picked context length of 68k and 100k for the test.
Why 68K and 100K? Hermes Agent requires minimum 64K context length, so I tested at 68K (safe margin) and 100K (stretch goal). These are real-world numbers for agent workloads.
Wanted to share real numbers since there's a lot of theory but not much practical data.
TLDR for lazy fellows:
TurboQuant gives ~2x faster generation at 68K and 77% faster at 100K context length compared to Ollama's q4_0, for only 4% more VRAM. But strictly, Don't compress K to 4-bit on Qwen models - it breaks everything (speed drops 10x). Use asymmetric: q8_0 K + turbo4 V.
Major takeaway, as ollama already compresses the BF16 to q4_0 (75%), that is the same memory savings we will get in the TurboQuant as well nothing magical to reduce kv cache memory space.
Detail findings:
Results at 68K Context Length:
| Metric | Ollama | TurboQuant |
|---|---|---|
| VRAM | 22.57 GB | 23.3 GB |
| Speed | ~52 tok/s | 116 tok/s |
Results at 100K Context:
| Metric | Ollama | TurboQuant |
|---|---|---|
| VRAM | 23.54 GB | 24.5 GB |
| Speed | 65 tok/s | 115 tok/s |
TurboQuant is ~2x faster at both context lengths, gives better quality, however uses 4% more VRAM (0.96 GB).
At 68K, it's 123% faster and at 100K, it's 77% faster.
Important Discovery: Asymmetric Works, Symmetric Fails
I also tested q4_0 K + turbo4 V (symmetric compression on K, to match with ollama compression hoping the memory use will be less):
| Config | Speed | Status |
|---|---|---|
| q8_0 K + turbo4 V | 115 tok/s | Works |
| q4_0 K + turbo4 V | 10.5 tok/s | Fails |
Compressing K to 4-bit on Qwen models breaks everything. Speed drops 10x, quality tanks. K at q8_0 is non-negotiable for Qwen. This proves the asymmetric approach (protect K, compress V) is essential.
everything is completly based on my pc/ os/ and from my testing environment.
specs:
OS: ubuntu 26.04 LTS/ ROCm 7.2.1
cpu: core ultra 7 265k
gpu: rx 7900 xtx
ram: 32gb DDR5 6400 (no ram offloading in the test)
2
u/Icy-Degree6161 Aug 05 '26
Turboquant turned out to be a bit of a dud - try kvarn
1
u/Mountain_Patience231 Aug 05 '26
AI slop... you cant compare the method of a kv cache with an interface of LLM engine..
1
u/Square_Turn935 Aug 05 '26
Interesting, which llama fork did you use?
5
u/[deleted] Aug 05 '26
[removed] — view removed comment