deepseek-ai · text · mixture of experts

DeepSeek-R1

deepseek-ai/DeepSeek-R1

DeepSeek-R1 at Q4_K_M is exactly 404,430,187,616 bytes (376.65 GiB / 404.43 GB) — an effective 4.726 bits per weight, not the nominal 4. Its KV cache at 32K is 2.14 GiB.

From the file· summed from 9 file(s)From the file· KV per layer
Parameters
685B
total, not active
Architecture
deepseek2
61 layers
Context
163,840
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S4 shards124.38 GiB133,555,673,3121.561bartowski
UD-IQ1_S3 shards130.60 GiB140,231,438,4641.639unsloth
IQ1_M4 shards138.66 GiB148,882,856,6721.740bartowski
UD-IQ1_M4 shards157.32 GiB168,916,283,6481.974unsloth
IQ2_XXS5 shards162.45 GiB174,428,162,3682.038bartowski
IQ2_XS5 shards181.69 GiB195,088,277,8882.280bartowski
UD-IQ2_XXS4 shards182.69 GiB196,162,482,4322.292unsloth
IQ2_S6 shards183.47 GiB196,996,413,8562.302bartowski
IQ2_M6 shards202.50 GiB217,432,658,3682.541bartowski
Q2_K5 shards227.27 GiB244,028,343,9362.852unsloth
Q2_K7 shards227.27 GiB244,028,344,3842.852bartowski
Q2_K_L5 shards227.47 GiB244,245,534,3362.854unsloth
Q2_K_L7 shards228.11 GiB244,933,304,4482.862bartowski
IQ3_XXS7 shards240.22 GiB257,932,870,1763.014bartowski
Q3_K_S8 shards269.23 GiB289,082,588,8323.378bartowski
IQ3_M8 shards272.03 GiB292,090,969,7923.414bartowski
Q3_K_M7 shards297.28 GiB319,198,395,7443.730unsloth
Q3_K_M9 shards297.28 GiB319,198,396,2243.730bartowski
Q3_K_L9 shards323.58 GiB347,446,509,0564.061lmstudio-community
Q3_K_L9 shards323.58 GiB347,446,509,3124.061bartowski
IQ4_XS10 shards332.60 GiB357,128,680,8644.174bartowski
IQ4_NL10 shards352.10 GiB378,065,939,9684.418bartowski
Q4_010 shards353.00 GiB379,033,906,6884.430bartowski
Q4_K_S10 shards353.90 GiB380,001,873,4084.441bartowski
Q4_K_M9 shards376.65 GiB404,430,187,6164.726unsloth
Q4_K_M11 shards376.65 GiB404,430,187,8084.726lmstudio-community
Q4_K_M11 shards376.65 GiB404,430,188,0644.726bartowski
Q4_111 shards391.10 GiB419,940,458,0164.908bartowski
Q5_K_S12 shards430.10 GiB461,814,976,2885.397bartowski
Q5_K_M10 shards442.75 GiB475,396,558,1445.556unsloth
Q5_K_M13 shards442.75 GiB475,396,558,5925.556bartowski
Q6_K15 shards512.97 GiB550,798,326,8806.437lmstudio-community
Q6_K12 shards512.97 GiB550,798,326,8806.437unsloth
Q6_K15 shards512.97 GiB550,798,327,1366.437bartowski
Q8_015 shards664.30 GiB713,286,514,3688.336unsloth
Q8_020 shards664.30 GiB713,286,514,9448.336lmstudio-community
Q8_020 shards664.30 GiB713,286,515,2008.336bartowski
BF1630 shards1250.09 GiB1,342,273,048,09615.687unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.27 GiB19.06 GiB71.11×61 / 0 / 0
8,1920.54 GiB38.13 GiB71.11×61 / 0 / 0
16,3841.07 GiB76.25 GiB71.11×61 / 0 / 0
32,7682.14 GiB152.50 GiB71.11×61 / 0 / 0
65,5364.29 GiB305.00 GiB71.11×61 / 0 / 0
131,0728.58 GiB610.00 GiB71.11×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 358.60 GiB. The real file is 376.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
61
Attention heads
128
KV heads
128
Head dim
192
Hidden size
7168
Vocab
129,280
Sliding window
none
SWA period
MLA
yes
Experts
256
Experts per token
8
use_sliding_window

Questions people ask

How much VRAM does DeepSeek-R1 need?
Q4_K_M is exactly 404,430,187,616 bytes (376.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-R1'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 DeepSeek-R1 a mixture-of-experts model?
Yes — 256 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 DeepSeek-R1 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.