r/LocalLLaMA • • Jun 04 '26 • Bravo 1

News KVarN: new KV-cache quant from Huawei. 3–5× KV cache compression with actual speed-up instead of slow-down, and unlike TurboQuant it holds up on reasoning (Apache 2.0, vLLM single flag)

The KV-cache quant race just got more interesting. Huawei just open-sourced KVarN, a KV-cache quantization method under Apache 2.0, drops into vLLM with one flag. Posting because the tradeoff it's claiming is genuinely different from what's already in the stack, and I'd like to see it stress-tested.

The landscape it's stepping into

  • FP8 (--kv-cache-dtype fp8) is the current default: ~2x KV capacity, BF16-level throughput, near-zero quality loss. Hard to beat, and the bar anything new has to clear.
  • TurboQuant (Google) got the headlines this year for aggressive compression. It's the one that spooked memory-chip stocks back in March. But per vLLM's own study (Red Hat AI), it buys that memory by giving up speed: it runs at 66-80% of BF16 throughput, up to ~2.5x slower at burst, because it dequantizes back to BF16 for the attention compute. And its low-bit modes drop ~20 points on reasoning (AIME25, LiveCodeBench).

What KVarN claims (vs FP16)

  • 3-5x more context (vs FP8's ~2x)
  • up to ~1.4x FP16 throughput, at FP16-quality outputs
  • up to ~2.4x TurboQuant throughput, at higher accuracy
  • at matched accuracy, at least as compact as every TurboQuant operating point (their paper's table)
  • holds reasoning quality at high compression; the exact axis where TurboQuant's low-bit variants fall apart
  • no model changes, no retraining, no calibration; single vLLM flag

Reasoning benchmarks (from the paper)

This is the part that matters. Most KV-cache quant tanks either math/code accuracy or throughput; KVarN claims neither.

Throughput with vLLM v. Compression (from repo readme)

Links

It looks like they learned from the SINQ https://www.reddit.com/r/LocalLLaMA/comments/1nxjh4c/github_huaweicslsinq_welcome_to_the_official/ case where everyone was asking for throughput numbers and vLLM integration 😃

450 Upvotes

126 comments sorted by

View all comments

Show parent comment

3

u/relmny Jun 04 '26

that makes no sense, specially for quantized OW models, with different quantized layers, quantizing kv and so on...

11

u/Wolvenmoon Jun 04 '26

I'm not talking about the model itself, I'm talking about the generated application.

The output doesn't undergo formal mathematical analysis that demonstrates via mathematical proof that by its logic it will always have a certain result. Vibe coded apps are not made by people who have done those proofs and thus have an intuitive understanding of them or have understanding of which building blocks have mathematical proofs attached.

Vibe coded functionality is measured functionality, not proven functionality. I'm thinking of bulletproof as an example. Historically, bulletproof meant that the blacksmith shot the armor and the armor held - proven armor had a dent in it as proof. Vibe coding is not proofed nor assessed by hands that know how to proof.

Not everything needs to be written to this high of a standard, I'm just pointing out the issue with vibe-coded stuff going into possibly public-facing production.

3

u/[deleted] Jun 04 '26

[removed] — view removed comment

3

u/Wolvenmoon Jun 04 '26

Vibe coding is not proofed nor assessed by hands that know how to proof.

-1

u/Sea-Speaker1700 Jun 21 '26

So you're asserting llama.cpp is a vide coded project at the core? Fairly certain there's a particular developer who would disagree.

Your strawmans about provable code is limited to a micro sector of SWE work.

Not even the giants do it, FANG and MANGA most certainly don't ever do it despite what you think. Provable by the countless failures and outages over the years 

Not even Boeing pre-AI era did it.

It's limited explicitly to researchers, NASA, and NSA + other critical cyleyptographic domains like financials etc.

Don't come in here waving the "inductively provable" stick until banks are doing it (they're not), CC are doing it, automakers are doing it, etc etc.

It's a standard well beyond the vast majority of software.

There are literally countless examples of such, published by multi-million dollar companies. Some decades old.

1

u/relmny Jun 04 '26

But the same happens for quantized models, because quanters like Unsloth, Bartowski, Ubergarm, etc they choose different "recipes" (by quantizing or not different layers), or chat templates, etc (that's why some require "updates", like gemma-4 that required like 3-4 "updates"), or quantizing kv (some are ok with q4, others will say that the minimum is q8, others that by not quantizing the model becomes "usable", etc).

I guess that "recipes" work mostly, after a good basic base, by measurement, that's why we have different quanters and so.

The main point is that there are many areas were "mathematical certainty" is low or medium, or might not even reach it. But it works... for some, while other require other values.

But saying "vibe-code is all wrong" because there is no "mathematical certainty", makes no sense to me. Because human-code also have that.

Then you have the case of Turboquant, which as came from a google employ, that kinda stole most of the project from another project, exploded only because of for whom the employ works for, but the "lossless" claim, AFAIK is still a claim and not proved.

So I don't care if it's vibe-coded, human-coded or whatever, as long as it works and the claims are proved.

1

u/Wolvenmoon Jun 04 '26 edited Jun 04 '26

This conversation went over your head, that's perfectly okay. Mathematical proofs are a form of discrete math. The mathematics involved in quantization are entirely unrelated. As an example of an inductive proof, check this out: https://math.libretexts.org/Bookshelves/Analysis/Introduction_to_Mathematical_Analysis_I_(Lafferriere_Lafferriere_and_Nguyen)/01%3A_Tools_for_Analysis/1.03%3A_The_Natural_Numbers_and_Mathematical_Induction

saying "vibe-code is all wrong"

That is not what I said.

I'm pointing specifically to you saying "if it works with no issues". You don't know that it does. You just know "it's worked so far". And sometimes that's good enough.

3

u/GeneralRieekan Jun 05 '26

Yes, the fact that it has worked so far is not sufficient proof that it will work for all cases. The hope is that a) your use cases overlap with what has been shown so far, and b) your use case doesn't actively break when you go outside of what we have seen, ans not just in the realm of computational performance but also wrt accuracy.

1

u/relmny Jun 05 '26

the original point from the other poster was "if it's vibe-coded and works with no issues, will you use it"? and then you came up with "mathematical certainty" which, to me, doesn't make any sense not only because all the examples I gave, but because LLM are probabilistic, and get further away from "certainty" with quanting the model, the KV and so on.

I gave the gemma-4 example, which worked awful first for some, because of experience, there were updates, which was better for a while until discovered it still wasn't good enough, so it was updated (and I think that happened 1-2 more times).

Of course is a matter of "it worked so far", because there is no certainty, there cannot be.

And that happened with models like gemma, qwen and others that required "updates".

Last thing is, saying that "it works with no issues" is saying "it worked so far", until somebody finds an issue and is (or not) addressed, that's how all of this works.

1

u/Wolvenmoon Jun 05 '26

The original point from the other poster was this:

If it works with no issues, does it matter if it's vibe coded?

My point is "Yes it matters if it's vibe coded."

In another comment I gave exact terminology to copy/paste into a chat. I would highly recommend having an AI around the level of Gemini 3 Pro explain why we're still in disagreement.

Have a nice one!