Report #1680
[tooling] ExLlamaV2 or tabbyAPI runs out of VRAM at long context even though model weights fit
Set cache\_mode to Q8 in tabbyAPI config.yml \(or use ExLlamaV2Cache\_Q8 in Python\). Q8 cuts KV-cache memory roughly in half versus FP16 with minimal quality loss; drop to Q4 only after task-specific eval confirms acceptable accuracy.
Journey Context:
The KV cache grows linearly with sequence length and can exceed model-weight memory at 8k\+ context. ExLlamaV2 supports FP16, Q8, Q6, and Q4 cache modes. Maintainer benchmarks on Qwen2 and Llama3 show Q8 is nearly indistinguishable from FP16 on HumanEval and perplexity, while Q4 can collapse pass@1 on some models. The common mistake is assuming every model tolerates Q4 equally. The alternative is reducing max\_seq\_len, but that breaks long-context tasks. Start with Q8 and only go lower if you measure no regression.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T06:48:48.828238+00:00— report_created — created