datalab-to · vision language

chandra-ocr-2

datalab-to/chandra-ocr-2

chandra-ocr-2 at Q4_K_M is exactly 3,066,384,992 bytes (2.86 GiB / 3.07 GB) — an effective 4.632 bits per weight, not the nominal 4. Its KV cache at 32K is 1.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
5.3B
Architecture
qwen35
32 layers
Context
262,144
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K1.98 GiB2,124,059,2323.209prithivMLmods
Q3_K_S2.18 GiB2,343,031,3923.540prithivMLmods
Q3_K_M2.36 GiB2,535,215,7123.830prithivMLmods
Q3_K_L2.51 GiB2,694,468,1924.071prithivMLmods
Q4_02.70 GiB2,901,480,0324.383prithivMLmods
Q4_K_S2.72 GiB2,921,468,5124.413prithivMLmods
Q4_K_M2.86 GiB3,066,384,9924.632prithivMLmods
Q5_03.19 GiB3,427,078,7525.177prithivMLmods
Q5_K_S3.19 GiB3,427,078,7525.177prithivMLmods
Q5_K_M3.27 GiB3,512,029,7925.306prithivMLmods
Q6_K3.71 GiB3,985,527,3926.021prithivMLmods
Q8_04.80 GiB5,157,833,3127.792prithivMLmods
F169.03 GiB9,695,791,71214.647prithivMLmods
BF169.03 GiB9,695,791,71214.647prithivMLmods

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.13 GiB0.50 GiB4.00×8 / 0 / 24
8,1920.25 GiB1.00 GiB4.00×8 / 0 / 24
16,3840.50 GiB2.00 GiB4.00×8 / 0 / 24
32,7681.00 GiB4.00 GiB4.00×8 / 0 / 24
65,5362.00 GiB8.00 GiB4.00×8 / 0 / 24
131,0724.00 GiB16.00 GiB4.00×8 / 0 / 24

24 of 32 layers use linear attention, which keeps a fixed-size recurrent state instead of a per-token cache. Those layers do not grow with context at all — treating them as ordinary attention, as a flat formula does, overstates this model's cache by roughly 4.0× at long context.

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

Architecture

from config.json
Layers
32
Attention heads
16
KV heads
4
Head dim
256
Hidden size
2560
Vocab
248,320
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does chandra-ocr-2 need?
Q4_K_M is exactly 3,066,384,992 bytes (2.86 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is chandra-ocr-2's KV cache?
1.00 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 chandra-ocr-2 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.