deepseek-ai · text · mixture of experts

DeepSeek-Coder-V2-Lite-Base

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

DeepSeek-Coder-V2-Lite-Base at Q4_K_M is exactly 10,364,416,480 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
I1-IQ1_S4.65 GiB4,994,132,1282.544mradermacher
IQ1_M4.88 GiB5,236,564,7362.667legraphista
I1-IQ1_M4.88 GiB5,236,565,1522.667mradermacher
IQ2_XXS5.25 GiB5,640,619,7762.873legraphista
I1-IQ2_XXS5.25 GiB5,640,620,1922.873mradermacher
IQ2_XS5.56 GiB5,967,402,7523.039legraphista
I1-IQ2_XS5.56 GiB5,967,403,1683.039mradermacher
IQ2_S5.59 GiB6,005,212,9283.059legraphista
I1-IQ2_S5.59 GiB6,005,213,3443.059mradermacher
IQ2_M5.89 GiB6,328,456,9603.223legraphista
I1-IQ2_M5.89 GiB6,328,457,3763.223mradermacher
Q2_K5.99 GiB6,430,464,7683.275legraphista
I1-Q2_K5.99 GiB6,430,465,1843.275mradermacher
Q2_K_S6.01 GiB6,455,376,6403.288legraphista
IQ3_XXS6.49 GiB6,964,057,8563.547legraphista
I1-IQ3_XXS6.49 GiB6,964,058,2723.547mradermacher
IQ3_XS6.63 GiB7,122,857,7283.628legraphista
I1-IQ3_XS6.63 GiB7,122,858,1443.628mradermacher
IQ3_S6.97 GiB7,487,663,8723.814legraphista
Q3_K_S6.97 GiB7,487,663,8723.814legraphista
I1-Q3_K_S6.97 GiB7,487,664,2883.814mradermacher
I1-IQ3_S6.97 GiB7,487,664,2883.814mradermacher
IQ3_M7.03 GiB7,553,175,2963.847legraphista
I1-IQ3_M7.03 GiB7,553,175,7123.847mradermacher
Q3_K7.57 GiB8,126,607,1044.139legraphista
I1-Q3_K_M7.57 GiB8,126,607,5204.139mradermacher
Q3_K_L7.88 GiB8,459,398,9124.309legraphista
I1-Q3_K_L7.88 GiB8,459,399,3284.309mradermacher
IQ4_XS7.98 GiB8,571,593,4724.366legraphista
I1-IQ4_XS7.98 GiB8,571,593,8884.366mradermacher
IQ4_NL8.29 GiB8,905,110,2724.536legraphista
I1-Q4_08.32 GiB8,930,301,0884.549mradermacher
Q4_K_S8.88 GiB9,533,608,7044.856legraphista
I1-Q4_K_S8.88 GiB9,533,609,1204.856mradermacher
Q4_K_M9.65 GiB10,364,416,4805.279sugatoray
Q4_K9.65 GiB10,364,416,7685.279legraphista
I1-Q4_K_M9.65 GiB10,364,417,1845.279mradermacher
Q5_K_S10.38 GiB11,143,057,8885.676legraphista
I1-Q5_K_S10.38 GiB11,143,058,5925.676mradermacher

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-Base need?
Q4_K_M is exactly 10,364,416,480 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-Base'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-Base 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-Base 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.