whatmodel.sh / Granite 4.2 8B
Granite 4.2 8B
↗ share
+ contribute
Granite 4.2 8B is an open-weights language model from IBM, released August 2026. Its published size is 8.79B parameters and a 131k-token context window. Licence: apache-2.0.
$ how it compares
The LLMs ranked either side of Granite 4.2 8B, out of 828 with a score, then more from IBM.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 237 | 60±1 | api $1.23/M +local | |||
| 238 | 60±1 | comparison only | |||
| 239 | 60±1 | api $0.11/M +local | |||
| 240 | 60±1 | local | |||
| 241 | 60±1 | api $0.75/M +local | |||
| more from IBM | |||||
| 192 | 63±1 | api $0.28/M +local | |||
| 276 | 57±1 | api $0.052/M +local | |||
| 299 | 56±1 | local | |||
$ what it's good at
agent tasks▁▁▃▆█▆▅▅▅▄▃▁ #156 of 300 · 28% of its score · 6 tests
Beats o1 (2024-12-17), o3-mini, DeepSeek R1 0528 here, though they rank higher overall. Trails SmolLM3 3B, Jamba 1.5 Mini, Jamba 1.5 Large here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| SWE-bench Verified lab | 47.7% ✎ | ▁▁▁▁▁▁▂▄█▆▁▁ beats 37/131 | 6.6% |
| SWE-bench Pro (split unspecified) lab | 19.1% ✎ | ▃·▁▁▁▂▃▃█▇▃▁ beats 11/55 | 6.4% |
| Terminal-Bench 2.1 lab | 20.6% ✎ | ▁·▁·▁▁▄▃▄█▃▇ beats 4/56 | 5.8% |
| SWE-bench Multilingual lab | 30.8% ✎ | ▁··▁▃▂▅▇█▃▃▁ beats 6/60 | 4.2% |
| BFCL V4 (December 2025 archive) lab | 52.4% ✎ | ▁▁▁▂▇▆▆▆█▂▄▂ beats 75/111 | 2.9% |
| τ³-bench lab | 58.1% ✎ | ▁▁▂▁·▁▁·▁▃▂█ beats 11/25 | 2.4% |
coding▁▁▁▃▆██▇▆▄▃▁ #190 of 458 · 27% of its score · 5 tests
Beats Gemini 2.5 Flash, Qwen3.5 4B, Qwen3 30B-A3B Instruct 2507 here, though they rank higher overall. Trails QwQ-32B-Preview, DeepSeek-V2.5, OpenThinker 32B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LiveCodeBench v6 (window unspecified) lab | 73.2% ✎ | ▂▃▄▄▅██▅▄▇▃▆ beats 39/65 | 6.7% |
| SWE-bench Verified lab | 47.7% ✎ | ▁▁▁▁▁▁▂▄█▆▁▁ beats 37/131 | 6.6% |
| SWE-bench Pro (split unspecified) lab | 19.1% ✎ | ▃·▁▁▁▂▃▃█▇▃▁ beats 11/55 | 6.4% |
| SWE-bench Multilingual lab | 30.8% ✎ | ▁··▁▃▂▅▇█▃▃▁ beats 6/60 | 4.2% |
| SciCode (level unspecified) lab | 36.1% ✎ | ▁····▃▄▄▄█▆▂ beats 17/34 | 3.3% |
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #228 of 393 * · 17% of its score · 2 tests
Trails Flan-T5 XXL, LFM2.5 1.2B Instruct, Gemma 3 4B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LMArena (text) | 1288.1 ✎ | ▁▁▁▂▃▃▃▆▆▇█▃ beats 120/379 | 11% |
| Arena-Hard v2 aggregate lab | 65.2% ✎ | ▁▁··▄▃▁▃█▁▁▇ beats 12/22 | 6.6% |
math▁▂▃▅▆▅▄█▄▁▁▁ #123 of 398 * · 16% of its score · 2 tests
Beats Claude Sonnet 4.6, MiniMax-M3, MiMo-V2.5 (310B-A15B) here, though they rank higher overall. Trails Olmo 3.1 32B Think here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| AIME 2025 lab | 86.7% ✎ | ▁·▁▁▁▂▅▆█▇▅▁ beats 104/133 | 10% |
| HMMT February 2025 lab | 78.3% ✎ | ▁▁▁▃▁▅▅▃██▁▄ beats 13/31 | 5.5% |
other tests8 not in a task · 28% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GPQA (subset unspecified) lab | 64.1% ✎ | ▂▁▂▂▄▃▆▃▅█▄▃ beats 67/104 | 10% |
| MMLU-Pro lab | 74.0% ✎ | ▁▁·▁▁▁▃▂▄▅█▁ beats 99/188 | 5.7% |
| ProfBench lab | 41.2% ✎ | █·········██ beats 1/2 | 2.8% |
| RULER 128k lab | 71.4% ✎ | ▃··▅▄▇▅█▇·▃▃ beats 16/32 | 2.8% |
| IFBench prompt-level lab | 79.3% ✎ | █▄▄··▄·▄···▄ beats 5/6 | 2.7% |
| RULER 64k lab | 81.0% ✎ | ▁▁·▂·▂▃▅█▂▁▁ beats 10/25 | 2.2% |
| MMLU-ProX-Lite lab | 61.1% ✎ | █·········██ beats 1/2 | 2.0% |
| BIRD (text-to-SQL) lab | 41.1% ✎ | █··········█ beats 0/1 | — |
$ where to run it
Through an API
api · Weights & Biases · $0.11/M · $0.1 in / $0.15 out per 1M tokens · 131k context · wandb.ai ↗ · price sourceUSD per 1M text tokens, standard uncached input and output. Product: W&B Inference. API model: ibm-granite/granite-4.2-8b. Settings: service tier=standard, batch=no, cache=uncached input. Additional/excluded charges: Tools, cache storage, priority service and other modalities excluded.. Currency: USD.
llama.cpp · recommended
version
- 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 4.2 8B · needs ~5.3 GB · from huggingface.co/ibm-granitechat in the terminal
llama cli -hf ibm-granite/granite-4.2-8b-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf ibm-granite/granite-4.2-8b-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Granite 4.2 8B · needs ~5.3 GB · from huggingface.co/ibm-granite
- Or download it in the terminal
lms get https://huggingface.co/ibm-granite/granite-4.2-8b-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 4.2 8B · needs ~5.77 GB · from ollama.comchat in the terminal
ollama run granite4.2:8b
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Granite 4.2 8B · needs ~4.9 GB, Mac only · from huggingface.co/ibm-granitechat in the terminal
mlx_lm.chat --model ibm-granite/granite-4.2-8b-q4-mlx - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model ibm-granite/granite-4.2-8b-q4-mlx
Weights and documentation: huggingface.co/ibm-granite ↗
$ how the score was worked out · ibm-granite/granite-4.2-30b m… 89%, LMArena leaderboard dataset 11%
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 |
|---|---|---|
| 18 | 89% | |
| 1 | 11% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 59.7 |
not counted (1)
| ibm-granite/granite-4.2-30b model card | BIRD (text-to-SQL) [correct] | 41.1% | fewer than three models have this test yet, or this source ran it for this model alone |
$ 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