deepseek-ai · text · mixture of experts

DeepSeek-V4-Flash-0731

deepseek-ai/DeepSeek-V4-Flash-0731

DeepSeek-V4-Flash-0731 at UD-IQ1_S is exactly 82,539,237,792 bytes (76.87 GiB / 82.54 GB) — an effective 2.171 bits per weight, not the nominal 1. Its KV cache at 32K is 0.06 GiB, not the 2.69 GiB a flat formula predicts.

From the file· summed from 3 file(s)From the file· KV per layer
Parameters
304B
total, not active
Architecture
deepseek4
43 layers
Context
1,048,576
native (config.json)
License
mit

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ1_S3 shards76.87 GiB82,539,237,7922.171unsloth
UD-IQ1_M3 shards80.93 GiB86,901,313,9522.285unsloth
UD-IQ2_XXS3 shards84.62 GiB90,860,736,9282.390unsloth
UD-IQ2_M3 shards84.68 GiB90,926,928,2882.391unsloth
UD-IQ3_XXS4 shards97.05 GiB104,207,848,0322.741unsloth
UD-IQ3_S4 shards108.10 GiB116,069,339,7123.053unsloth
UD-Q3_K_M4 shards119.28 GiB128,078,484,0323.369unsloth
UD-IQ4_XS4 shards127.28 GiB136,662,446,6563.594unsloth
UD-IQ4_NL4 shards127.28 GiB136,662,446,6563.594unsloth
MXFP44 shards145.64 GiB156,378,345,4084.113lmstudio-community
MXFP44 shards145.64 GiB156,378,347,1044.113bartowski

KV cache by context

computed per layer — this model uses sliding-window attention
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.06 GiB0.34 GiB5.33×0 / 43 / 0
8,1920.06 GiB0.67 GiB10.67×0 / 43 / 0
16,3840.06 GiB1.34 GiB21.33×0 / 43 / 0
32,7680.06 GiB2.69 GiB42.67×0 / 43 / 0
65,5360.06 GiB5.38 GiB85.33×0 / 43 / 0
131,0720.06 GiB10.75 GiB170.67×0 / 43 / 0

43 of 43 layers cache only a 128-token window rather than the full context, on a period of 0. Figures assume the default configuration; --swa-full disables the saving entirely.

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_S at roughly 159.35 GiB. The real file is 76.87 GiB, because a quantization is a mixture and some tensors are always kept at higher precision. The larger discrepancy is the cache: a flat formula gives 2.69 GiB at 32K context where the real figure is 0.06 GiB, because most of this model's layers cache a fixed window rather than the whole context.

Architecture

from config.json
Layers
43
Attention heads
64
KV heads
1
Head dim
512
Hidden size
4096
Vocab
129,280
Sliding window
128
SWA period
0
MLA
no
Experts
256
Experts per token
6
use_sliding_window

Questions people ask

How much VRAM does DeepSeek-V4-Flash-0731 need?
UD-IQ1_S is exactly 82,539,237,792 bytes (76.87 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-V4-Flash-0731's KV cache?
0.06 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-V4-Flash-0731 a mixture-of-experts model?
Yes — 256 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-V4-Flash-0731 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.