moonshotai · text · mixture of experts

Kimi-K2-Thinking

moonshotai/Kimi-K2-Thinking

Kimi-K2-Thinking at Q4_K_M is exactly 620,557,904,960 bytes (577.94 GiB / 620.56 GB) — an effective 4.692 bits per weight, not the nominal 4. Its KV cache at 32K is 2.14 GiB.

From the file· summed from 53 file(s)From the file· KV per layer
Parameters
1058B
total, not active
Architecture
deepseek2
61 layers
Context
262,144
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-TQ1_06 shards229.90 GiB246,848,133,4721.866unsloth
UD-IQ1_S6 shards265.74 GiB285,339,261,3122.157unsloth
IQ2_XS23 shards278.07 GiB298,571,046,3362.257DevQuasar
IQ2_S23 shards280.26 GiB300,929,490,3682.275DevQuasar
UD-IQ1_M7 shards288.02 GiB309,264,259,5522.338unsloth
UD-IQ2_XXS7 shards312.21 GiB335,231,162,8802.534unsloth
UD-IQ2_M8 shards329.27 GiB353,551,882,8482.673unsloth
Q2_K30 shards347.26 GiB372,863,389,2482.819DevQuasar
Q2_K8 shards348.43 GiB374,121,101,8882.829unsloth
Q2_K_L8 shards348.68 GiB374,396,353,0882.831unsloth
IQ3_XXS31 shards367.09 GiB394,156,747,2322.980DevQuasar
UD-IQ3_XXS9 shards392.74 GiB421,705,865,9843.188unsloth
Q3_K_S10 shards412.72 GiB443,155,057,5043.350unsloth
Q3_K_M37 shards455.50 GiB489,088,544,5123.698DevQuasar
Q3_K_M11 shards456.34 GiB489,995,127,7123.705unsloth
Q3_K_M11 shards456.34 GiB489,995,138,9763.705squ11z1
IQ4_XS12 shards509.60 GiB547,174,472,7364.137unsloth
IQ4_NL12 shards539.30 GiB579,064,700,0964.378unsloth
Q4_013 shards541.27 GiB581,186,886,9764.394unsloth
Q4_K_S13 shards543.25 GiB583,309,073,6964.410unsloth
Q4_K_M53 shards577.94 GiB620,557,904,9604.692DevQuasar
Q4_K_M13 shards578.58 GiB621,245,226,2084.697unsloth
Q4_113 shards598.76 GiB642,918,554,7844.861unsloth
Q5_K_S15 shards658.45 GiB707,006,373,3125.345unsloth
Q5_K_M16 shards678.69 GiB728,735,735,3285.510unsloth
Q6_K18 shards785.02 GiB842,909,134,6246.373unsloth
Q8_023 shards1016.12 GiB1,091,053,887,8728.249unsloth
BF1646 shards1912.15 GiB2,053,155,814,14415.523unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.27 GiB9.53 GiB35.56×61 / 0 / 0
8,1920.54 GiB19.06 GiB35.56×61 / 0 / 0
16,3841.07 GiB38.13 GiB35.56×61 / 0 / 0
32,7682.14 GiB76.25 GiB35.56×61 / 0 / 0
65,5364.29 GiB152.50 GiB35.56×61 / 0 / 0
131,0728.58 GiB305.00 GiB35.56×61 / 0 / 0

This model uses multi-head latent attention. No V cache is allocated at all, and the K cache stores a 512-wide latent plus 64 rope dimensions — so reading num_key_value_heads from config.json and multiplying, as every calculator does, overstates the cache by well over an order of magnitude.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 554.32 GiB. The real file is 577.94 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: this model allocates no value cache at all, so any formula reading num_key_value_heads overstates it by more than an order of magnitude.

Architecture

from config.json
Layers
61
Attention heads
64
KV heads
64
Head dim
192
Hidden size
7168
Vocab
163,840
Sliding window
none
SWA period
MLA
yes
Experts
384
Experts per token
8
use_sliding_window

Questions people ask

How much VRAM does Kimi-K2-Thinking need?
Q4_K_M is exactly 620,557,904,960 bytes (577.94 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Kimi-K2-Thinking's KV cache?
2.14 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Is Kimi-K2-Thinking a mixture-of-experts model?
Yes — 384 experts, 8 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of Kimi-K2-Thinking should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.