whatmodel.sh / Gemma 4 12B
Gemma 4 12B
↗ share
+ contribute
Gemma 4 12B is an open-weights language model from Google, released June 2026. Its published size is 11.9B parameters and a 262k-token context window. Licence: apache-2.0.
$ how it compares
The LLMs ranked either side of Gemma 4 12B, out of 828 with a score, then more from Google.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 200 | 63±2 | comparison only | |||
| 201 | 62±1 | api $0.96/M +local | |||
| 202 | 62±1 | local | |||
| 203 | 62±1 | api $3.50/M | |||
| 204 | 62±2 | api $0.087/M +local | |||
| more from Google | |||||
| 9 | 82±1 | limited preview | |||
| 23 | 77±1 | api $1.50/M | |||
| 32 | 76±1 | api $1.50/M | |||
$ what it's good at
agent tasks▁▁▃▆█▆▅▅▅▄▃▁ #151 of 300 · 23% of its score · 8 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 |
|---|---|---|---|
| Terminal-Bench Hard lab | 18.0% ✎ | ██··█·█·█··█ beats 4/5 | 5.9% |
| τ²-bench Telecom lab | 54.4% ✎ | ▄····█··▄·▄▄ beats 4/5 | 4.7% |
| Tau2 – airline lab | 75.0% ✎ | ▃·▃··▃·····█ beats 3/5 | 3.6% |
| τ²-bench aggregate lab | 69.0% ✎ | ▄·▄··▄····█▄ beats 4/5 | 3.1% |
| BFCL V4 (December 2025 archive) | 37.4% ✎ | ▁▁▁▂▇▆▆▆█▂▄▂ beats 48/111 | 1.4% |
| BrowseComp | 10.0% ✎ | ▅···█·▃···▃▃ beats 4/7 | 1.4% |
| τ³-bench | 13.3% ✎ | ▃·▃·█·▃··▃·▃ beats 5/7 | 1.4% |
| Tau2 – retail lab | 77.6% ✎ | ▄····▄··▄·▄█ beats 3/5 | 1.2% |
coding▁▁▁▃▆██▇▆▄▃▁ #127 of 458 · 6.6% of its score · 3 tests
Beats Qwen3.5 Plus, Gemini 2.5 Pro, Gemini 3.1 Flash-Lite here, though they rank higher overall. Trails Llama 3.1 Nemotron Ultra 253B v1, Nemotron 3.5 Lightning 30B-A3B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| SciCode lab | 38.0% ✎ | █▄·······▄▄▄ beats 3/5 | 2.7% |
| LiveCodeBench v6 (Feb–May 2025) lab | 72.0% ✎ | ▄··▄·▄···▄·█ beats 3/5 | 2.0% |
| SciCode (level unspecified) | 39.8% ✎ | █·····██████ beats 6/6 | 1.9% |
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #74 of 393 * · 0.9% of its score · 2 tests
Beats LongCat 2.0 (1.6T-A48B), Mistral Large 4 (public preview), Inkling Small (266B-A12B) here, though they rank higher overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| IFEval lab | 97.2% ✎ | ▄··▄··█···▄▄ beats 3/5 | 0.7% |
| IFEval (aggregation unspecified) | 94.8% ✎ | ▁▁▃▁▂▄▄▆█▃▂▃ beats 138/141 | 0.2% |
math▁▂▃▅▆▅▄█▄▁▁▁ #161 of 398 · 20% of its score · 4 tests
Beats MiMo-V2.5 (310B-A15B), MiniMax-M2.7, MiniMax-M2.1 here, though they rank higher overall. Trails Olmo 3 7B Think, Qwen3-VL 4B Thinking, Granite 4.2 3B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HMMT February 2026 | 65.6% ✎ | █·▄··▄··▄█·▄ beats 4/7 | 9.4% |
| IMO-AnswerBench | 57.2% ✎ | ▄▄···▄·▄··█▄ beats 3/6 | 4.9% |
| MATH-Vision lab | 79.7% ✎ | ██·█·····███ beats 3/5 | 2.8% |
| AIME 2026 lab | 77.5% ✎ | ▄·▄▄····▄··█ beats 3/5 | 2.6% |
vision & documents▁▁▃▂▁▃▄▂▆▇█▄ #71 of 147 · 10% of its score · 4 tests
Beats DeepSeek V4 Flash Vision (Exp), GPT-5.4 nano, GPT-5 mini here, though they rank higher overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| MMMU Pro lab | 69.1% ✎ | ██·█····█·██ beats 3/5 | 3.6% |
| MATH-Vision lab | 79.7% ✎ | ██·█·····███ beats 3/5 | 2.8% |
| InfographicVQA lab | 88.4% ✎ | ▄█·······█·▄ beats 3/5 | 2.5% |
| OmniDocBench 1.5 ↓ lab | 16.4% ✎ | █·█·····████ beats 3/5 | 1.4% |
web search█·█▄██·▄▄·▄▄ #5 of 13 * · 1.4% of its score · 1 test
Beats Qwen3.5 9B here, though they rank higher overall. Trails Spark-X2.5 1.7B, Qwen3.5 4B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BrowseComp | 10.0% ✎ | ▅···█·▃···▃▃ beats 4/7 | 1.4% |
other tests10 not in a task · 42% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GPQA Diamond lab | 78.8% ✎ | █···▄·····▄█ beats 3/5 | 7.1% |
| Humanity's Last Exam | 13.1% ✎ | ▄▄·▄··▄·▄·▄█ beats 6/7 | 7.1% |
| MedXPertQA MM lab | 48.7% ✎ | ▂···▂·▃··▆▂█ beats 5/13 | 5.9% |
| GPQA (subset unspecified) | 72.8% ✎ | █···▃···▅·▃▃ beats 6/7 | 5.1% |
| MMLU-Pro lab | 77.2% ✎ | ▄··█···▄··▄▄ beats 3/5 | 3.6% |
| MRCR v2 8-needle, 128k lab | 43.4% ✎ | ▄▄·▄···█···▄ beats 3/5 | 3.4% |
| MMMLU lab | 83.4% ✎ | ██··█···█·██ beats 3/5 | 3.4% |
| IFBench lab | 74.0% ✎ | ▄▄·▄······▄█ beats 4/5 | 2.9% |
2 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Big Bench Extra Hard micro avg lab | 53.0% ✎ | █··▄···▄·▄·▄ beats 3/5 | 2.7% |
| HLE lab | 5.2% ✎ | █···█······█ beats 0/2 | 1.1% |
$ where to run it
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 Gemma 4 12B · needs ~7.4 GB · from huggingface.co/lmstudio-communitychat in the terminal
llama cli -hf lmstudio-community/gemma-4-12B-it-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf lmstudio-community/gemma-4-12B-it-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Gemma 4 12B · needs ~7.4 GB · from huggingface.co/lmstudio-community
- Or download it in the terminal
lms get https://huggingface.co/lmstudio-community/gemma-4-12B-it-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 Gemma 4 12B · needs ~7.64 GB · from ollama.comchat in the terminal
ollama run gemma4:12b
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Gemma 4 12B · needs ~6.7 GB, Mac only · from huggingface.co/lmstudio-communitychat in the terminal
mlx_lm.chat --model lmstudio-community/gemma-4-12B-it-MLX-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model lmstudio-community/gemma-4-12B-it-MLX-4bit
Official weights and documentation: huggingface.co/google ↗
$ how the score was worked out · Gemma Team — Gemma 4 Technica… 64%, XHToken/Spark-X2.5-4B model c… 33%, google/gemma-4-31B-it model c… 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 |
|---|---|---|
| 20 | 64% | |
| 9 | 33% | |
| 1 | 3% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 62.4 |
$ published speed measurements · 1
Reference results for the hardware, engine and settings below. They aren't verified speeds of the downloads above or predictions for your machine.
| AMD Ryzen AI Max+ 395 (Strix Halo), Radeon 8060S iGPU; Beelink GTR9 Pro 128GB | Gemma QAT GGUF UD-Q4_K_XL | 29.34 tok/s | llama.cpp ac4cddeb0 (build_number 9592 as recorded), Vulkan (RADV) · llama-bench; tg128; 128 generated tokens; context depth 0; n_prompt=0 row; n_batch=2048; n_ubatch=512; flash_attn=1; type_k=f16; type_v=f16; n_gpu_layers=999; threads=16; one sequence; file label r10 repetitions Author's own llama-bench CSV row (avg_ts mean over repetitions, stddev_ts retained). GPU string as recorded: Radeon 8060S Graphics (RADV STRIX_HALO). Unified memory; the guide reports ~124GiB OS-visible. Kernel/Mesa/power profile per the run folder notes. Not prompt processing or multi-request throughput. Curated in the guide's data/benchmarks.csv line 31 (2026-06-11, measured-local): Current Google Gemma 4 QAT direct route on upstream llama.cpp; useful current-model evidence, but not a speed candidate versus Qwen/LFM MoE rows. | source ↗ |
$ 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