llama-cpp-turboquant (TheTom/llama-cpp-turboquant) is a production-focused fork of llama.cpp that implements TurboQuant (Google Research, arXiv:2504.19874, ICLR 2026) — extreme low-bit quantization of the KV cache (and model weights) using PolarQuant + Walsh-Hadamard rotation + Lloyd-Max optimal scalar quantization. It compresses the KV cache 3.8x-6.4x versus fp16 while keeping near-q8_0 quality, letting you run much larger models or much longer contexts on the same hardware. Prebuilt binaries are available for Mac (Metal) and Windows (CUDA).
turbo2 (2-bit, ~6.4x), turbo3 (3-bit, ~4.6x-5.1x), turbo4 (4-bit, ~3.8x) via -ctk / -ctv flags. turbo4 quality is closer to q8_0 than stock q4_0 (PPL +0.23% vs q8_0), turbo3 adds only +1-2% PPL for maximum compression, and 104B models have been validated at 128K context on a MacBook.-ctk q8_0 -ctv turbo3 -fa on.-ctk q8_0 -ctv turbo4) unless validated on your model.