#145 · Primary category: Inference & Local Deploy
rotorquant
KV cache compression via block-diagonal rotation. Beats TurboQuant: better PPL (6.91 vs 7.07), 28% faster decode, 5.3x faster prefill, 44x fewer params. Drop-in llama.cpp integration.
Project last updated:04/23/26
GitHub Stars
1.0K
Forks
89
Contributors
5
License
Other
Why we included this project
Long-context inference on a single GPU tends to exhaust KV cache memory before compute, because that cache scales with batch size and sequence length. RotorQuant attacks this directly by quantizing the key/value cache with small block-diagonal rotations that decorrelate vectors before scalar quantization and undo the rotation on decode, yielding about 5x to 10x compression with a small perplexity cost. Because the rotation blocks are small and independent, it skips the expensive butterfly transform that similar methods rely on, which is why decode and prefill speed up. For anyone already using llama.cpp, adoption is simple: point a patched build at cache-type flags like iso3 or planar3, and you get longer context or larger batches on the same hardware. This is a focused optimization library.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
ollama
Get up and running with Kimi-K2.6, GLM-5.2, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
llama.cpp
LLM inference in C/C++
vllm
A high-throughput and memory-efficient inference and serving engine for LLMs
gpt4all
GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
LocalAI
LocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.