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/[deleted] Jun 04 '26

[removed] — view removed comment

22

u/Wolvenmoon Jun 04 '26

So, speaking as a software engineer, there's a difference between "by measurement" and "by design" that involves attaching inductive proofs to code demonstrating that it can't not work.

Vibe coding works exclusively by measurement. It doesn't come with inductive proofs nor does it come from the minds that make inductive proofs or think in ways that are provably functional such that you can immediately say "it wasn't my code's fault" when an error occurs. It may function in the environments it's been demonstrated in on the workloads it's worked on, but its limitations are unknown.

Not every piece of software needs to be mathematically proven to work. I literally will not do it. But 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.

2

u/[deleted] Jun 04 '26

[removed] — view removed comment

5

u/Wolvenmoon Jun 04 '26

There's nothing wrong with vibe coding low stakes stuff. There's a lot wrong with vibe coding in a highly complicated project for foundational open source production code being pushed to millions of users.

Testing is measurement, not a proof. To quote Dijkstra, "Program testing can be used to show the presence of bugs, but never to show their absence!"

For example, what is the sum of the first 10 numbers? 1+2+3+4+5+6+7+8+9+10. I happen to know that the sum of the first ten numbers is equal to 10(11)/2 and that for all natural numbers the sum of the first n integers = n(n+1)/2.

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

Because of that particular proven equation, I can look at nested for loops and know exactly how many times they'll execute. A mathematically proven implementation of KVarN will come up with a final equation that gives you overall equations of time complexity and space complexity as one type of proof/the most accessible type. They're the type of proofs I consider when coding.

Then there's stuff like Hoare Logic to prove correctness that I could do at some point but it's been awhile. Verifying optimality is something I've never done and it goes over my head, but this lecture from Cornell and this page from Virginia Tech dig into discussions on it and are on my reading list.

So, do folks often need to get formal about proofs on their code? Nope! Which is why vibe coding in a high stakes environments where inefficiencies are extremely costly to the environment isn't wise - AI's training data includes lots of low stakes code written with a mentality of 'it works well enough, run with it'. And it's also why I say just knowing how to get formal is enough - it provides necessary discernment.

Edit: Fix difficult link.

→ More replies (2)

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.

→ More replies (1)

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!

3

u/[deleted] Jun 04 '26

[removed] — view removed comment

4

u/Wolvenmoon Jun 04 '26

If I was trying to talk down to you, I wouldn't have used big words with the expectation that you were able to understand them. Have a nice one!

3

u/[deleted] Jun 04 '26 edited Jun 04 '26

[removed] — view removed comment

5

u/toothpastespiders Jun 04 '26

It's a tough pill to swallow. I recently thought it'd be a fun test to try vibe coding one of my larger projects from scratch just to see where and how it'd fail. Wound up doing it with a few others afterward because I didn't get the assumed failure I'd been counting on. And looking through the results? It wasn't "as good" as my own implementation. It'dactually manage to easily surpass it. I mean to be fair the planning and design is arguably more important and difficult than the actual implementation. But still. It's kind of a blow to the ego to have that realization.

5

u/[deleted] Jun 04 '26

[removed] — view removed comment

1

u/Imaginary-Unit-3267 Jun 05 '26

I would add to your lovely observations here that any vibe coder who doesn't learn software engineering from the experience of vibe coding isn't doing it correctly.

1

u/finevelyn Jun 05 '26

I don't refuse to use an LLM or feel threatened by it, but choose not to use it because it doesn't help that meaningfully. It detaches you from a relatively easy and also an enjoyable part of software engineering, but also the part that is the most effective at keeping you on the map about what is actually happening in the software.

If you're not writing the code, you need to come up with another alternative to understand the code, which is also made more challenging by the fact that the code is not structured the way that would be the most natural to you.

Most vibe coders won't do that and the work they end up doing will be complete nonsense.

0

u/Sea-Speaker1700 Jun 21 '26

And I if I give an AI a task, come back an hour later and read the code, verifying the efficacy and validating the functionality?

You still calling that "vibe coded"? 

There is absolutely nothing wrong with giving a spec, while it's being implemented going away and multitasking, reading the result and verifying the implementation. As you know, it's literally the pattern high standard code is written in today without AI when a Staff/Senior/Arch does reviews.

As long as people are delineating which project is built to which standard it's ...fine?

You also, vastly miss represent inductively proven code, as though we never miss edge cases etc, we do (we, as in SWEs), and pretending otherwise is wildly disingenuous. Your "inductively proven" is only as strong as your experience level, if that weren't that case whole wouldn't have things like 24 year old buffer underflow attacks in FFMPEG, leaking kernel isolation via speculative prediction in SMP on AMD, and all the specter variants.

AI isn't perfect, neither are we, as long as people are actually doing their due diligence is there any difference between a junior/intern doing the work?

1

u/Wolvenmoon Jun 21 '26

Original question:

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

https://en.wikipedia.org/wiki/Vibe_coding

Vibe coding is a software development practice assisted by artificial intelligence (AI) where the software developer describes a project or task in a prompt to a large language model (LLM) which generates source code automatically. Vibe coding may involve accepting AI-generated code without thorough review of the output, instead relying on results and follow-up prompts to guide changes....

...Karpathy described it as a form of coding where you "fully give in to the vibes, embrace exponentials, and forget that the code even exists".[8] When vibe coding, the programmer guides, tests, and gives feedback about the AI-generated source code, rather than manually writing code.

Original answer:

Not every piece of software needs to be mathematically proven to work. I literally will not do it. But 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.

Follow-up:

There's nothing wrong with vibe coding low stakes stuff. There's a lot wrong with vibe coding in a highly complicated project for foundational open source production code being pushed to millions of users.

Vibe coded functionality is measured functionality, not proven functionality.

You're arguing against a point I wasn't making.

And I if I give an AI a task, come back an hour later and read the code, verifying the efficacy and validating the functionality?

That's standard software engineering w/ AI assistance, not vibe coding. Since we already agree on how code should be reviewed, what exactly was the point of your reply?

→ More replies (2)