moonshotai · vision language · mixture of experts

Kimi-K2.7-Code

moonshotai/Kimi-K2.7-Code

Kimi-K2.7-Code at UD-IQ1_M is exactly 303,909,170,464 bytes (283.04 GiB / 303.91 GB) — an effective 2.297 bits per weight, not the nominal 1. Its KV cache at 32K is 2.14 GiB.

From the file· summed from 8 file(s)From the file· KV per layer
Parameters
1059B
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-IQ1_M8 shards283.04 GiB303,909,170,4642.297CaelumAethryn
UD-IQ1_M8 shards283.04 GiB303,909,170,4642.297eadx
UD-IQ1_M8 shards283.04 GiB303,909,170,4642.297unsloth
UD-IQ2_XXS8 shards296.00 GiB317,825,871,1682.402CaelumAethryn
UD-IQ2_XXS8 shards296.00 GiB317,825,871,1682.402eadx
UD-IQ2_XXS8 shards296.00 GiB317,825,871,1682.402unsloth
UD-IQ2_M8 shards296.14 GiB317,972,671,8082.403CaelumAethryn
UD-IQ2_M8 shards296.14 GiB317,972,671,8082.403eadx
UD-IQ2_M8 shards296.14 GiB317,972,671,8082.403unsloth
UD-IQ3_XXS9 shards351.00 GiB376,880,815,4882.848eadx
UD-IQ3_S10 shards390.04 GiB418,807,078,4963.165unsloth
UD-IQ3_S10 shards390.04 GiB418,807,078,4963.165CaelumAethryn
UD-IQ3_S10 shards390.04 GiB418,807,078,4963.165eadx
UD-Q3_K_M11 shards431.78 GiB463,616,941,7283.504unsloth
UD-Q3_K_M11 shards431.78 GiB463,616,941,7283.504eadx
UD-Q3_K_M11 shards431.78 GiB463,616,941,7283.504CaelumAethryn
UD-IQ4_XS12 shards461.08 GiB495,081,824,0003.741CaelumAethryn
UD-IQ4_XS12 shards461.08 GiB495,081,824,0003.741unsloth
UD-IQ4_XS12 shards461.08 GiB495,081,824,0003.741eadx

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 UD-IQ1_M at roughly 554.56 GiB. The real file is 283.04 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.7-Code need?
UD-IQ1_M is exactly 303,909,170,464 bytes (283.04 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.7-Code'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.7-Code 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.7-Code 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.