whatmodel.sh / Granite 34B Code Instruct (8K)
Granite 34B Code Instruct (8K)
↗ share
+ contribute
Granite 34B Code Instruct (8K) is an open-weights language model from IBM, released April 2024. Its published size is 33.72B parameters. Licence: apache-2.0.
Catalogue identity notes
Comparison-only. Maker repo ibm-granite/granite-34b-code-instruct-8k @4bdfb58: licence tag apache-2.0. 33,715,603,456 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.
$ how it compares
The LLMs ranked either side of Granite 34B Code Instruct (8K), out of 828 with a score, then more from IBM.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 508 | 46±1 | local | |||
| 509 | 46±1 | local | |||
| 510 | 46±1 | local | |||
| 511 | 46±1 | local | |||
| 512 | 46±2 | comparison only | |||
| 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▁▁▁▃▆██▇▆▄▃▁ #298 of 458 · 66% of its score · 7 tests
Beats Solar Open 100B (102B-A12B), GLM-4.7-Flash, Qwen3-VL 30B-A3B Instruct here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, WizardLM 70B V1.0, Yi 1.5 9B Chat here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEvalSynthesize (HumanEvalPack, 6-language average) lab | 54.8% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 32/35 | 23% |
| HumanEvalExplain (HumanEvalPack, 6-language average) lab | 41.9% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 33/35 | 17% |
| HumanEvalFix (HumanEvalPack, 6-language average) lab | 50.2% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 32/35 | 17% |
| CodeReviewQA: solution identification (hard), invariant accuracy | 19.3% ✎ | ▃··▁▂▂▃▂█▃▄▂ beats 13/47 | 3.4% |
| CodeReviewQA: change localisation (hard), invariant accuracy | 20.7% ✎ | █▂▁▁▂▂▂▃▅▅▅▇ beats 20/47 | 3.2% |
| CodeReviewQA: automated code refinement, exact match rate | 35.4% ✎ | ▁▁▁▁▁▁▂▂▃█▅▄ beats 33/47 | 2.4% |
| CodeReviewQA: change type recognition, invariant accuracy | 72.3% ✎ | ▁▁▁······▁▃█ beats 22/47 | 0.1% |
other tests4 not in a task · 34% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BigCodeBench (Instruct) | 35.8% ✎ | ▃▂·▆▆██▆▅▃▃▃ beats 18/33 | 15% |
| BigCodeBench (Complete) | 43.8% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 40/58 | 15% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 34.1% ✎ | ▃·▁▁▃▁▂▅█▇▄▁ beats 18/100 | 2.2% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 51.5% ✎ | ▁▁▁▁▁▁▃▂▄█▄▃ beats 20/146 | 1.7% |
$ 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 34B Code Instruct (8K) · needs ~21.38 GB · from huggingface.co/ibm-granitechat in the terminal
llama cli -hf ibm-granite/granite-34b-code-instruct-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-34b-code-instruct-8k-GGUF:Q4_K_M
LM Studio
- Install LM Studio · Open the app once before using the lms command.
- Run Granite 34B Code Instruct (8K) · needs ~21.38 GB · from huggingface.co/ibm-granite
- Or download it in the terminal
lms get https://huggingface.co/ibm-granite/granite-34b-code-instruct-8k-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Granite 34B Code Instruct (8K) · needs ~19 GB · from ollama.comchat in the terminal
ollama run granite-code:34b
Weights and documentation: huggingface.co/ibm-granite ↗
$ how the score was worked out · Granite Code Models: A Family… 57%, BigCodeBench paper (Zhuo et a… 30%, CodeReviewQA: The Code Review… 9% and 1 more
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 | 57% | |
| 2 | 30% | |
| 4 | 9% | |
| 2 | 4% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 45.8 |
$ 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