Report #103560
[tooling] ExLlamaV2/TabbyAPI OOMs when raising max\_seq\_len for long-context inference
Set cache\_mode to Q8 \(safe default\) or Q4 \(tight VRAM\) in TabbyAPI config.yml. This is independent of the model's EXL2 bpw. For Llama 3.1 70B at 16K context, Q4 cache uses ~1.25 GB versus ~5 GB for FP16, often enough to raise bpw or double context on the same GPU.
Journey Context:
ExLlamaV2 pre-allocates the KV cache at load time, so max\_seq\_len directly controls VRAM. Many users lower the model bpw to fit long context when they should lower cache precision instead: cache\_mode Q4/Q6/Q8 is a separate axis from weight quantization. Turboderp's evaluation shows Q4 cache often matches or beats FP8 and is comparable to FP16 on downstream benchmarks, with Q6 as a conservative middle ground. The tradeoff is a small perplexity increase; Q4 is the right call when the alternative is not running the model at all.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:36:30.607504+00:00— report_created — created