on

Can the AMD Radeon RX 7900 XTX run Granite Code 20B Instruct?

70 ptsGood (B) · 70 of 100 points: Model quality 15.7/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15

Yes, it runs well

Runs well. At Q5_K_M it needs about 16.3 GB of 24.0 GB usable, with an estimated speed of 41.8 tok/s.

Best quant
Q5_K_M
Generation speed
41.8 tok/s
Prompt processing
3,794 tok/s
First token (1K prompt)
0.3 s
Largest safe context
8K

Download Granite Code 20B Instruct

Recommended for the AMD Radeon RX 7900 XTX: Q5_K_M. 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-q5_K_M

Get Ollama at ollama.com/download (opens in a new tab) · model page (opens in a new tab)

Quantized 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-GGUF

Original 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)

No sign-in needed.

How the B grade is scored

Every result gets up to 100 points from four parts. The points decide the letter grade.

Model qualityEditorial quality tier of the model, scaled by the quantization or precision used.15.7 / 45
Memory fitFull marks when everything sits in GPU or unified memory; fewer when part spills to system RAM.25.0 / 25
SpeedGeneration speed against a 40 tokens/s target for LLMs, or render time against a target for image and video.15.0 / 15
Memory useRewards using the memory you have, so a bigger, better variant beats a tiny one that leaves most memory idle.15.0 / 15
Total70.7 / 10070 ptsGood (B) · 70 of 100 points: Model quality 15.7/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15

Grade scale: S 85+ · A 72+ · B 58+ · C 42+ · D 25+ · F under 25 points.

Every quantization on the AMD Radeon RX 7900 XTX

Quant Memory needed Available Speed Fit Grade · points Download
Q2_K 10.0 GB 24.0 GB 83.0 tok/s Runs well 60 ptsGood (B) · 60 of 100 points: Model quality 11.3/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 9.7/15
Q3_K_M 11.9 GB 24.0 GB 65.4 tok/s Runs well 65 ptsGood (B) · 65 of 100 points: Model quality 13.6/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 11.4/15
Q4_K_M 14.3 GB 24.0 GB 50.6 tok/s Runs well 69 ptsGood (B) · 69 of 100 points: Model quality 15.4/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 13.7/15 GGUF (opens in a new tab)
Q5_K_M 16.3 GB 24.0 GB 41.8 tok/s Runs well 70 ptsGood (B) · 70 of 100 points: Model quality 15.7/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15
Q6_K 18.5 GB 24.0 GB 35.1 tok/s Runs well 70 ptsGood (B) · 70 of 100 points: Model quality 16.0/45, Memory fit 25.0/25, Speed 14.0/15, Memory use 15.0/15
Q8_0 23.3 GB 24.0 GB 25.7 tok/s Tight fit 67 ptsGood (B) · 67 of 100 points: Model quality 16.2/45, Memory fit 24.0/25, Speed 12.0/15, Memory use 15.0/15
F16 42.2 GB 24.0 GB 1.9 tok/s Heavy offload 38 ptsPoor (D) · 38 of 100 points: Model quality 16.2/45, Memory fit 4.0/25, Speed 3.3/15, Memory use 15.0/15 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

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.