whatmodel.sh / Granite 8B Code Instruct (4K)
Granite 8B Code Instruct (4K)
↗ share
+ contribute
Granite 8B Code Instruct (4K) is an open-weights language model from IBM, released April 2024. Its published size is 8.05B parameters. Licence: apache-2.0.
Catalogue identity notes
Comparison-only. Maker repo ibm-granite/granite-8b-code-instruct-4k @b996987: licence tag apache-2.0. 8,054,910,976 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-26). May 2024 Granite Code release; not the 128K variant.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Granite 8B Code Instruct (4K), out of 897 with a score, then more from IBM.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 576 | 45±1 | local | |||
| 577 | 45±2 | local | |||
| 578 | 45±1 | local | |||
| 579 | 45±1 | local | |||
| 580 | 45±1 | local | |||
| more from IBM | |||||
| 213 | 62±1 | api $0.28/M +local | |||
| 264 | 59±1 | api $0.11/M +local | |||
| 302 | 57±1 | api $0.052/M +local | |||
$ what it's good at
coding▁▁▁▃▆▇█▆▆▃▃▁ #336 of 474 · 76% of its score · 3 tests
Beats Solar Open 100B (102B-A12B), Qwen3 4B Instruct 2507, Qwen3-VL 8B Instruct here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, WizardLM 70B V1.0, Llama 3.2 11B Vision Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEvalSynthesize (HumanEvalPack, 6-language average) lab | 49.6% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 29/35 | 32% |
| HumanEvalExplain (HumanEvalPack, 6-language average) lab | 40.9% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 31/35 | 22% |
| HumanEvalFix (HumanEvalPack, 6-language average) lab | 40.4% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 29/35 | 22% |
other tests2 not in a task · 24% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BigCodeBench (Complete) | 39.2% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 26/58 | 21% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 45.2% ✎ | ▁▁▁▁▁▁▃▂▄█▄▃ beats 16/146 | 2.8% |
$ where to run it
Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.
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 8B Code Instruct (4K) · needs 6.6 GB memory, 4.88 GB download · from huggingface.co/ibm-granitechat in the terminal
llama cli -hf ibm-granite/granite-8b-code-instruct-4k-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf ibm-granite/granite-8b-code-instruct-4k-GGUF:Q4_K_M
LM Studio
- Install LM Studio · Open the app once before using the lms command.
- Run Granite 8B Code Instruct (4K) · needs 6.6 GB memory, 4.88 GB download · from huggingface.co/ibm-granite
- Or download it in the terminal
lms get https://huggingface.co/ibm-granite/granite-8b-code-instruct-4k-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 8B Code Instruct (4K) · needs 6.6 GB memory, 4.88 GB download · from huggingface.co/ibm-granitechat in the terminal
ollama run hf.co/ibm-granite/granite-8b-code-instruct-4k-GGUF:Q4_K_M
Model repository and documentation: huggingface.co/ibm-granite ↗
$ how the score was worked out · Granite Code Models: A Family… 76%, BigCodeBench paper (Zhuo et a… 21%, EuroEval leaderboards (result… 3%
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 |
|---|---|---|
| 3 | 76% | |
| 1 | 21% | |
| 1 | 3% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 45.2 |
$ 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