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.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Granite 4.2 8B, out of 897 with a score, then more from IBM.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 262 | 59±2 | comparison only | |||
| 263 | 59±0 | api $1.23/M +local | |||
| 264 | 59±1 | api $0.11/M +local | |||
| 265 | 59±2 | api $0.26/M +local | |||
| 266 | 59±1 | local | |||
| more from IBM | |||||
| 213 | 62±1 | api $0.28/M +local | |||
| 302 | 57±1 | api $0.052/M +local | |||
| 309 | 57±1 | local | |||
$ what it's good at
agent tasks▁▁▃▆█▄▅▅▃▃▂▁ #176 of 319 · 29% 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 Pro (split unspecified) lab | 19.1% ✎ | ▁·▁▁▁▃▁▄█▁▁▁ beats 11/64 | 6.9% |
| SWE-bench Verified lab | 47.7% ✎ | ▁▁▁▁▁▁▂▄█▆▁▁ beats 38/140 | 6.7% |
| Terminal-Bench 2.1 lab | 20.6% ✎ | ▁·▁·▁▁▄▃▅█▆█ beats 5/68 | 5.5% |
| SWE-bench Multilingual lab | 30.8% ✎ | ▁··▂▃▃▆█▃▂▁▁ beats 7/69 | 4.3% |
| BFCL V4 (December 2025 archive) lab | 52.4% ✎ | ▁▁▁▂▆▆▅▆█▂▄▃ beats 75/114 | 3.1% |
| τ³-bench lab | 58.1% ✎ | ▁▁▂▁·▁▁·▂▃▂█ beats 12/26 | 2.4% |
coding▁▁▁▃▆▇█▆▆▃▃▁ #205 of 474 · 28% of its score · 5 tests
Beats Gemini 2.5 Flash, Qwen3 30B-A3B Instruct 2507, Qwen3.5 4B here, though they rank higher overall. Trails QwQ-32B-Preview, DeepSeek-Coder-V2 Instruct (0724), Ministral 3 8B Reasoning 2512 here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| SWE-bench Pro (split unspecified) lab | 19.1% ✎ | ▁·▁▁▁▃▁▄█▁▁▁ beats 11/64 | 6.9% |
| LiveCodeBench v6 (window unspecified) lab | 73.2% ✎ | ▂▃▄▄▅██▆▄▇▄▆ beats 39/67 | 6.8% |
| SWE-bench Verified lab | 47.7% ✎ | ▁▁▁▁▁▁▂▄█▆▁▁ beats 38/140 | 6.7% |
| SWE-bench Multilingual lab | 30.8% ✎ | ▁··▂▃▃▆█▃▂▁▁ beats 7/69 | 4.3% |
| SciCode (level unspecified) lab | 36.1% ✎ | ▁····▃▃▄▄█▆▃ beats 20/42 | 3.4% |
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #237 of 405 * · 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) | 1289.3 ✎ | ▁▁▁▂▃▂▃▆▆▇█▃ beats 121/388 | 11% |
| Arena-Hard v2 aggregate lab | 65.2% ✎ | ▁▁··▄▃▁▃█▁▁▇ beats 12/22 | 6.1% |
math▁▁▃▅█▆▅█▄▁▁▁ #127 of 440 * · 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/134 | 11% |
| HMMT February 2025 lab | 78.3% ✎ | ▁▁▁▃▁▅▅▃██▁▄ beats 13/31 | 4.8% |
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 68/106 | 10% |
| MMLU-Pro lab | 74.0% ✎ | ▁▁·▁▁▁▃▂▄▅█▁ beats 99/189 | 5.9% |
| RULER 128k lab | 71.4% ✎ | ▃··▅▄█▅█▇·▃▃ beats 17/33 | 2.6% |
| ProfBench lab | 41.2% ✎ | █·········██ beats 1/2 | 2.6% |
| IFBench prompt-level lab | 79.3% ✎ | ▄······██▄▄▄ beats 6/7 | 2.5% |
| RULER 64k lab | 81.0% ✎ | ▁▁·▂·▂▃▄█▂▁▁ beats 10/26 | 2.2% |
| MMLU-ProX-Lite lab | 61.1% ✎ | █·········██ beats 1/2 | 1.8% |
| 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.
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
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 7.2 GB memory, 5.35 GB download · 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 7.2 GB memory, 5.35 GB download · 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 7.2 GB memory, 5.35 GB download · 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 6.8 GB memory, 4.95 GB download, 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
Model repository and documentation: huggingface.co/ibm-granite ↗
$ how the score was worked out · ibm-granite/granite-4.2-30b m… 88%, 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 | 88% | |
| 1 | 11% | |
| prior · pull toward the middle | 1% | |
| weighted average | = 59.2 |
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