IBM
Granite Code 20B (20B parameters) requires approximately 17.2 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 20 GB of VRAM.
Get started
— copy & paste to run locallyCopy-paste commands to run Granite Code 20B on your machine.
Run
ollama run granite-code:20bQuick specs
About this model
Related models
Quick picks
Best hardware
Run this model
Quantization options
No hardware detected — fit column shows raw VRAM estimates
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 7.8 GB | Low | — |
Q3_K_S | 3 | 9.8 GB | Low | — |
NVFP4 | 4 | 11.2 GB | Medium | — |
Q4_K_M | 4 | 12.2 GB | Medium | — |
Q5_K_M | 5 | 14.4 GB | High | — |
Q6_K | 6 | 16.4 GB | High | — |
Q8_0 | 8 | 21.4 GB | Very High | — |
F16 | 16 | 41.0 GB | Maximum | — |
Quality benchmarks
Coding
Source: official · 2024-05-07
Hardware compatibility
Computing compatibility...
Memory breakdown
Frequently asked questions
Granite Code 20B (20B parameters) requires approximately 17.2 GB of VRAM with Q4_K_M quantization. Lower quantizations like Q4_K_M use less memory but may reduce quality.
Yes, Intel Arc Pro B60 24GB can run Granite Code 20B with a compatibility score of 82/100. It provides 24 GB of memory and achieves approximately 21.8 tokens per second.
The recommended quantization for Granite Code 20B is Q4_K_M, which offers the best balance between model quality and memory efficiency. Higher quantizations preserve more quality but require more VRAM.
The top recommended hardware for Granite Code 20B: RTX 4090 24GB (score: 86/100), RTX 5090 Laptop 24GB (score: 85/100), NVIDIA A30 24GB (score: 85/100). These provide the best combination of memory, bandwidth, and compute for running this model locally.
Yes, Granite Code 20B is well-suited for code. It was designed with these use cases in mind.
See also