ibm-granite_granite-4.0-h-small GGUF size and VRAM requirements

⬇ 14,747 ❤ 3
Parameters32.21B
Context1,048,576

bartowski/ibm-granite_granite-4.0-h-small-GGUF is a very large language model with 32.21 billion parameters, built on the granitehybrid architecture. It has been downloaded 14,747 times.

ibm-granite_granite-4.0-h-small-GGUF is a Mixture-of-Experts model with 72 experts, of which 10 are active on each token. Routing only 10 of 72 experts makes it noticeably faster than a dense model of the same size — but every expert still has to be held in memory, so the numbers below are set by the full parameter count, not the active one. It is built from 40 transformer layers, a hidden size of 4,096, 32 attention heads. It uses grouped-query attention (32 query heads sharing 8 key/value heads), which already trims KV-cache memory compared with full multi-head attention.

To run bartowski/ibm-granite_granite-4.0-h-small-GGUF locally at a 4,096-token context, its quantized versions need between 9.01 GB (IQ2_XXS, lowest quality) and 61.45 GB (BF16, highest quality) of memory, weights plus KV cache and a system margin included. Context length drives that memory directly: at 4,096 tokens the KV cache for ibm-granite_granite-4.0-h-small-GGUF is about 0.62 GB, rising to roughly 160.0 GB at its full 1,048,576-token context. Shorter prompts free up memory for a higher-quality quantization.

For most users the best balance is Q5_K_L, needing about 23.07 GB. That means bartowski/ibm-granite_granite-4.0-h-small-GGUF fits entirely in the VRAM of a 10 GB GPU or larger, running fully on the GPU.

Available GGUF quantizations for bartowski/ibm-granite_granite-4.0-h-small-GGUF include IQ2_XXS, IQ2_XS, IQ2_S, IQ2_M, Q2_K, Q2_K_L, IQ3_XXS, IQ3_XS, Q3_K_S, IQ3_M, Q3_K_M, Q3_K_L, Q3_K_XL, IQ4_XS, IQ4_NL, Q4_0, Q4_K_S, Q4_K_M, Q4_K_L, Q4_1, Q5_K_S, Q5_K_M, Q5_K_L, Q6_K, Q6_K_L, Q8_0, BF16. The model supports a native context length of up to 1,048,576 tokens; a longer context grows the KV cache and the memory needed.

→ Guide: How much VRAM do you need?

GGUF file size and memory by quantization

Compare real GGUF weight sizes, estimated KV cache and total memory for Q4, Q5, Q8 and every quantization published in this repository.

Quant.Bits QualityWeights KVTotal Speed~Verdict
IQ2_XXS 2.02 Very low 7.59 GB 0.62 GB 9.01 GB 6.6 t/s Offload
IQ2_XS 2.31 Very low 8.65 GB 0.62 GB 10.08 GB 5.8 t/s Offload
IQ2_S 2.31 Very low 8.66 GB 0.62 GB 10.08 GB 5.8 t/s Offload
IQ2_M 2.6 Low 9.75 GB 0.62 GB 11.17 GB 5.1 t/s Offload
Q2_K 2.92 Low 10.93 GB 0.62 GB 12.36 GB 4.6 t/s Offload
Q2_K_L 2.94 Low 11.02 GB 0.62 GB 12.45 GB 4.5 t/s Offload
IQ3_XXS 3.26 Low 12.22 GB 0.62 GB 13.64 GB 4.1 t/s Offload
IQ3_XS 3.42 Fair 12.83 GB 0.62 GB 14.26 GB 3.9 t/s Offload
Q3_K_S 3.58 Fair 13.43 GB 0.62 GB 14.85 GB 3.7 t/s Offload
IQ3_M 3.73 Fair 13.99 GB 0.62 GB 15.41 GB 3.6 t/s Offload
Q3_K_M 3.73 Fair 13.99 GB 0.62 GB 15.42 GB 3.6 t/s Offload
Q3_K_L 3.87 Fair 14.5 GB 0.62 GB 15.93 GB 3.4 t/s Offload
Q3_K_XL 3.89 Fair 14.6 GB 0.62 GB 16.02 GB 3.4 t/s Offload
IQ4_XS 4.36 Good 16.35 GB 0.62 GB 17.78 GB 3.1 t/s Offload
IQ4_NL 4.6 Good 17.25 GB 0.62 GB 18.68 GB 2.9 t/s Offload
Q4_0 4.67 Good 17.51 GB 0.62 GB 18.94 GB 2.9 t/s Offload
Q4_K_S 4.74 Good 17.78 GB 0.62 GB 19.21 GB 2.8 t/s Offload
Q4_K_M 4.9 Good 18.39 GB 0.62 GB 19.82 GB 2.7 t/s Offload
Q4_K_L 4.93 Good 18.48 GB 0.62 GB 19.91 GB 2.7 t/s Offload
Q4_1 5.08 Very good 19.05 GB 0.62 GB 20.48 GB 2.6 t/s Offload
Q5_K_S 5.58 Very good 20.9 GB 0.62 GB 22.33 GB 2.4 t/s Offload
Q5_K_M 5.75 Very good 21.55 GB 0.62 GB 22.97 GB 2.3 t/s Offload
Q5_K_L 5.77 Very good 21.64 GB 0.62 GB 23.07 GB 2.3 t/s Offload
Q6_K 6.62 Excellent 24.82 GB 0.62 GB 26.25 GB Insufficient
Q6_K_L 6.65 Excellent 24.92 GB 0.62 GB 26.34 GB Insufficient
Q8_0 8.51 Excellent 31.91 GB 0.62 GB 33.34 GB Insufficient
BF16 16.01 Excellent 60.02 GB 0.62 GB 61.45 GB Insufficient

