LLMs · IBM
Granite Code 34B Instruct
- Parameters
- 34B
- 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-34b-code-instruct-8k-GGUF, open it and downloadgranite-34b-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 34B 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:34bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/ibm-granite/granite-34b-code-instruct-8k-GGUF (opens in a new tab)
ollama run hf.co/ibm-granite/granite-34b-code-instruct-8k-GGUFOriginal weights · Hugging Face
Full-precision files from IBM, for fine-tuning, vLLM, Transformers.
huggingface.co/ibm-granite/granite-34b-code-instruct-8k (opens in a new tab)
Apps that run Granite Code 34B 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 | 13.5 GB | 14.5 GB | |
Q3_K_M |
Low | 16.5 GB | 17.5 GB | |
Q4_K_M |
Good | 20.6 GB | 21.5 GB | GGUF (opens in a new tab) |
Q5_K_M |
High | 23.9 GB | 24.9 GB | |
Q6_K |
High | 27.7 GB | 28.6 GB | |
Q8_0 |
Very high | 35.7 GB | 36.7 GB | |
F16 |
Full | 67.4 GB | 68.4 GB | Original weights (opens in a new tab) |
Best hardware for Granite Code 34B Instruct
The least expensive GPU in our catalog that runs it without offloading is the AMD Radeon RX 7600 XT (launch price $329) at Q2_K.
| Quality | Hardware | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 38Basic quality (D) · 38 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 72/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5090 |
Q5_K_M | 26.5 GB / 32.0 GB | 53.9 tok/s | Runs great |
| 38Basic quality (D) · 38 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 70/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4090 |
Q4_K_M | 22.7 GB / 24.0 GB | 36.7 tok/s | Runs welltight fit |
| 33Basic quality (D) · 33 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 70/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 3090 |
Q3_K_M | 18.7 GB / 24.0 GB | 44.1 tok/s | Runs great |
| 33Basic quality (D) · 33 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 69/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 7900 XTX |
Q3_K_M | 18.7 GB / 24.0 GB | 38.9 tok/s | Runs great |
| 28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 66/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4070 Ti SUPER |
Q2_K | 15.3 GB / 16.0 GB | 40.2 tok/s | Runs welltight fit |
| 28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 66/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 4080 SUPER |
Q2_K | 15.3 GB / 16.0 GB | 44.0 tok/s | Runs welltight fit |
| 28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 66/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5070 Ti |
Q2_K | 15.3 GB / 16.0 GB | 53.6 tok/s | Runs welltight fit |
| 28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 66/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5080 |
Q2_K | 15.3 GB / 16.0 GB | 57.4 tok/s | Runs welltight fit |
| 39Basic quality (D) · 39 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 65/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA RTX PRO 6000 Blackwell |
Q6_K | 33.4 GB / 96.0 GB | 45.3 tok/s | Runs great |
| 28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 65/100 (quality, fit, speed and memory use) sets the ranking. | AMD Radeon RX 9070 XT |
Q2_K | 15.3 GB / 16.0 GB | 32.9 tok/s | Runs welltight fit |
Run it on a cluster
Devices that can’t run Granite Code 34B Instruct alone can run it together. These example clusters do:
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.









