nanonets · vision language

Nanonets-OCR-s

nanonets/Nanonets-OCR-s

Nanonets-OCR-s at Q4_K_M is exactly 1,929,900,800 bytes (1.80 GiB / 1.93 GB) — an effective 4.112 bits per weight, not the nominal 4. Its KV cache at 32K is 1.13 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
3.8B
Architecture
qwen2vl
36 layers
Context
128,000
native (config.json)
License

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S0.74 GiB791,092,1921.686prithivMLmods
UD-IQ1_S0.77 GiB826,336,4481.761unsloth
I1-IQ1_M0.79 GiB850,025,4401.811prithivMLmods
UD-IQ1_M0.82 GiB881,640,6401.879unsloth
I1-IQ2_XXS0.88 GiB948,247,5202.020prithivMLmods
UD-IQ2_XXS0.90 GiB970,687,6802.068unsloth
I1-IQ2_XS0.96 GiB1,031,543,7762.198prithivMLmods
I1-IQ2_S0.99 GiB1,061,936,0962.263prithivMLmods
I1-IQ2_M1.06 GiB1,140,513,7602.430prithivMLmods
UD-IQ2_M1.09 GiB1,165,403,3282.483unsloth
I1-Q2_K_S1.12 GiB1,198,126,0482.553prithivMLmods
Q2_K1.19 GiB1,274,753,7922.716prithivMLmods
I1-Q2_K1.19 GiB1,274,754,0162.716prithivMLmods
Q2_K1.19 GiB1,274,756,2882.716unsloth
Q2_K_L1.19 GiB1,274,756,2882.716unsloth
I1-IQ3_XXS1.19 GiB1,282,825,1842.733prithivMLmods
UD-IQ3_XXS1.21 GiB1,302,656,1922.776unsloth
I1-IQ3_XS1.30 GiB1,391,834,0802.966prithivMLmods
Q3_K_S1.35 GiB1,454,355,2003.099prithivMLmods
I1-Q3_K_S1.35 GiB1,454,355,4243.099prithivMLmods
Q3_K_S1.35 GiB1,454,357,6963.099unsloth
I1-IQ3_S1.36 GiB1,456,862,1763.104prithivMLmods
I1-IQ3_M1.39 GiB1,488,892,8963.172prithivMLmods
Q3_K_M1.48 GiB1,590,473,4723.389prithivMLmods
I1-Q3_K_M1.48 GiB1,590,473,6963.389prithivMLmods
Q3_K_M1.48 GiB1,590,475,9683.389unsloth
Q3_K_L1.59 GiB1,707,389,6963.638prithivMLmods
I1-Q3_K_L1.59 GiB1,707,389,9203.638prithivMLmods
I1-IQ4_XS1.62 GiB1,739,092,9603.705prithivMLmods
IQ4_XS1.62 GiB1,739,095,2323.705unsloth
IQ4_XS1.63 GiB1,753,182,9763.736prithivMLmods
I1-IQ4_NL1.70 GiB1,825,207,2643.889prithivMLmods
IQ4_NL1.70 GiB1,825,209,5363.889unsloth
I1-Q4_01.70 GiB1,828,484,0643.896prithivMLmods
Q4_01.70 GiB1,828,486,3363.896unsloth
Q4_K_S1.71 GiB1,834,382,0803.909prithivMLmods
I1-Q4_K_S1.71 GiB1,834,382,3043.909prithivMLmods
Q4_K_S1.71 GiB1,834,384,5763.909unsloth
Q4_K_M1.80 GiB1,929,900,8004.112prithivMLmods
I1-Q4_K_M1.80 GiB1,929,901,0244.112prithivMLmods

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.14 GiB0.14 GiB36 / 0 / 0
8,1920.28 GiB0.28 GiB36 / 0 / 0
16,3840.56 GiB0.56 GiB36 / 0 / 0
32,7681.13 GiB1.13 GiB36 / 0 / 0
65,5362.25 GiB2.25 GiB36 / 0 / 0
131,0724.50 GiB4.50 GiB36 / 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.97 GiB. The real file is 1.80 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
36
Attention heads
16
KV heads
2
Head dim
128
Hidden size
2048
Vocab
151,936
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 Nanonets-OCR-s need?
Q4_K_M is exactly 1,929,900,800 bytes (1.80 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Nanonets-OCR-s's KV cache?
1.13 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 Nanonets-OCR-s 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.