KV cache computed from the model's exact architecture. Speed is a rough estimate bounded by memory bandwidth.

Frequently asked questions

What kind of model is bartowski/ibm-granite_granite-4.0-h-small-GGUF?

bartowski/ibm-granite_granite-4.0-h-small-GGUF is a language model with 32.21 billion parameters, based on the granitehybrid architecture. It is distributed as GGUF files for local inference.

Is bartowski/ibm-granite_granite-4.0-h-small-GGUF a Mixture-of-Experts (MoE) model?

Yes. bartowski/ibm-granite_granite-4.0-h-small-GGUF is a Mixture-of-Experts model with 72 experts, of which 10 are activated per token. That makes it faster than a dense model of the same size, but all 72 experts must be loaded into memory, so the VRAM/RAM it needs is driven by the total parameter count, not the active one.

How much VRAM do you need to run bartowski/ibm-granite_granite-4.0-h-small-GGUF?

You need about 9.01 GB of VRAM to run bartowski/ibm-granite_granite-4.0-h-small-GGUF entirely on the GPU using the IQ2_XXS quantization (at a 4,096-token context). Smaller quantizations lower the requirement at the cost of quality.

Can I run bartowski/ibm-granite_granite-4.0-h-small-GGUF on an 8 GB GPU?

Partially. bartowski/ibm-granite_granite-4.0-h-small-GGUF only fits on an 8 GB GPU by offloading part of it to system RAM (with Q5_K_L), which runs but is slower.

Can I run bartowski/ibm-granite_granite-4.0-h-small-GGUF on a 16 GB GPU?

Yes. With 16 GB of VRAM you can run bartowski/ibm-granite_granite-4.0-h-small-GGUF fully on the GPU using Q3_K_L (about 15.93 GB).

Can I run bartowski/ibm-granite_granite-4.0-h-small-GGUF on a 24 GB GPU?

Yes. With 24 GB of VRAM you can run bartowski/ibm-granite_granite-4.0-h-small-GGUF fully on the GPU using Q5_K_L (about 23.07 GB).

What context length does bartowski/ibm-granite_granite-4.0-h-small-GGUF support?

bartowski/ibm-granite_granite-4.0-h-small-GGUF supports a native context length of up to 1,048,576 tokens. A longer context grows the KV cache, so it increases the memory needed to run the model.

What is the best quantization for bartowski/ibm-granite_granite-4.0-h-small-GGUF?

For bartowski/ibm-granite_granite-4.0-h-small-GGUF, a strong default is Q4_K_M, which needs about 19.82 GB and keeps most of the quality while roughly halving the memory versus 8-bit. With VRAM to spare, Q5_K_M or Q6_K add a little more quality; if you are tight on memory, a smaller quantization still runs. Pick the highest quantization that fits your VRAM.