deepseek-ai · text · mixture of experts

DeepSeek-Prover-V2-671B

deepseek-ai/DeepSeek-Prover-V2-671B

DeepSeek-Prover-V2-671B at Q4_K_M is exactly 404,494,156,736 bytes (376.71 GiB / 404.49 GB) — an effective 4.727 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
UD-IQ1_S4 shards172.10 GiB184,792,578,3682.160unsloth
UD-IQ1_M5 shards186.06 GiB199,783,899,6162.335unsloth
UD-IQ2_XXS5 shards201.13 GiB215,958,571,4882.524unsloth
UD-IQ2_M5 shards212.09 GiB227,727,395,2642.661unsloth
Q2_K20 shards227.38 GiB244,148,281,5042.853DevQuasar
Q2_K5 shards227.44 GiB244,212,243,9042.854unsloth
Q2_K_L5 shards227.64 GiB244,429,434,3042.857unsloth
UD-IQ3_XXS6 shards253.67 GiB272,374,751,8403.183unsloth
Q3_K_S6 shards269.35 GiB289,214,518,3043.380unsloth
Q3_K_M25 shards297.34 GiB319,266,363,8083.731DevQuasar
Q3_K_M7 shards297.40 GiB319,330,325,6963.732unsloth
IQ4_XS8 shards332.72 GiB357,253,589,7284.175unsloth
IQ4_NL8 shards352.16 GiB378,129,908,5124.419unsloth
Q4_08 shards353.24 GiB379,289,764,6084.433unsloth
Q4_K_S8 shards353.96 GiB380,065,841,9524.442unsloth
Q4_K_M9 shards376.71 GiB404,494,156,7364.727unsloth
Q4_K_M31 shards376.71 GiB404,494,158,5924.727DevQuasar
Q4_19 shards391.10 GiB419,940,463,5524.908unsloth
Q5_K_S9 shards394.82 GiB423,933,308,1284.954unsloth
Q5_K_M10 shards442.78 GiB475,428,545,5365.556unsloth
Q5_K_M36 shards442.78 GiB475,428,547,7765.556DevQuasar
Q6_K12 shards513.09 GiB550,922,261,3766.439unsloth
Q8_015 shards664.30 GiB713,286,520,1288.336unsloth
BF1630 shards1250.09 GiB1,342,273,053,88815.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.71 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-Prover-V2-671B need?
Q4_K_M is exactly 404,494,156,736 bytes (376.71 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-Prover-V2-671B'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-Prover-V2-671B 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-Prover-V2-671B 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.