ibm-granite · text · mixture of experts

granite-4.0-h-tiny

ibm-granite/granite-4.0-h-tiny

granite-4.0-h-tiny at Q4_K_M is exactly 4,230,975,936 bytes (3.94 GiB / 4.23 GB) — an effective 4.878 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
6.9B
total, not active
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-TQ1_01.81 GiB1,938,640,2882.235unsloth
UD-IQ1_S1.97 GiB2,120,306,0802.445unsloth
UD-IQ1_M2.08 GiB2,238,290,0802.580unsloth
UD-IQ2_XXS2.23 GiB2,393,382,3042.759unsloth
UD-IQ2_M2.35 GiB2,525,472,1602.912unsloth
Q2_K2.41 GiB2,585,986,4002.981ibm-granite
Q2_K_L2.46 GiB2,640,053,9203.044unsloth
Q2_K2.46 GiB2,640,053,9203.044unsloth
UD-IQ3_XXS2.79 GiB2,999,856,5443.458unsloth
Q3_K_S2.85 GiB3,062,452,8323.531ibm-granite
Q3_K_S2.89 GiB3,103,740,8323.578unsloth
Q3_K_M3.12 GiB3,353,039,4563.866ibm-granite
Q3_K_M3.15 GiB3,385,578,4003.903unsloth
Q3_K_L3.35 GiB3,600,962,1444.152ibm-granite
IQ4_XS3.53 GiB3,788,906,6564.368unsloth
Q4_03.69 GiB3,962,938,2084.569ibm-granite
IQ4_NL3.72 GiB3,994,887,3284.606unsloth
Q4_K_S3.72 GiB3,995,771,7444.607ibm-granite
Q4_03.74 GiB4,010,615,9684.624unsloth
Q4_K_S3.75 GiB4,026,737,8244.642unsloth
Q4_K_M3.94 GiB4,230,975,9364.878lmstudio-community
Q4_K_M3.94 GiB4,230,976,3524.878ibm-granite
Q4_K_M3.96 GiB4,254,815,3924.905unsloth
Q4_14.09 GiB4,386,696,0325.057ibm-granite
Q4_14.10 GiB4,406,848,6725.081unsloth
Q5_K_S4.48 GiB4,810,453,8565.546ibm-granite
Q5_04.48 GiB4,810,453,8565.546ibm-granite
Q5_K_S4.50 GiB4,835,521,6965.575unsloth
Q5_K_M4.61 GiB4,948,534,1125.705ibm-granite
Q5_K_M4.63 GiB4,969,424,0325.729unsloth
Q5_14.87 GiB5,234,211,6806.035ibm-granite
Q6_K5.32 GiB5,710,938,8166.584lmstudio-community
Q6_K5.32 GiB5,710,939,2326.584ibm-granite
Q6_K5.33 GiB5,726,176,6726.602unsloth
Q8_06.88 GiB7,390,331,3288.520lmstudio-community
Q8_06.88 GiB7,390,331,7448.520ibm-granite
Q8_06.88 GiB7,390,332,0648.520unsloth
BF1612.94 GiB13,891,206,27216.015ibm-granite
BF1612.94 GiB13,891,206,33616.015unsloth

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 3.64 GiB. The real file is 3.94 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
64
Experts per token
6
use_sliding_window

Questions people ask

How much VRAM does granite-4.0-h-tiny need?
Q4_K_M is exactly 4,230,975,936 bytes (3.94 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-tiny'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.
Is granite-4.0-h-tiny a mixture-of-experts model?
Yes — 64 experts, 6 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of granite-4.0-h-tiny 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.
granite-4.0-h-tiny — VRAM requirements, exact quant sizes — ossmodeldb