LLMs · IBM
Granite Code 20B Instruct
- Parameters
- 20B
- Architecture
- Dense
- Max context
- 8K tokens
- License
- apache-2.0
- Released
- 2024-04
How to run it
- Install PocketPal AI (free) and open it.
- Tap the menu (☰), then Models, then + and Add from Hugging Face.
- Search for
ibm-granite/granite-20b-code-instruct-8k-GGUF, open it and downloadgranite-20b-code-instruct.Q4_K_M.gguf. - Tap Load next to the model and start a chat. It runs on the device, with no connection needed from then on.
- Install PocketPal AI (free) and open it.
- Tap the menu (☰), then Models, then + and Add from Hugging Face.
- Search for
ibm-granite/granite-20b-code-instruct-8k-GGUF, open it and downloadgranite-20b-code-instruct.Q4_K_M.gguf. - Tap Load next to the model and start a chat. It runs on the device, with no connection needed from then on.
On a mobile device
Granite Code 20B Instruct is too big for a device like yours: it needs more memory than the device has. Models that run on mobile devices.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run granite-code:20bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/ibm-granite/granite-20b-code-instruct-8k-GGUF (opens in a new tab)
ollama run hf.co/ibm-granite/granite-20b-code-instruct-8k-GGUFOriginal weights · Hugging Face
Full-precision files from IBM, for fine-tuning, vLLM, Transformers.
huggingface.co/ibm-granite/granite-20b-code-instruct-8k (opens in a new tab)
Apps that run Granite Code 20B Instruct
Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or device in the Model Finder for an exact answer.
| App | Type | Opens it as | Systems | Engine | Start |
|---|---|---|---|---|---|
| LM Studio | Desktop app | GGUF | macOSWindowsLinux | Open in LM Studio | |
| Ollama | CLI + API | Ollama library | macOSWindowsLinux |
|
|
| llama.cpp | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Jan | Desktop app | GGUF | macOSWindowsLinux | Open in Jan | |
| vLLM | Server | Original weights | WSLWindowsLinux |
|
|
| SGLang | Server | Original weights | WSLWindowsLinux |
|
|
| Docker Model Runner | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Lemonade | Desktop app | GGUF | macOSWindowsLinux |
|
|
| Unsloth Desktop | Desktop app | GGUF | macOSWindowsLinux | Open in Unsloth Desktop | |
| Atomic Chat | Desktop app | GGUF | macOSWindowsLinux | Open in Atomic Chat | |
| Pi | Coding agent | GGUF | macOSWindowsLinux | ||
| Hermes Agent | Assistant | GGUF | macOSWSLWindowsLinux | ||
| OpenClaw | Assistant | GGUF | macOSWSLWindowsLinux | ||
| OpenCode | Coding agent | GGUF | macOSWindowsLinux | ||
| Codex CLI | Coding agent | GGUF | macOSWSLWindowsLinux | ||
| OpenHands | Coding agent | GGUF | macOSWSLWindowsLinux | ||
| Zed | Coding agent | GGUF | macOSWindowsLinux | ||
| Cline | Coding agent | GGUF | macOSWindowsLinux | ||
| Open Interpreter | Coding agent | GGUF | macOSWindowsLinux | ||
| Goose | Coding agent | GGUF | macOSWindowsLinux | ||
| Aider | Coding agent | GGUF | macOSWindowsLinux | ||
| Crush | Coding agent | GGUF | macOSWindowsLinux | ||
| Qwen Code | Coding agent | GGUF | macOSWindowsLinux | ||
| Kilo Code | Coding agent | GGUF | macOSWindowsLinux | ||
| Open WebUI | Assistant | GGUF | macOSWindowsLinux | ||
| Khoj | Assistant | GGUF | macOSWindowsLinux | ||
| Letta | Assistant | GGUF | macOSWindowsLinux | ||
| GPT4All | Desktop app | GGUF | macOSWindowsLinux | Get GPT4All | |
| KoboldCpp | Desktop app | GGUF | macOSWindowsLinux | Get KoboldCpp | |
| Text Generation WebUI | Desktop app | GGUF | macOSWindowsLinux | Get Text Generation WebUI | |
| llamafile | CLI + API | GGUF | macOSWindowsLinux | Get llamafile | |
| Msty Studio | Desktop app | GGUF | macOSWindowsLinux | Open in Msty Studio | |
| Llama (macOS) | Desktop app | GGUF | macOS | Open in Llama (macOS) | |
| RecurseChat | Desktop app | GGUF | macOS | Open in RecurseChat | |
| node-llama-cpp | Library | GGUF | macOSWindowsLinux | Get node-llama-cpp | |
| Continue | Coding agent | GGUF | macOSWindowsLinux | ||
| SillyTavern | Assistant | GGUF | macOSWindowsLinux | ||
| LibreChat | Assistant | GGUF | macOSWindowsLinux | ||
| Cherry Studio | Assistant | GGUF | macOSWindowsLinux | ||
| Chatbox | Assistant | GGUF | macOSWindowsLinux | ||
| PrivateGPT | Assistant | GGUF | macOSWindowsLinux | ||
| PocketPal AI | Mobile app | GGUF | iOSAndroid | App Store Google Play | |
| ChatterUI | Mobile app | GGUF | Android | Download the APK | |
| LLM Farm | Mobile app | GGUF | iOS |
Memory needed
Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps. Try another context length.
| Quantization | Quality | Weights | Total at 8K context | Download |
|---|---|---|---|---|
Q2_K |
Low | 8.0 GB | 8.8 GB | |
Q3_K_M |
Low | 9.8 GB | 10.7 GB | |
Q4_K_M |
Good | 12.2 GB | 13.1 GB | GGUF (opens in a new tab) |
Q5_K_M |
High | 14.2 GB | 15.1 GB | |
Q6_K |
High | 16.5 GB | 17.3 GB | |
Q8_0 |
Very high | 21.3 GB | 22.1 GB | |
F16 |
Full | 40.1 GB | 41.0 GB | Original weights (opens in a new tab) |
Best hardware for Granite Code 20B Instruct
The least expensive GPU in our catalog that runs it without offloading is the Intel Arc B570 (launch price $219) at Q2_K.
| Quality | Hardware | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 36Basic quality (D) · 36 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5090 |
Q8_0 | 23.7 GB / 32.0 GB | 55.8 tok/s | Runs great |
| 35Basic quality (D) · 35 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 71/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4090 |
Q6_K | 18.5 GB / 24.0 GB | 42.8 tok/s | Runs great |
| 35Basic quality (D) · 35 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 70/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 3090 |
Q6_K | 18.5 GB / 24.0 GB | 39.7 tok/s | Runs great |
| 34Basic quality (D) · 34 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 70/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 7900 XTX |
Q5_K_M | 16.3 GB / 24.0 GB | 41.8 tok/s | Runs great |
| 34Basic quality (D) · 34 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5070 Ti |
Q5_K_M | 15.9 GB / 16.0 GB | 45.3 tok/s | Runs welltight fit |
| 34Basic quality (D) · 34 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5080 |
Q5_K_M | 15.9 GB / 16.0 GB | 48.5 tok/s | Runs welltight fit |
| 34Basic quality (D) · 34 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4070 Ti SUPER |
Q4_K_M | 13.9 GB / 16.0 GB | 41.1 tok/s | Runs welltight fit |
| 34Basic quality (D) · 34 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4080 SUPER |
Q4_K_M | 13.9 GB / 16.0 GB | 45.0 tok/s | Runs welltight fit |
| 30Basic quality (D) · 30 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 9070 XT |
Q3_K_M | 11.5 GB / 16.0 GB | 43.6 tok/s | Runs great |
| 30Basic quality (D) · 30 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 67/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5060 Ti 16GB |
Q3_K_M | 11.5 GB / 16.0 GB | 35.4 tok/s | Runs great |
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.









