ibm-granite · text · mixture of experts

granite-4.0-h-tiny-base

ibm-granite/granite-4.0-h-tiny-base

granite-4.0-h-tiny-base at Q4_K_M is exactly 4,230,969,888 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
Q2_K2.41 GiB2,585,979,9362.981ibm-granite
Q3_K_S2.85 GiB3,062,446,3683.531ibm-granite
Q3_K_M3.12 GiB3,353,032,9923.866ibm-granite
Q3_K_L3.35 GiB3,600,955,6804.152ibm-granite
Q4_03.69 GiB3,962,931,7444.569ibm-granite
Q4_K_S3.72 GiB3,995,765,2804.607ibm-granite
Q4_K_M3.94 GiB4,230,969,8884.878ibm-granite
Q4_14.09 GiB4,386,689,5685.057ibm-granite
Q5_04.48 GiB4,810,447,3925.546ibm-granite
Q5_K_S4.48 GiB4,810,447,3925.546ibm-granite
Q5_K_M4.61 GiB4,948,527,6485.705ibm-granite
Q5_14.87 GiB5,234,205,2166.035ibm-granite
Q6_K5.32 GiB5,710,932,7686.584ibm-granite
Q8_06.88 GiB7,390,325,2808.520ibm-granite
BF1612.94 GiB13,891,199,80816.015ibm-granite

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-base need?
Q4_K_M is exactly 4,230,969,888 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-base'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-base 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-base 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.