ibm-granite · text

granite-4.0-h-micro

ibm-granite/granite-4.0-h-micro

granite-4.0-h-micro at Q4_K_M is exactly 1,942,564,480 bytes (1.81 GiB / 1.94 GB) — an effective 4.870 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.2B
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
UD-IQ1_S0.72 GiB771,178,4321.933unsloth
UD-IQ1_M0.78 GiB837,660,6082.100unsloth
UD-IQ2_XXS0.88 GiB942,522,3042.363unsloth
IQ2_M1.04 GiB1,116,814,9762.800bartowski
UD-IQ2_M1.06 GiB1,132,806,0802.840unsloth
Q2_K1.14 GiB1,226,247,8083.074bartowski
Q2_K1.14 GiB1,226,247,8403.074ibm-granite
Q2_K1.14 GiB1,226,248,1283.074unsloth
Q2_K_L1.14 GiB1,226,248,1283.074unsloth
Q2_K_L1.19 GiB1,276,022,4003.199bartowski
IQ3_XXS1.20 GiB1,291,370,1123.237bartowski
UD-IQ3_XXS1.21 GiB1,303,822,2723.268unsloth
IQ3_XS1.31 GiB1,410,932,3523.537bartowski
Q3_K_S1.36 GiB1,459,101,3123.658bartowski
Q3_K_S1.36 GiB1,459,101,3443.658ibm-granite
Q3_K_S1.36 GiB1,459,101,6323.658unsloth
IQ3_M1.37 GiB1,473,027,7123.692bartowski
Q3_K_M1.45 GiB1,555,472,0003.899bartowski
Q3_K_M1.45 GiB1,555,472,0323.899ibm-granite
Q3_K_M1.45 GiB1,555,472,3203.899unsloth
Q3_K_L1.53 GiB1,637,523,0724.105bartowski
Q3_K_L1.53 GiB1,637,523,1044.105ibm-granite
IQ4_XS1.64 GiB1,762,242,1764.418bartowski
IQ4_XS1.64 GiB1,762,242,4964.418unsloth
IQ4_NL1.73 GiB1,855,516,2884.651bartowski
Q4_01.73 GiB1,855,516,3204.651ibm-granite
IQ4_NL1.73 GiB1,855,516,6084.651unsloth
Q4_01.73 GiB1,860,759,1684.664bartowski
Q4_01.73 GiB1,860,759,5844.664unsloth
Q4_K_S1.74 GiB1,866,526,3364.679bartowski
Q4_K_S1.74 GiB1,866,526,3684.679ibm-granite
Q4_K_S1.74 GiB1,866,526,6564.679unsloth
Q4_K_M1.81 GiB1,942,564,4804.870bartowski
Q4_K_M1.81 GiB1,942,564,5124.870ibm-granite
Q4_K_M1.81 GiB1,942,564,8004.870unsloth
Q4_K_L1.86 GiB1,992,339,0724.994bartowski
Q4_11.90 GiB2,042,064,5125.119bartowski
Q4_11.90 GiB2,042,064,5445.119ibm-granite
Q4_11.90 GiB2,042,064,8325.119unsloth
Q5_K_S2.08 GiB2,228,612,7365.587bartowski

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.67 GiB. The real file is 1.81 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-micro need?
Q4_K_M is exactly 1,942,564,480 bytes (1.81 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-micro'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-micro 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.