Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
KVarN (Variance-Normalized KV-Cache Quantization) is an open-source vLLM fork published by Huawei's Computing Systems Lab (CSL) under the Apache-2.0 license. It targets a specific tradeoff that KV-cache quantization usually forces on production serving: methods that buy back long-context capacity tend to give up throughput or accuracy. KVarN's pitch, backed by a published paper (arXiv:2606.03458) and a Hugging Face org space, is 3–5x more KV-cache capacity and throughput above FP16, at FP16-level accuracy, without any calibration step.
The quantization runs per fixed-size KV tile through four stages the README diagrams explicitly: the raw fp16 tile, a Hadamard rotation across the channel dimension (orthonormal, so attention scores are preserved, but it spreads out per-channel outliers), iterative variance normalization — a Sinkhorn-like alternation of column- and row-wise standard-deviation normalization in log space — and finally asymmetric round-to-nearest quantization with scales folded back in at read time. The shipped preset, kvarn_k4v2_g128, spends more bits on keys than values (4-bit keys, 2-bit values), which the authors say was chosen because it clears the accuracy bar strict production deployments require.
Integration is a single flag on top of a standard vLLM install: set --kv-cache-dtype kvarn_k4v2_g128 (or the 64-token-tile variant for finer granularity at a small capacity cost) with no model changes and no calibration pass. On Qwen3-32B (AIME25, 16K-context burst, TP=2) the project's own benchmark shows it matching FP16 accuracy while beating FP16 throughput at roughly 4x the KV-cache capacity — the specific gap the README says existing methods like vLLM's TurboQuant can't close simultaneously.
Coverage extends past standard dense attention. KVarN supports Multi-head Latent Attention (MLA) models such as GLM-4.7-Flash by quantizing the compressed KV latent to int4 — the README states this is, to the project's own knowledge, the first vLLM-compatible sub-8-bit KV-cache method to support MLA models. Its published GLM-4.7-Flash numbers show 2.77x KV capacity at parity AIME25 accuracy, with throughput at about 0.94x bf16 (MLA's latent is already small, so the win there is capacity, not speed). It also handles hybrid architectures that mix Mamba/linear-attention layers with full attention (e.g., Qwen3.6-27B), compressing only the full-attention layers and sizing the decode pool accordingly with no manual tuning, and it composes with speculative decoding (MTP and DFlash) and with weight quantization (validated alongside AWQ INT4) — rejected draft tokens are guaranteed not to corrupt the quantized cache since a block only commits once all its tokens are accepted.
The project is a hard fork of vLLM v0.23.0 rather than a plugin — the original vLLM README is preserved in-repo for reference — which means keeping pace with upstream vLLM releases depends on the maintainers rebasing rather than a stable plugin API. That maintenance question is worth flagging: the repository's last push was 2026-06-22, roughly two months before this review, after 470 stars and 35 forks accumulated since its 2026-05-29 creation, and the visible commit history shows two contributors. GitHub's UI reports 11 open issues, but the real open-issue count via the search API is 8 (the rest are pull requests).
For teams already running vLLM with agentic or long-context workloads, KVarN is a serving-side lever for fitting more concurrent context in the same GPU memory without the usual accuracy or throughput tax — particularly for MLA and hybrid models where alternatives are thinner. The tradeoffs are the ones that come with any fork: no independent reproduction of the benchmarks beyond the maintainers' own numbers, Triton kernels that JIT-compile at install time, and an open question about how actively the fork will keep tracking vLLM's own release cadence.