deepseek-ai · text · mixture of experts

DeepSeek-Coder-V2-Lite-Instruct

deepseek-ai/DeepSeek-Coder-V2-Lite-Instruct

DeepSeek-Coder-V2-Lite-Instruct at Q4_K_M is exactly 10,364,416,768 bytes (9.65 GiB / 10.36 GB) — an effective 5.279 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
15.7B
total, not active
Architecture
deepseek2
27 layers
Context
163,840
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S4.65 GiB4,994,131,7122.544legraphista
IQ1_M4.88 GiB5,236,564,7362.667legraphista
IQ2_XXS5.25 GiB5,640,619,7762.873legraphista
IQ2_XS5.56 GiB5,967,402,7523.039legraphista
IQ2_S5.59 GiB6,005,212,9283.059legraphista
IQ2_M5.89 GiB6,328,456,9603.223legraphista
Q2_K5.99 GiB6,430,464,7683.275legraphista
Q2_K5.99 GiB6,430,464,9603.275mradermacher
Q2_K_S6.01 GiB6,455,376,6403.288legraphista
IQ3_XXS6.49 GiB6,964,057,8563.547legraphista
IQ3_XS6.63 GiB7,122,857,7283.628legraphista
IQ3_XS6.63 GiB7,122,857,9203.628mradermacher
Q3_K_S6.97 GiB7,487,663,8723.814legraphista
IQ3_S6.97 GiB7,487,663,8723.814legraphista
IQ3_S6.97 GiB7,487,664,0643.814mradermacher
Q3_K_S6.97 GiB7,487,664,0643.814mradermacher
IQ3_M7.03 GiB7,553,175,2963.847lmstudio-community
IQ3_M7.03 GiB7,553,175,2963.847legraphista
IQ3_M7.03 GiB7,553,175,4883.847mradermacher
Q3_K7.57 GiB8,126,607,1044.139legraphista
Q3_K_M7.57 GiB8,126,607,2964.139mradermacher
Q3_K_L7.88 GiB8,459,398,9124.309legraphista
Q3_K_L7.88 GiB8,459,398,9124.309lmstudio-community
Q3_K_L7.88 GiB8,459,399,1044.309mradermacher
IQ4_XS7.98 GiB8,571,593,4724.366legraphista
IQ4_XS7.98 GiB8,571,593,4724.366lmstudio-community
IQ4_XS8.05 GiB8,646,804,4164.404mradermacher
IQ4_NL8.29 GiB8,905,110,2724.536legraphista
Q4_K_S8.88 GiB9,533,608,7044.856legraphista
Q4_K_S8.88 GiB9,533,608,8964.856mradermacher
Q4_K_M9.65 GiB10,364,416,7685.279lmstudio-community
Q4_K9.65 GiB10,364,416,7685.279legraphista
Q4_K_M9.65 GiB10,364,416,9605.279mradermacher
Q5_K_S10.38 GiB11,143,057,8885.676legraphista
Q5_K_S10.38 GiB11,143,058,3685.676mradermacher
Q5_K11.04 GiB11,851,313,6326.036legraphista
Q5_K_M11.04 GiB11,851,313,9206.036lmstudio-community
Q5_K_M11.04 GiB11,851,314,1126.036mradermacher
Q6_K13.10 GiB14,066,972,1287.165legraphista
Q6_K13.10 GiB14,066,972,4167.165lmstudio-community

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.12 GiB1.05 GiB8.89×27 / 0 / 0
8,1920.24 GiB2.11 GiB8.89×27 / 0 / 0
16,3840.47 GiB4.22 GiB8.89×27 / 0 / 0
32,7680.95 GiB8.44 GiB8.89×27 / 0 / 0
65,5361.90 GiB16.88 GiB8.89×27 / 0 / 0
131,0723.80 GiB33.75 GiB8.89×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 8.23 GiB. The real file is 9.65 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
16
KV heads
16
Head dim
192
Hidden size
2048
Vocab
102,400
Sliding window
none
SWA period
MLA
yes
Experts
64
Experts per token
6
use_sliding_window

Questions people ask

How much VRAM does DeepSeek-Coder-V2-Lite-Instruct need?
Q4_K_M is exactly 10,364,416,768 bytes (9.65 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is DeepSeek-Coder-V2-Lite-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 DeepSeek-Coder-V2-Lite-Instruct a mixture-of-experts model?
Yes — 64 experts, 6 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 DeepSeek-Coder-V2-Lite-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.