allenai · text

olmOCR-2-7B-1025

allenai/olmOCR-2-7B-1025

olmOCR-2-7B-1025 at Q4_K_M is exactly 4,683,072,032 bytes (4.36 GiB / 4.68 GB) — an effective 4.518 bits per weight, not the nominal 4. Its KV cache at 32K is 1.75 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
8.3B
Architecture
qwen2vl
28 layers
Context
128,000
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S1.77 GiB1,903,666,7521.837mradermacher
I1-IQ1_M1.90 GiB2,042,195,5201.970mradermacher
I1-IQ2_XXS2.12 GiB2,273,076,8002.193mradermacher
I1-IQ2_XS2.30 GiB2,469,021,2482.382mradermacher
I1-IQ2_S2.42 GiB2,595,636,8002.504mradermacher
IQ2_M2.59 GiB2,780,341,4082.682bartowski
I1-IQ2_M2.59 GiB2,780,341,8242.682mradermacher
I1-Q2_K_S2.64 GiB2,834,073,1522.734mradermacher
Q2_K2.81 GiB3,015,939,2322.910bartowski
I1-Q2_K2.81 GiB3,015,939,6482.910mradermacher
IQ3_XXS2.90 GiB3,114,513,5683.005bartowski
I1-IQ3_XXS2.90 GiB3,114,513,9843.005mradermacher
IQ3_XS3.12 GiB3,346,255,0083.228bartowski
I1-IQ3_XS3.12 GiB3,346,255,4243.228mradermacher
Q3_K_S3.25 GiB3,492,367,5203.369bartowski
I1-Q3_K_S3.25 GiB3,492,367,9363.369mradermacher
I1-IQ3_S3.26 GiB3,499,191,8723.376mradermacher
Q2_K_L3.30 GiB3,548,163,2323.423bartowski
IQ3_M3.33 GiB3,574,011,0403.448bartowski
I1-IQ3_M3.33 GiB3,574,011,4563.448mradermacher
Q3_K_M3.55 GiB3,808,390,3043.674bartowski
I1-Q3_K_M3.55 GiB3,808,390,7203.674mradermacher
Q3_K_L3.81 GiB4,088,458,4003.944bartowski
I1-Q3_K_L3.81 GiB4,088,458,8163.944mradermacher
IQ4_XS3.93 GiB4,218,471,5844.070bartowski
I1-IQ4_XS3.93 GiB4,218,472,0004.070mradermacher
IQ4_NL4.13 GiB4,437,812,3844.282bartowski
I1-IQ4_NL4.13 GiB4,437,812,8004.282mradermacher
Q4_04.14 GiB4,444,120,2244.287bartowski
I1-Q4_04.14 GiB4,444,120,6404.287mradermacher
Q4_K_S4.15 GiB4,457,768,0964.301bartowski
I1-Q4_K_S4.15 GiB4,457,768,5124.301mradermacher
Q4_K_M4.36 GiB4,683,072,0324.518lmstudio-community
Q4_K_M4.36 GiB4,683,072,6724.518bartowski
I1-Q4_K_M4.36 GiB4,683,073,0884.518mradermacher
Q4_14.54 GiB4,873,282,7204.702bartowski
I1-Q4_14.54 GiB4,873,283,1364.702mradermacher
Q4_K_L4.74 GiB5,087,562,9124.908bartowski
Q5_K_S4.95 GiB5,315,175,5845.128bartowski
I1-Q5_K_S4.95 GiB5,315,176,0005.128mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.22 GiB0.22 GiB28 / 0 / 0
8,1920.44 GiB0.44 GiB28 / 0 / 0
16,3840.88 GiB0.88 GiB28 / 0 / 0
32,7681.75 GiB1.75 GiB28 / 0 / 0
65,5363.50 GiB3.50 GiB28 / 0 / 0
131,0727.00 GiB7.00 GiB28 / 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 4.34 GiB. The real file is 4.36 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
28
Attention heads
28
KV heads
4
Head dim
128
Hidden size
3584
Vocab
152,064
Sliding window
32768
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
false

This model declares a sliding window but sets use_sliding_window: false, so the window is not applied. Honouring the field without the flag understates KV for the whole family.

Questions people ask

How much VRAM does olmOCR-2-7B-1025 need?
Q4_K_M is exactly 4,683,072,032 bytes (4.36 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is olmOCR-2-7B-1025's KV cache?
1.75 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.
Which quantization of olmOCR-2-7B-1025 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.