moonshotai · text · mixture of experts

Kimi-Linear-48B-A3B-Instruct

moonshotai/Kimi-Linear-48B-A3B-Instruct

Kimi-Linear-48B-A3B-Instruct at Q4_K_M is exactly 29,702,758,784 bytes (27.66 GiB / 29.70 GB) — an effective 4.837 bits per weight, not the nominal 4. Its KV cache at 32K is 0.95 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
49.1B
total, not active
Architecture
kimi-linear
27 layers
Context
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S9.77 GiB10,489,931,6801.708bartowski
IQ1_M10.17 GiB10,924,162,7201.779bartowski
IQ2_XXS11.30 GiB12,129,177,5041.975bartowski
IQ2_XS12.94 GiB13,897,237,4082.263bartowski
IQ2_S13.01 GiB13,967,426,4642.275bartowski
IQ2_M14.71 GiB15,792,109,4722.572bartowski
Q2_K16.33 GiB17,533,148,3202.855bartowski
Q2_K_L16.67 GiB17,901,788,3202.915bartowski
Q2_K16.79 GiB18,028,532,3522.936DhruvalLabs
IQ3_XXS18.30 GiB19,651,346,3363.200bartowski
IQ3_XS19.04 GiB20,439,715,2323.329bartowski
Q3_K_S19.86 GiB21,325,596,9283.473DhruvalLabs
Q3_K_S20.12 GiB21,605,092,7683.519bartowski
IQ3_M21.10 GiB22,656,365,9843.690bartowski
Q3_K_M21.12 GiB22,680,802,7203.694bartowski
Q3_K_M21.87 GiB23,486,103,8083.825DhruvalLabs
Q3_K_L22.00 GiB23,617,811,8723.846bartowski
Q3_K_L23.76 GiB25,509,789,9524.154DhruvalLabs
IQ4_XS24.65 GiB26,464,880,2884.310bartowski
Q4_K_S26.04 GiB27,956,050,3044.553DhruvalLabs
IQ4_NL26.05 GiB27,969,510,0484.555bartowski
Q4_026.49 GiB28,441,221,7924.632bartowski
Q4_K_S26.99 GiB28,977,060,5124.719bartowski
Q4_K_M27.66 GiB29,702,758,7844.837DhruvalLabs
Q4_K_M28.00 GiB30,061,058,7204.896bartowski
Q4_K_L28.26 GiB30,341,225,1204.941bartowski
Q4_128.85 GiB30,976,574,1125.045bartowski
Q5_K_S31.56 GiB33,885,946,2405.519DhruvalLabs
Q5_K_S31.68 GiB34,013,471,3925.539bartowski
Q5_K_M32.47 GiB34,867,652,9925.678DhruvalLabs
Q5_K_M32.69 GiB35,097,473,6965.716bartowski
Q5_K_L32.90 GiB35,330,454,1765.754bartowski
Q6_K37.59 GiB40,364,126,7206.574DhruvalLabs
Q6_K37.68 GiB40,460,212,1286.589bartowski
Q6_K_L37.85 GiB40,643,057,5686.619bartowski
Q8_048.66 GiB52,248,385,9208.509DhruvalLabs
Q8_02 shards48.66 GiB52,248,386,4328.509bartowski
BF163 shards91.54 GiB98,285,393,56816.006bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.12 GiB2.11 GiB17.78×27 / 0 / 0
8,1920.24 GiB4.22 GiB17.78×27 / 0 / 0
16,3840.47 GiB8.44 GiB17.78×27 / 0 / 0
32,7680.95 GiB16.88 GiB17.78×27 / 0 / 0
65,5361.90 GiB33.75 GiB17.78×27 / 0 / 0
131,0723.80 GiB67.50 GiB17.78×27 / 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 25.73 GiB. The real file is 27.66 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
27
Attention heads
32
KV heads
32
Head dim
192
Hidden size
2304
Vocab
163,840
Sliding window
none
SWA period
MLA
yes
Experts
256
Experts per token
use_sliding_window

Questions people ask

How much VRAM does Kimi-Linear-48B-A3B-Instruct need?
Q4_K_M is exactly 29,702,758,784 bytes (27.66 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-Linear-48B-A3B-Instruct's KV cache?
0.95 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-Linear-48B-A3B-Instruct a mixture-of-experts model?
Yes — 256 experts, null 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-Linear-48B-A3B-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.