ibm-research · text

granite-4.0-h-3b-ar

ibm-research/granite-4.0-h-3b-ar

granite-4.0-h-3b-ar at Q4_K_M is exactly 2,058,170,400 bytes (1.92 GiB / 2.06 GB) — an effective 4.847 bits per weight, not the nominal 4. Its KV cache at 32K is 0.25 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
3.4B
Architecture
granitehybrid
40 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
I1-IQ1_S0.76 GiB812,433,6961.913mradermacher
I1-IQ1_M0.82 GiB879,931,6802.072mradermacher
I1-IQ2_XXS0.92 GiB992,428,3202.337mradermacher
I1-IQ2_XS1.01 GiB1,082,949,9202.550mradermacher
I1-IQ2_S1.04 GiB1,115,128,0962.626mradermacher
I1-IQ2_M1.12 GiB1,205,125,4082.838mradermacher
I1-Q2_K_S1.16 GiB1,243,058,4642.928mradermacher
Q2_K1.20 GiB1,293,684,7683.047mradermacher
I1-Q2_K1.20 GiB1,293,685,0243.047mradermacher
I1-IQ3_XXS1.28 GiB1,379,680,5443.249mradermacher
I1-IQ3_XS1.40 GiB1,499,242,7843.531mradermacher
Q3_K_S1.44 GiB1,547,411,4883.644mradermacher
I1-Q3_K_S1.44 GiB1,547,411,7443.644mradermacher
I1-IQ3_S1.44 GiB1,547,411,7443.644mradermacher
I1-IQ3_M1.45 GiB1,561,338,1443.677mradermacher
Q3_K_M1.53 GiB1,643,782,1763.871mradermacher
I1-Q3_K_M1.53 GiB1,643,782,4323.871mradermacher
Q3_K_L1.61 GiB1,725,833,2484.064mradermacher
I1-Q3_K_L1.61 GiB1,725,833,5044.064mradermacher
I1-IQ4_XS1.74 GiB1,871,425,8244.407mradermacher
IQ4_XS1.76 GiB1,884,532,7684.438mradermacher
I1-IQ4_NL1.84 GiB1,971,122,4644.642mradermacher
I1-Q4_01.84 GiB1,976,365,3444.654mradermacher
Q4_K_S1.85 GiB1,982,132,2564.668mradermacher
I1-Q4_K_S1.85 GiB1,982,132,5124.668mradermacher
Q4_K_M1.92 GiB2,058,170,4004.847mradermacher
I1-Q4_K_M1.92 GiB2,058,170,6564.847mradermacher
I1-Q4_12.02 GiB2,170,515,7445.112mradermacher
Q5_K_S2.21 GiB2,369,908,7685.581mradermacher
I1-Q5_K_S2.21 GiB2,369,909,0245.581mradermacher
Q5_K_M2.25 GiB2,414,751,7765.687mradermacher
I1-Q5_K_M2.25 GiB2,414,752,0325.687mradermacher
Q6_K2.60 GiB2,793,619,4886.579mradermacher
I1-Q6_K2.60 GiB2,793,619,7446.579mradermacher
Q8_03.37 GiB3,616,043,0408.516mradermacher
F166.33 GiB6,799,618,08016.014mradermacher

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.03 GiB0.31 GiB9.98×4 / 0 / 36
8,1920.06 GiB0.63 GiB9.99×4 / 0 / 36
16,3840.13 GiB1.25 GiB9.99×4 / 0 / 36
32,7680.25 GiB2.50 GiB10.00×4 / 0 / 36
65,5360.50 GiB5.00 GiB10.00×4 / 0 / 36
131,0721.00 GiB10.00 GiB10.00×4 / 0 / 36

36 of 40 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 10.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 1.78 GiB. The real file is 1.92 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
40
Attention heads
32
KV heads
8
Head dim
64
Hidden size
2048
Vocab
100,352
Sliding window
none
SWA period
MLA
no
Experts
0
Experts per token
0
use_sliding_window

Questions people ask

How much VRAM does granite-4.0-h-3b-ar need?
Q4_K_M is exactly 2,058,170,400 bytes (1.92 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is granite-4.0-h-3b-ar's KV cache?
0.25 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 granite-4.0-h-3b-ar 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.