ibm-granite · text · mixture of experts

granite-3.1-3b-a800m-instruct

ibm-granite/granite-3.1-3b-a800m-instruct

granite-3.1-3b-a800m-instruct at Q4_K_M is exactly 2,016,888,096 bytes (1.88 GiB / 2.02 GB) — an effective 4.891 bits per weight, not the nominal 4. Its KV cache at 32K is 2.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
3.3B
total, not active
Architecture
granitemoe
32 layers
Context
131,072
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K1.16 GiB1,241,368,1283.010bartowski
Q2_K_L1.17 GiB1,259,653,7603.055bartowski
IQ3_XS1.29 GiB1,380,566,5923.348bartowski
Q3_K_S1.36 GiB1,456,064,0643.531bartowski
IQ3_M1.38 GiB1,486,145,0883.604bartowski
Q3_K_M1.50 GiB1,611,187,7763.907bartowski
Q3_K_L1.62 GiB1,741,538,5924.223lmstudio-community
Q3_K_L1.62 GiB1,741,538,8804.223bartowski
IQ4_XS1.66 GiB1,783,219,7764.324bartowski
IQ4_NL1.75 GiB1,883,883,0724.569bartowski
Q4_01.76 GiB1,891,747,3924.588bartowski
Q4_K_S1.77 GiB1,900,004,9284.608bartowski
Q4_K_M1.88 GiB2,016,888,0964.891lmstudio-community
Q4_K_M1.88 GiB2,016,888,3844.891bartowski
Q4_K_L1.90 GiB2,035,174,0164.936bartowski
Q5_K_S2.13 GiB2,286,536,2565.545bartowski
Q5_K_M2.19 GiB2,355,054,1445.711bartowski
Q5_K_L2.21 GiB2,373,339,7765.756bartowski
Q6_K2.53 GiB2,714,354,9766.583lmstudio-community
Q6_K2.53 GiB2,714,355,2646.583bartowski
Q6_K_L2.54 GiB2,732,640,8966.627bartowski
Q8_03.27 GiB3,512,781,1528.519lmstudio-community
Q8_03.27 GiB3,512,781,4408.519bartowski
F166.15 GiB6,603,463,23216.014bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.25 GiB0.25 GiB32 / 0 / 0
8,1920.50 GiB0.50 GiB32 / 0 / 0
16,3841.00 GiB1.00 GiB32 / 0 / 0
32,7682.00 GiB2.00 GiB32 / 0 / 0
65,5364.00 GiB4.00 GiB32 / 0 / 0
131,0728.00 GiB8.00 GiB32 / 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.73 GiB. The real file is 1.88 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
24
KV heads
8
Head dim
64
Hidden size
1536
Vocab
49,155
Sliding window
none
SWA period
MLA
no
Experts
40
Experts per token
8
use_sliding_window

Questions people ask

How much VRAM does granite-3.1-3b-a800m-instruct need?
Q4_K_M is exactly 2,016,888,096 bytes (1.88 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-3b-a800m-instruct's KV cache?
2.00 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-3.1-3b-a800m-instruct a mixture-of-experts model?
Yes — 40 experts, 8 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-3.1-3b-a800m-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.