ibm-granite · text

granite-4.0-h-1b

ibm-granite/granite-4.0-h-1b

granite-4.0-h-1b at Q4_K_M is exactly 901,162,208 bytes (0.84 GiB / 0.90 GB) — an effective 4.933 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
1.5B
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.36 GiB384,208,7042.103unsloth
UD-IQ1_M0.38 GiB413,160,0002.261unsloth
UD-IQ2_XXS0.43 GiB459,288,3842.514unsloth
UD-IQ2_M0.51 GiB543,110,9762.973unsloth
Q2_K0.55 GiB588,928,7363.224ibm-granite
Q2_K0.55 GiB588,929,0883.224unsloth
Q2_K_L0.55 GiB588,929,0883.224unsloth
UD-IQ3_XXS0.58 GiB617,631,5523.381unsloth
Q3_K_S0.65 GiB694,789,0883.803ibm-granite
Q3_K_S0.65 GiB694,789,4403.803unsloth
Q3_K_M0.68 GiB731,653,0884.005ibm-granite
Q3_K_M0.68 GiB731,653,4404.005unsloth
Q3_K_L0.71 GiB762,913,7604.176ibm-granite
IQ4_XS0.77 GiB827,486,7844.529unsloth
Q4_00.81 GiB868,316,3844.753ibm-granite
IQ4_NL0.81 GiB868,316,7364.753unsloth
Q4_00.81 GiB870,282,8164.764unsloth
Q4_K_S0.81 GiB872,641,7604.777ibm-granite
Q4_K_S0.81 GiB872,642,1124.777unsloth
Q4_K_M0.84 GiB901,162,2084.933ibm-granite
Q4_K_M0.84 GiB901,162,5604.933unsloth
Q4_10.88 GiB949,976,2885.200ibm-granite
Q4_10.88 GiB949,976,6405.200unsloth
Q5_K_S0.96 GiB1,031,636,1925.647ibm-granite
Q5_00.96 GiB1,031,636,1925.647ibm-granite
Q5_K_S0.96 GiB1,031,636,5445.647unsloth
Q5_K_M0.98 GiB1,048,556,7685.739ibm-granite
Q5_K_M0.98 GiB1,048,557,1205.739unsloth
Q5_11.04 GiB1,113,296,0966.094ibm-granite
Q6_K1.12 GiB1,205,163,4886.597ibm-granite
Q6_K1.12 GiB1,205,163,8406.597unsloth
Q8_01.45 GiB1,558,926,5608.533ibm-granite
Q8_01.45 GiB1,558,926,9128.533unsloth
BF162.73 GiB2,928,332,28816.029ibm-granite
BF162.73 GiB2,928,332,38416.029unsloth

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

Architecture

from config.json
Layers
40
Attention heads
12
KV heads
4
Head dim
128
Hidden size
1536
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-1b need?
Q4_K_M is exactly 901,162,208 bytes (0.84 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-1b'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-1b 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.