ibm-granite · text

granite-4.0-h-350m

ibm-granite/granite-4.0-h-350m

granite-4.0-h-350m at Q4_K_M is exactly 222,662,560 bytes (0.21 GiB / 0.22 GB) — an effective 5.234 bits per weight, not the nominal 4. Its KV cache at 32K is 0.13 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
340M
Architecture
granitehybrid
32 layers
Context
32,768
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-IQ3_XXS0.15 GiB159,734,9443.755unsloth
Q2_K0.15 GiB159,883,9363.758ibm-granite
Q3_K_S0.17 GiB181,154,8484.258ibm-granite
Q3_K_S0.17 GiB181,155,2324.258unsloth
Q3_K_M0.18 GiB188,699,6804.436ibm-granite
Q3_K_M0.18 GiB188,700,0644.436unsloth
Q3_K_L0.18 GiB194,941,9844.582ibm-granite
IQ4_XS0.19 GiB207,857,4404.886unsloth
Q4_00.20 GiB216,073,1205.079ibm-granite
IQ4_NL0.20 GiB216,073,5045.079unsloth
Q4_00.20 GiB216,466,7205.088unsloth
Q4_K_S0.20 GiB216,957,8565.100ibm-granite
Q4_K_S0.20 GiB216,958,2405.100unsloth
Q4_K_M0.21 GiB222,662,5605.234ibm-granite
Q4_K_M0.21 GiB222,662,9445.234unsloth
Q4_10.22 GiB232,505,2485.465ibm-granite
Q4_10.22 GiB232,505,6325.465unsloth
Q5_00.23 GiB248,937,3765.852ibm-granite
Q5_K_S0.23 GiB248,937,3765.852ibm-granite
Q5_K_S0.23 GiB248,937,7605.852unsloth
Q5_K_M0.24 GiB252,331,9365.931ibm-granite
Q5_K_M0.24 GiB252,332,3205.931unsloth
Q5_10.25 GiB265,369,5046.238ibm-granite
Q6_K0.26 GiB283,855,6486.672ibm-granite
Q6_K0.26 GiB283,856,0326.672unsloth
Q8_00.34 GiB366,195,6168.608ibm-granite
Q8_00.34 GiB366,196,0008.608unsloth
BF160.64 GiB684,931,20016.100ibm-granite
BF160.64 GiB684,931,29616.100unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.02 GiB0.13 GiB7.99×4 / 0 / 28
8,1920.03 GiB0.25 GiB7.99×4 / 0 / 28
16,3840.06 GiB0.50 GiB8.00×4 / 0 / 28
32,7680.13 GiB1.00 GiB8.00×4 / 0 / 28
65,5360.25 GiB2.00 GiB8.00×4 / 0 / 28
131,0720.50 GiB4.00 GiB8.00×4 / 0 / 28

28 of 32 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 8.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 0.18 GiB. The real file is 0.21 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
32
Attention heads
12
KV heads
4
Head dim
64
Hidden size
768
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-h-350m need?
Q4_K_M is exactly 222,662,560 bytes (0.21 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-350m's KV cache?
0.13 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-h-350m 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.