deepseek-ai · text · mixture of experts

DeepSeek-OCR

deepseek-ai/DeepSeek-OCR

DeepSeek-OCR at Q4_K_M is exactly 1,950,326,592 bytes (1.82 GiB / 1.95 GB) — an effective 4.677 bits per weight, not the nominal 4. Its KV cache at 32K is 0.94 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
3.3B
total, not active
Architecture
deepseek_vl_v2
12 layers
Context
8,192
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q4_01.54 GiB1,650,910,7843.959NexaAI
Q4_K_M1.82 GiB1,950,326,5924.677sabafallah
Q5_01.88 GiB2,017,748,5444.839NexaAI
Q4_K1.92 GiB2,058,995,2644.938NexaAI
Q5_K2.16 GiB2,323,811,9045.572NexaAI
Q6_K2.43 GiB2,605,179,5846.247NexaAI
Q8_02.90 GiB3,118,261,8247.478NexaAI
Q8_02.91 GiB3,126,139,7127.497sabafallah
BF165.47 GiB5,869,545,02414.075NexaAI
F165.47 GiB5,869,545,02414.075NexaAI
BF165.47 GiB5,876,578,11214.092sabafallah

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.12 GiB0.12 GiB12 / 0 / 0
8,1920.23 GiB0.23 GiB12 / 0 / 0
16,3840.47 GiB0.47 GiB12 / 0 / 0
32,7680.94 GiB0.94 GiB12 / 0 / 0
65,5361.88 GiB1.88 GiB12 / 0 / 0
131,0723.75 GiB3.75 GiB12 / 0 / 0

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 1.75 GiB. The real file is 1.82 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
12
Attention heads
10
KV heads
10
Head dim
128
Hidden size
1280
Vocab
129,280
Sliding window
none
SWA period
MLA
no
Experts
64
Experts per token
6
use_sliding_window

Questions people ask

How much VRAM does DeepSeek-OCR need?
Q4_K_M is exactly 1,950,326,592 bytes (1.82 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-OCR's KV cache?
0.94 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-OCR 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-OCR 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.