ibm-granite · text

granite-4.0-micro

ibm-granite/granite-4.0-micro

granite-4.0-micro at Q4_K_M is exactly 2,099,502,496 bytes (1.96 GiB / 2.10 GB) — an effective 4.936 bits per weight, not the nominal 4. Its KV cache at 32K is 2.50 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M1.16 GiB1,241,472,4162.919bartowski
Q2_K1.28 GiB1,371,438,4963.224bartowski
Q2_K1.28 GiB1,371,438,5283.224ibm-granite
IQ3_XXS1.29 GiB1,387,290,0163.261bartowski
Q2_K_L1.34 GiB1,433,656,7363.370bartowski
IQ3_XS1.40 GiB1,500,052,8963.527bartowski
Q3_K_S1.46 GiB1,566,817,6963.684bartowski
Q3_K_S1.46 GiB1,566,817,7283.684ibm-granite
IQ3_M1.51 GiB1,622,523,2963.814bartowski
Q3_K_M1.61 GiB1,725,578,6564.057bartowski
Q3_K_M1.61 GiB1,725,578,6884.057ibm-granite
Q3_K_L1.74 GiB1,864,187,2964.383bartowski
Q3_K_L1.74 GiB1,864,187,3284.383ibm-granite
IQ4_XS1.76 GiB1,894,497,6964.454bartowski
Q4_01.85 GiB1,984,609,7284.666ibm-granite
Q4_01.85 GiB1,991,163,2964.681bartowski
IQ4_NL1.85 GiB1,991,163,2964.681bartowski
Q4_K_S1.86 GiB1,998,372,2564.698bartowski
Q4_K_S1.86 GiB1,998,372,2884.698ibm-granite
Q4_K_M1.96 GiB2,099,502,4964.936bartowski
Q4_K_M1.96 GiB2,099,502,5284.936ibm-granite
Q4_K_L2.01 GiB2,161,720,7365.082bartowski
Q4_12.03 GiB2,181,217,6965.128bartowski
Q4_12.03 GiB2,181,217,7285.128ibm-granite
Q5_K_S2.21 GiB2,377,825,6965.590bartowski
Q5_K_S2.21 GiB2,377,825,7285.590ibm-granite
Q5_02.21 GiB2,377,825,7285.590ibm-granite
Q5_K_M2.27 GiB2,437,012,8965.729bartowski
Q5_K_M2.27 GiB2,437,012,9285.729ibm-granite
Q5_K_L2.33 GiB2,499,231,1365.876bartowski
Q5_12.40 GiB2,574,433,7286.052ibm-granite
Q6_K2.60 GiB2,795,617,6966.572bartowski
Q6_K2.60 GiB2,795,617,7286.572ibm-granite
Q6_K_L2.66 GiB2,857,835,9366.719bartowski
Q8_03.37 GiB3,619,691,9368.510bartowski
Q8_03.37 GiB3,619,691,9688.510ibm-granite
BF166.34 GiB6,809,656,44816.009bartowski
BF166.34 GiB6,809,656,76816.009ibm-granite

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.31 GiB0.31 GiB40 / 0 / 0
8,1920.63 GiB0.63 GiB40 / 0 / 0
16,3841.25 GiB1.25 GiB40 / 0 / 0
32,7682.50 GiB2.50 GiB40 / 0 / 0
65,5365.00 GiB5.00 GiB40 / 0 / 0
131,07210.00 GiB10.00 GiB40 / 0 / 0

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

Architecture

from config.json
Layers
40
Attention heads
40
KV heads
8
Head dim
64
Hidden size
2560
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-micro need?
Q4_K_M is exactly 2,099,502,496 bytes (1.96 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-micro's KV cache?
2.50 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-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.