r/LocalLLaMA • u/nekofneko • Nov 10 '25
Discussion Kimi infra team: Quantization is not a compromise, it's the next paradigm
After K2-Thinking's release, many developers have been curious about its native INT4 quantization format.
Shaowei Liu, infra engineer at u/Kimi-Moonshot shares an insider's view on why this choice matters, and why quantization today isn't just about sacrificing precision for speed.
Key idea
In the context of LLMs, quantization is no longer a trade-off.
With the evolution of param-scaling and test-time-scaling, native low-bit quantization will become a standard paradigm for large model training.
Why Low-bit Quantization Matters
In modern LLM inference, there are two distinct optimization goals:
• High throughput (cost-oriented): maximize GPU utilization via large batch sizes.
• Low latency (user-oriented): minimize per-query response time.
For Kimi-K2's MoE structure (with 1/48 sparsity), decoding is memory-bound — the smaller the model weights, the faster the compute.
FP8 weights (≈1 TB) already hit the limit of what a single high-speed interconnect GPU node can handle.
By switching to W4A16, latency drops sharply while maintaining quality — a perfect fit for low-latency inference.
Why QAT over PTQ
Post-training quantization (PTQ) worked well for shorter generations, but failed in longer reasoning chains:
• Error accumulation during long decoding degraded precision.
• Dependence on calibration data caused "expert distortion" in sparse MoE layers.
Thus, K2-Thinking adopted QAT for minimal loss and more stable long-context reasoning.
How it works
K2-Thinking uses a weight-only QAT with fake quantization + STE (straight-through estimator).
The pipeline was fully integrated in just days — from QAT training → INT4 inference → RL rollout — enabling near lossless results without extra tokens or retraining.
INT4's hidden advantage in RL
Few people mention this: native INT4 doesn't just speed up inference — it accelerates RL training itself.
Because RL rollouts often suffer from "long-tail" inefficiency, INT4's low-latency profile makes those stages much faster.
In practice, each RL iteration runs 10-20% faster end-to-end.
Moreover, quantized RL brings stability: smaller representational space reduces accumulation error, improving learning robustness.
Why INT4, not MXFP4
Kimi chose INT4 over "fancier" MXFP4/NVFP4 to better support non-Blackwell GPUs, with strong existing kernel support (e.g., Marlin).
At a quant scale of 1×32, INT4 matches FP4 formats in expressiveness while being more hardware-adaptable.
9
u/nekofneko Nov 10 '25
Source: https://www.zhihu.com/question/1969558404759544488/answer/1970539327902679960
50
u/kzoltan Nov 10 '25
In a way, they are in the same boat as the local “consumers” with the int4 v fp4 and quant vs full precision.
36
u/nuclearbananana Nov 10 '25
also I mean floating point requires more complex hardware. Unless you actually need floating point, you don't need floating point. I personally believe the future of AI/npus is INT
49
u/1998marcom Nov 10 '25
This is really great, because INT operations don't count towards EU's FLOPS limit for training LLMs.
7
u/dmter Nov 10 '25
Exactly, OAI alfeady knows all this which is indicated by their gpt-oss models.
When will we see 200b models that take 100gb without post training quantization? Too bad Kimi only makes trillion parameter models and nobody else in China seems to be going this route.
9
u/Corporate_Drone31 Nov 10 '25 edited Nov 10 '25
I have a question, in that case: does this mean that a "native full precision" version in full BF16 (or 8-bit) does not exist?
I'm asking because I noticed the API documentation describes what seems to be a served 8-bit and 16-bit version (if I'm reading this correctly)- spoiler alert, I wasn't in fact reading this correctly - a later check revealed no mentions of such a variant as K2 Thinking in anything written by Moonshot, so I might have mixed it up with something.,In other words, does this mean that the public release is pre-quantised, while Moonshot has and serves a private version of the weights with better precision, and therefore (I assume) higher quality output?
I don't mean this as a callout or anything of the sort, I'm just a bit confused and seeking clarification. Plus, it would be quite good to make quantitisations from "higher fidelity" weights (if any such a thing exists, released or not), rather than re-quantising an already quantised set of weights for 1, 2, and 3 bit inference.
4
u/Mother_Soraka Nov 10 '25
So its not X, its Y ?
7
u/KrypXern Nov 10 '25
No offense, but these AI summary posts never convince me because you can have a model present any conclusion you want in them. The 'hidden advantage' could be literally anything.
I know it's sacrilege here, but it really wouldn't hurt to sit down and take 10 minutes to type this yourself if you have something to share.
3
u/Pentium95 Nov 10 '25
"INT4 inference" means a new paradigm in which each quantized weight has not to be converted back to half precision (fp16)?
It's unclear
2
u/a_beautiful_rhind Nov 10 '25
Even good PTQ is pretty decent. SVDQ manages to 4-bit image models and produce almost identical outputs.
The "magic" is having a robust quantization method and throwing compute at it. In their case, it sounds like they used the RL runs to undo the damage.
There was training over GPTQ and eventually AWQ for almost 2 years but everyone only did qlora and seemed to dismiss it.
1
u/seeker__2006 Nov 11 '25
Here to give feedback about search tool in cot of kimi k2 and thinking both i don't know which api or your own indexing you guys use but it's not accurate and promising enough it doesn't get the web authoritative sources pages results or make that search good query like chat gpt does in his cot and code execution in cot of kimi k2 thinking doesn't show up also fix that Btw ui ux is so great
0
u/JLeonsarmiento Nov 10 '25
Excellent.
-9
u/[deleted] Nov 10 '25
[removed] — view removed comment