moonshotai · text · mixture of experts

Kimi-K2-Instruct

moonshotai/Kimi-K2-Instruct

Kimi-K2-Instruct at Q4_K_M is exactly 620,781,770,528 bytes (578.15 GiB / 620.78 GB) — an effective 4.838 bits per weight, not the nominal 4. Its KV cache at 32K is 2.14 GiB.

From the file· summed from 13 file(s)From the file· KV per layer
Parameters
1026B
total, not active
Architecture
deepseek2
61 layers
Context
131,072
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-TQ1_05 shards226.87 GiB243,604,284,2241.899jobs-git
UD-TQ1_05 shards226.87 GiB243,604,284,2241.899unsloth
UD-IQ1_S6 shards260.88 GiB280,113,603,5202.183unsloth
UD-IQ1_S6 shards260.88 GiB280,113,603,5202.183jobs-git
UD-IQ1_M7 shards283.34 GiB304,231,648,2882.371unsloth
UD-IQ1_M7 shards283.34 GiB304,231,648,2882.371jobs-git
UD-IQ2_XXS7 shards306.20 GiB328,784,475,2002.562jobs-git
UD-IQ2_XXS7 shards306.20 GiB328,784,475,2002.562unsloth
UD-IQ2_M8 shards323.27 GiB347,105,195,2002.705jobs-git
UD-IQ2_M8 shards323.27 GiB347,105,195,2002.705unsloth
Q2_K8 shards347.55 GiB373,179,203,6802.908jobs-git
Q2_K8 shards347.55 GiB373,179,203,6802.908unsloth
Q2_K_L8 shards347.81 GiB373,454,454,8802.911jobs-git
Q2_K_L8 shards347.81 GiB373,454,454,8802.911unsloth
UD-IQ3_XXS9 shards388.01 GiB416,622,218,5603.247jobs-git
UD-IQ3_XXS9 shards388.01 GiB416,622,218,5603.247unsloth
Q3_K_S10 shards412.03 GiB442,417,651,6163.448jobs-git
Q3_K_S10 shards412.03 GiB442,417,651,6163.448unsloth
Q3_K_M11 shards455.77 GiB489,378,373,5683.814unsloth
Q3_K_M11 shards455.77 GiB489,378,373,5683.814jobs-git
IQ4_XS12 shards508.98 GiB546,510,814,8164.259unsloth
IQ4_XS12 shards508.98 GiB546,510,814,8164.259jobs-git
IQ4_NL12 shards538.76 GiB578,491,487,9684.509jobs-git
IQ4_NL12 shards538.76 GiB578,491,487,9684.509unsloth
Q4_013 shards540.74 GiB580,619,179,8724.525jobs-git
Q4_013 shards540.74 GiB580,619,179,8724.525unsloth
Q4_K_S13 shards542.73 GiB582,746,871,6484.542jobs-git
Q4_K_S13 shards542.73 GiB582,746,871,6484.542unsloth
Q4_K_M13 shards578.15 GiB620,781,770,5284.838unsloth
Q4_K_M13 shards578.15 GiB620,781,770,5284.838jobs-git
Q4_113 shards598.40 GiB642,526,234,3365.008unsloth
Q4_113 shards598.40 GiB642,526,234,3365.008jobs-git
Q5_K_S15 shards658.04 GiB706,560,980,9925.507jobs-git
Q5_K_S15 shards658.04 GiB706,560,980,9925.507unsloth
Q5_K_M16 shards678.33 GiB728,346,884,1605.676unsloth
Q5_K_M16 shards678.33 GiB728,346,884,1605.676jobs-git
Q6_K18 shards784.76 GiB842,634,817,3766.567unsloth
Q6_K18 shards784.76 GiB842,634,817,3766.567jobs-git
Q8_023 shards1016.12 GiB1,091,053,886,2088.503unsloth
Q8_023 shards1016.12 GiB1,091,053,886,2088.503jobs-git

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 537.74 GiB. The real file is 578.15 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-Instruct need?
Q4_K_M is exactly 620,781,770,528 bytes (578.15 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-Instruct'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-Instruct 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-Instruct 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.