Granite Code 20B Instruct on Apple M2 Pro (16 GB)
Can the Apple M2 Pro (16 GB) run Granite Code 20B Instruct?
Yes, it runs well (tight fit)
Runs well (tight fit). At Q2_K it needs about 9.7 GB of 10.7 GB usable, with an estimated speed of 17.3 tok/s.
- Best quant
Q2_K- Generation speed
- 17.3 tok/s
- Prompt processing
- 210 tok/s
- First token (1K prompt)
- 4.9 s
- Largest safe context
- 8K
Best app to run it on the Apple M2 Pro (16 GB)
On macOS
- One command with Ollama’s own build of this model.
- Serves an OpenAI-compatible API that other apps and coding tools can use.
ollama run granite-code:20b-instruct-8k-q2_KDownload Granite Code 20B Instruct
Recommended for the Apple M2 Pro (16 GB): Q2_K. Every other quantization has its own download link in the table below.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run granite-code:20b-instruct-8k-q2_KQuantized 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)
How it’s rated
Match score
To order lists, each result also gets a match score out of 100 from four parts. It favors the most capable model that still runs well.
| Model quality | 11.3 / 45 | |
|---|---|---|
| Memory fit | 24.0 / 25 | |
| Speed | 9.9 / 15 | |
| Memory use | 15.0 / 15 | |
| Match score | 60.2 / 100 |
Every quantization on the Apple M2 Pro (16 GB)
| Quant | Memory needed | Available | Speed | Runs | Quality | Download |
|---|---|---|---|---|---|---|
Q2_K | 9.7 GB | 10.7 GB | 17.3 tok/s | Runs welltight fit | 25Basic quality (D) · 25 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 60/100 (quality, fit, speed and memory use) sets the ranking. | |
Q3_K_M | 11.5 GB | 10.7 GB | 11.6 tok/s | Runs wellover GPU memory limit | 30Basic quality (D) · 30 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 46/100 (quality, fit, speed and memory use) sets the ranking. | |
Q4_K_M | 13.9 GB | 10.7 GB | — | Won't run | 34Basic quality (D) · 34 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 4/100 (quality, fit, speed and memory use) sets the ranking. | GGUF (opens in a new tab) |
Q5_K_M | 15.9 GB | 10.7 GB | — | Won't run | 34Basic quality (D) · 34 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 4/100 (quality, fit, speed and memory use) sets the ranking. | |
Q6_K | 18.1 GB | 10.7 GB | — | Won't run | 35Basic quality (D) · 35 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 4/100 (quality, fit, speed and memory use) sets the ranking. | |
Q8_0 | 22.9 GB | 10.7 GB | — | Won't run | 36Basic quality (D) · 36 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 4/100 (quality, fit, speed and memory use) sets the ranking. | |
F16 | 41.8 GB | 10.7 GB | — | Won't run | 36Basic quality (D) · 36 of 100: how capable the model is at F16, whatever it runs on. Match score 4/100 (quality, fit, speed and memory use) sets the ranking. | Original weights (opens in a new tab) |
Memory figures assume 8K of context. Longer conversations or documents grow the KV cache.
Other hardware that runs it
-
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
-
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
-
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
-
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
-
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
-
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
Quick answers
How much memory does Granite Code 20B Instruct need on the M2 Pro 16GB?
At Q2_K it needs about 9.7 GB. The M2 Pro 16GB has 10.7 GB usable.
How fast is Granite Code 20B Instruct on the M2 Pro 16GB?
About 17.3 tok/s at Q2_K, an estimate from the hardware’s memory bandwidth and the size of the model.
Which quantization of Granite Code 20B Instruct should I use on the M2 Pro 16GB?
Q2_K. Of the versions that fit, it is the one that runs best; when two run equally well, the check prefers the higher-rated one.
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.