Granite Code models
1 Granite Code model from IBM on Hugging Face, from 3.5B to 3.5B parameters, published by IBM in BF16, with a 2K-token context. The smallest official model, granite-3b-code-base-2k, needs about 7.8 GB of VRAM at its published precision; the cheapest live fit is RTX 4070 Super at $0.121/hr.
Part of the Granite series
Pick a size
One row per official Granite Code size: the VRAM it needs at each precision, the cheapest GPU that holds it today, and the KV cache for a 32K-token context.
| Model | Parameters | Native VRAM | FP8 VRAM | INT4 VRAM | Live GPU fit (native) | Est. $/hr | KV cache at 32K |
|---|---|---|---|---|---|---|---|
| granite-3b-code-base-2k | 3.5B | 7.8 GB | 3.9 GB | 1.9 GB | RTX 4070 Super | $0.121/hr | 10.0 GB |
VRAM is weights times a flat 1.2 overhead; the KV cache is a separate per-model figure at 16-bit, shown where the architecture is published. See the methodology.
Official models (1)
| Model | Parameters | Published as | VRAM needed | Live GPU fit | Est. $/hr |
|---|---|---|---|---|---|
| granite-3b-code-base-2k | 3.5B | BF16 | 7.8 GB | RTX 4070 Super | $0.121/hr |
VRAM is for the precision the model is published in: the weights times a flat 1.2 overhead, with the KV cache not included. See the methodology. The fit shown is the lowest-priced single GPU type that holds the model at that precision, or the lowest-priced multi-GPU set (up to 8) when none does.
More from IBM
- Granite 4 (19 models)
- Granite Speech (7 models)
- Granite 3 (9 models)