ibm-granite · text

granite-3.1-2b-instruct

ibm-granite/granite-3.1-2b-instruct

granite-3.1-2b-instruct at Q4_K_M is exactly 1,530,551,136 bytes (1.43 GiB / 1.53 GB) — an effective 4.833 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
2.5B
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
TQ1_00.56 GiB598,137,4401.889Mungert
TQ2_00.66 GiB712,170,0802.249Mungert
IQ2_M0.83 GiB888,525,5682.806bartowski
Q2_K0.91 GiB978,245,1843.089bartowski
Q2_K_L0.93 GiB1,002,626,0483.166bartowski
IQ3_XXS0.97 GiB1,045,551,1363.301Mungert
IQ3_XS1.00 GiB1,074,386,9763.393Mungert
IQ3_XS1.00 GiB1,078,842,9443.407bartowski
Q3_K_S1.05 GiB1,130,288,7043.569bartowski
IQ3_M1.09 GiB1,169,282,6243.692bartowski
IQ3_S1.11 GiB1,197,201,4403.780Mungert
IQ3_M1.11 GiB1,197,201,4403.780Mungert
Q3_K_S1.15 GiB1,229,707,2963.883Mungert
Q3_K_M1.16 GiB1,243,077,4723.925Mungert
Q3_K_M1.17 GiB1,251,726,9123.953bartowski
Q3_K_L1.26 GiB1,357,370,9444.286bartowski
IQ4_XS1.29 GiB1,383,913,0244.370bartowski
IQ4_XS1.29 GiB1,383,914,3364.370Mungert
Q4_01.33 GiB1,427,428,6404.507Mungert
IQ4_NL1.36 GiB1,458,624,0644.606bartowski
Q4_01.36 GiB1,458,624,0644.606bartowski
IQ4_NL1.36 GiB1,458,625,3764.606Mungert
Q4_K_S1.36 GiB1,464,391,2324.624bartowski
Q4_K_S1.38 GiB1,477,499,7444.665Mungert
Q4_K_M1.43 GiB1,530,551,1364.833Mungert
Q4_K_M1.44 GiB1,545,295,4244.880bartowski
Q4_K_L1.46 GiB1,569,676,2884.957bartowski
Q4_11.48 GiB1,585,764,0005.007Mungert
Q5_01.62 GiB1,744,099,3605.507Mungert
Q5_K_S1.64 GiB1,757,468,2245.550bartowski
Q5_K_S1.66 GiB1,780,865,8885.623Mungert
Q5_K_M1.68 GiB1,804,817,9845.699bartowski
Q5_K_M1.69 GiB1,809,275,7445.713Mungert
Q5_K_L1.70 GiB1,829,198,8485.776bartowski
Q5_11.77 GiB1,902,434,7206.007Mungert
Q6_K1.94 GiB2,080,560,7046.570bartowski
Q6_K_M1.94 GiB2,080,562,0166.570Mungert
Q6_K_L1.96 GiB2,104,941,5686.647bartowski
Q8_02.51 GiB2,694,110,2088.507bartowski
Q4_K2 shards3.10 GiB3,328,109,88810.509Mungert

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.33 GiB. The real file is 1.43 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
49,155
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window

Questions people ask

How much VRAM does granite-3.1-2b-instruct need?
Q4_K_M is exactly 1,530,551,136 bytes (1.43 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-3.1-2b-instruct'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-3.1-2b-instruct 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.