Model comparison

granite-4.0-h-350m vs SmolLM2-135M-Instruct

At Q4_K_M, SmolLM2-135M-Instruct is the smaller download — 105,454,144 bytes against 222,662,560. At long context the gap widens: granite-4.0-h-350m's KV cache at 32K is 5.6× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

granite-4.0-h-350mSmolLM2-135M-Instruct
Parameters340M135M
Architecturegranitehybridllama
Layers3230
Native context32,7688,192
Mixture of expertsnono
Quantizations published2941
Smallest quantization0.15 GiB0.08 GiB
Q4_K_M0.21 GiB0.10 GiB
Licenceapache-2.0apache-2.0

KV cache by context

the term that decides long-context viability
Contextgranite-4.0-h-350mSmolLM2-135M-InstructRatio
4,0960.02 GiB0.09 GiB5.62×
8,1920.03 GiB0.18 GiB5.62×
16,3840.06 GiB0.35 GiB5.62×
32,7680.13 GiB0.70 GiB5.62×
65,5360.25 GiB1.41 GiB5.62×
131,0720.50 GiB2.81 GiB5.62×