prithivMLmods · text

Garnet-OCR-3B-0422

prithivMLmods/Garnet-OCR-3B-0422

Garnet-OCR-3B-0422 at Q4_K_M is exactly 2,104,202,944 bytes (1.96 GiB / 2.10 GB) — an effective 4.141 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
4.1B
Architecture
qwen2vl
36 layers
Context
128,000
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S0.83 GiB892,657,6001.757mradermacher
I1-IQ1_M0.89 GiB951,590,8481.873mradermacher
I1-IQ2_XXS0.98 GiB1,049,812,9282.066mradermacher
I1-IQ2_XS1.06 GiB1,133,109,1842.230mradermacher
I1-IQ2_S1.11 GiB1,195,050,9442.352mradermacher
I1-IQ2_M1.19 GiB1,273,628,6082.507mradermacher
I1-Q2_K_S1.21 GiB1,299,621,8242.558mradermacher
Q2_K1.28 GiB1,376,249,5362.709mradermacher
I1-Q2_K1.28 GiB1,376,249,7922.709mradermacher
I1-IQ3_XXS1.32 GiB1,415,940,0322.787mradermacher
I1-IQ3_XS1.42 GiB1,524,879,2963.001mradermacher
Q3_K_S1.48 GiB1,587,400,3843.124mradermacher
I1-Q3_K_S1.48 GiB1,587,400,6403.124mradermacher
I1-IQ3_S1.48 GiB1,589,907,3923.129mradermacher
I1-IQ3_M1.51 GiB1,621,938,1123.192mradermacher
Q3_K_M1.61 GiB1,723,518,6563.392mradermacher
I1-Q3_K_M1.61 GiB1,723,518,9123.392mradermacher
Q3_K_L1.71 GiB1,840,434,8803.622mradermacher
I1-Q3_K_L1.71 GiB1,840,435,1363.622mradermacher
I1-IQ4_XS1.77 GiB1,903,687,6163.747mradermacher
IQ4_XS1.79 GiB1,917,777,6003.775mradermacher
I1-IQ4_NL1.86 GiB1,999,509,4403.935mradermacher
I1-Q4_01.87 GiB2,002,786,2403.942mradermacher
Q4_K_S1.87 GiB2,008,684,2243.953mradermacher
I1-Q4_K_S1.87 GiB2,008,684,4803.953mradermacher
Q4_K_M1.96 GiB2,104,202,9444.141mradermacher
I1-Q4_K_M1.96 GiB2,104,203,2004.141mradermacher
I1-Q4_12.04 GiB2,189,973,4404.310mradermacher
Q5_K_S2.22 GiB2,382,796,4804.690mradermacher
I1-Q5_K_S2.22 GiB2,382,796,7364.690mradermacher
Q5_K_M2.27 GiB2,437,945,0244.798mradermacher
I1-Q5_K_M2.27 GiB2,437,945,2804.798mradermacher
Q6_K2.60 GiB2,792,545,9845.496mradermacher
I1-Q6_K2.60 GiB2,792,546,2405.496mradermacher
Q8_03.37 GiB3,614,969,5367.115mradermacher
F166.33 GiB6,798,544,57613.380mradermacher

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 2.13 GiB. The real file is 1.96 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,680
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
false

Questions people ask

How much VRAM does Garnet-OCR-3B-0422 need?
Q4_K_M is exactly 2,104,202,944 bytes (1.96 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Garnet-OCR-3B-0422'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 Garnet-OCR-3B-0422 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.