ibm-granite · text · mixture of experts

granite-3.1-1b-a400m-instruct

ibm-granite/granite-3.1-1b-a400m-instruct

granite-3.1-1b-a400m-instruct at Q4_K_M is exactly 821,847,360 bytes (0.77 GiB / 0.82 GB) — an effective 4.926 bits per weight, not the nominal 4. Its KV cache at 32K is 1.50 GiB.

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

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
Q2_K0.48 GiB512,238,9123.071bartowski
Q2_K_L0.49 GiB524,429,3443.143bartowski
IQ3_XS0.53 GiB567,780,6723.403bartowski
Q3_K_S0.56 GiB597,861,6963.584bartowski
IQ3_M0.57 GiB609,559,8723.654bartowski
Q3_K_M0.61 GiB658,580,8003.948bartowski
Q3_K_L0.66 GiB711,402,8164.264bartowski
IQ4_XS0.68 GiB728,212,8004.365bartowski
IQ4_NL0.72 GiB768,320,8324.606bartowski
Q4_00.72 GiB771,466,5604.624bartowski
Q4_K_S0.72 GiB774,874,4324.645bartowski
Q4_K_M0.77 GiB821,847,3604.926bartowski
Q4_K_L0.78 GiB834,037,7924.999bartowski
Q5_K_S0.86 GiB928,752,9605.567bartowski
Q5_K_M0.89 GiB956,327,2325.732bartowski
Q5_K_L0.90 GiB968,517,6645.806bartowski
Q6_K1.02 GiB1,099,212,0966.589bartowski
Q6_K_L1.04 GiB1,111,402,5286.662bartowski
Q8_01.32 GiB1,422,239,7768.525bartowski
F162.49 GiB2,672,669,21616.020bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.19 GiB0.19 GiB24 / 0 / 0
8,1920.38 GiB0.38 GiB24 / 0 / 0
16,3840.75 GiB0.75 GiB24 / 0 / 0
32,7681.50 GiB1.50 GiB24 / 0 / 0
65,5363.00 GiB3.00 GiB24 / 0 / 0
131,0726.00 GiB6.00 GiB24 / 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 0.70 GiB. The real file is 0.77 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

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

Questions people ask

How much VRAM does granite-3.1-1b-a400m-instruct need?
Q4_K_M is exactly 821,847,360 bytes (0.77 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-1b-a400m-instruct's KV cache?
1.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.
Is granite-3.1-1b-a400m-instruct a mixture-of-experts model?
Yes — 32 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-1b-a400m-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.