whatmodel.sh / Granite 20B Code Base (8K)
Granite 20B Code Base (8K)
↗ share
+ contribute
Granite 20B Code Base (8K) is an open-weights language model from IBM, released April 2024. Its published size is 20.07B parameters. Licence: apache-2.0.
Catalogue identity notes
Comparison-only. Maker repo ibm-granite/granite-20b-code-base-8k @8bbfb1d: licence tag apache-2.0. 20,066,993,152 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-04: month the maker's Hugging Face repo was created (createdAt 2024-04-21). May 2024 Granite Code release; not r1.1.
$ how it compares
The LLMs ranked either side of Granite 20B Code Base (8K), out of 828 with a score, then more from IBM.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 668 | 37±1 | local | |||
| 669 | 37±1 | local | |||
| 670 | 37±1 | local | |||
| 671 | 37±1 | local | |||
| 672 | 37±1 | local | |||
| more from IBM | |||||
| 192 | 63±1 | api $0.28/M +local | |||
| 239 | 60±1 | api $0.11/M +local | |||
| 276 | 57±1 | api $0.052/M +local | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #396 of 458 · 85% of its score · 6 tests
Beats DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B, DeepSeek R1 Distill Llama 8B here, though they rank higher overall. Trails Qwen2.5 1.5B Instruct, WizardLM 13B V1.2, EXAONE 3.5 2.4B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEvalSynthesize (HumanEvalPack, 6-language average) lab | 44.3% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 25/35 | 25% |
| HumanEvalExplain (HumanEvalPack, 6-language average) lab | 18.8% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 15/35 | 14% |
| MBPP lab | 43.8% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 10/15 | 14% |
| HumanEvalFix (HumanEvalPack, 6-language average) lab | 17.7% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 17/35 | 12% |
| CRUXEval-I lab | 39.1% ✎ | ▃▅█▃▃▅·▃▃▅·▅ beats 10/15 | 11% |
| CRUXEval-O lab | 37.5% ✎ | ▃·▃██▅▃·▃▃▅▃ beats 10/15 | 8.9% |
other tests1 not in a task · 15% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BigCodeBench (Complete) | 25.8% ✎ | ▂▁▃▄▂▅▇█▆▂▂▂ beats 5/58 | 15% |
$ where to run it
llama.cpp · recommended
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run Granite 20B Code Base (8K) · needs ~12.82 GB · from huggingface.co/ibm-granitechat in the terminal
llama cli -hf ibm-granite/granite-20b-code-base-8k-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf ibm-granite/granite-20b-code-base-8k-GGUF:Q4_K_M
LM Studio
- Install LM Studio · Open the app once before using the lms command.
- Run Granite 20B Code Base (8K) · needs ~12.82 GB · from huggingface.co/ibm-granite
- Or download it in the terminal
lms get https://huggingface.co/ibm-granite/granite-20b-code-base-8k-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Granite 20B Code Base (8K) · needs ~12.82 GB · from huggingface.co/ibm-granitechat in the terminal
ollama run hf.co/ibm-granite/granite-20b-code-base-8k-GGUF:Q4_K_M
Weights and documentation: huggingface.co/ibm-granite ↗
$ how the score was worked out · Granite Code Models: A Family… 85%, BigCodeBench paper (Zhuo et a… 15%
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
| source | results | share of the score |
|---|---|---|
| 6 | 85% | |
| 1 | 15% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 37.0 |
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json