whatmodel.sh / Gemma 3 12B
Gemma 3 12B
↗ share
+ contribute
Gemma 3 12B is an open-weights language model from Google, released March 2025. Its published size is 12.2B parameters and a 131k-token context window. Licence: gemma.
$ how it compares
The LLMs ranked either side of Gemma 3 12B, out of 828 with a score, then more from Google.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 383 | 52±2 | comparison only | |||
| 384 | 52±2 | api $0.75/M +local | |||
| 385 | 52±1 | api $0.075/M +local | |||
| 386 | 52±1 | local | |||
| 387 | 52±1 | 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▁▁▃▆█▆▅▅▅▄▃▁ #250 of 300 * · 2.3% of its score · 2 tests
Beats DeepSeek R1 0528 Qwen3 8B, Magistral Small 1.0 (2506), Llama 4 Scout (109B-A17B) here, though they rank higher overall. Trails Granite 4.0 H 1B, Granite 4.0 1B, SmolLM3 3B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BFCL V4 (December 2025 archive) | 30.4% ✎ | ▁▁▁▂██▅▅▆▂▂▂ beats 31/77 | 1.6% |
| BFCL v3 | 50.6% ✎ | ▁▁▁▁▁▃▅█▅▄▁▁ beats 36/114 | 0.8% |
coding▁▁▁▃▆██▇▆▄▃▁ #293 of 458 · 9.0% of its score · 5 tests
Beats Qwen3-VL 32B Instruct, Solar Open 100B (102B-A12B), GLM-4.7-Flash 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 |
|---|---|---|---|
| HumanEval lab | 85.4% ✎ | ▁▁▁▁▁▃▅▅█▃▂▁ beats 177/190 | 2.7% |
| LiveCodeBench (version unspecified) lab | 24.6% ✎ | ▁···▁▁▃▅▅█▄▅ beats 3/37 | 2.0% |
| VisEditBench strict pass rate (1,395 visualization-code editing tasks) | 35.0% ✎ | ▄··█·▄··▄█·▄ beats 1/7 | 1.8% |
| MBPP lab | 73.0% ✎ | ▁▁▁▄▅█▄▅▃▁▂▁ beats 69/81 | 1.8% |
| BIRD-SQL (dev) lab | 47.9% ✎ | ▂·······▂▂█▆ beats 4/11 | 0.8% |
chat & writing▁▁▁▃▅▄▅█▆▆▇▃ #168 of 393 * · 4.0% of its score · 2 tests
Beats MiniCPM5 2B, Granite 4.2 30B, Seed-OSS 36B Instruct here, though they rank higher overall. Trails LFM2.5 1.2B Instruct, LFM2.5 1.2B Thinking here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LMArena (text) | 1341.8 ✎ | ▁▁▁▂▃▃▃▆▆▇█▃ beats 179/379 | 3.4% |
| IFEval (aggregation unspecified) lab | 88.9% ✎ | ▁▁▃▁▂▄▄▆█▃▂▁ beats 105/141 | 0.6% |
math▁▂▃▅▆▅▄█▄▁▁▁ #203 of 398 · 15% of its score · 6 tests
Beats DeepSeek V3 (Dec '24), GPT-4o (2024-08-06), Command A (03-2025) here, though they rank higher overall. Trails Olmo 3 7B Instruct, Phi-4-mini-reasoning 3.8B, DeepSeek R1 Distill Qwen 7B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GSM8K +1 | 89.7% ✎ | █····█··▄·▄█ beats 7/7 | 5.4% |
| MATH (subset unspecified) +1 | 83.8% ✎ | █▄··▄█▄····▄ beats 4/7 | 4.1% |
| PolyMath (Marco evaluation) | 35.5% ✎ | ▄··▄██··▄··▄ beats 6/7 | 1.6% |
| OTIS mock AIME 2024–2025 | 16.7% ✎ | ▃▃▄▃▃▃▇▇█▃▂▅ beats 56/193 | 1.4% |
| MGSM (Marco evaluation) | 84.0% ✎ | ▄·▄·▄▄▄·▄··█ beats 6/7 | 1.4% |
| MathVista (testmini) lab | 62.9% ✎ | ▁··▁▄▄▇█▅▆█▄ beats 19/47 | 1.4% |
vision & documents▁▁▃▃▁▃▄▂▆▇█▄ #124 of 147 · 7.2% of its score · 9 tests
Trails Qwen3.5 2B, Pixtral 12B (2409), Qwen3-VL 2B Thinking here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| VisEditBench strict pass rate (1,395 visualization-code editing tasks) | 35.0% ✎ | ▄··█·▄··▄█·▄ beats 1/7 | 1.8% |
| MathVista (testmini) lab | 62.9% ✎ | ▁··▁▄▄▇█▅▆█▄ beats 19/47 | 1.4% |
| MMMU (val) lab | 59.6% ✎ | ▁····▁▁▄█▇▆▆ beats 22/52 | 1.4% |
| InfographicVQA lab | 64.9% ✎ | ▃·▃▅█▃▃▃▃▃▃▃ beats 2/13 | 1.0% |
| VQAv2 (val) lab | 71.6% ✎ | ▃▅▃█·▃▅·▃·▃▅ beats 6/13 | 0.5% |
| ChartQA lab | 75.7% ✎ | ▁··▁▁▁▁▁▃▅▅█ beats 9/44 | 0.4% |
| DocVQA lab | 87.1% ✎ | ▁··▃▁▁▁▇█▇▄▅ beats 2/28 | 0.3% |
| TextVQA lab | 67.7% ✎ | ▁▁▁▄▅▁▃·▃▃▃█ beats 4/24 | 0.2% |
other tests28 not in a task · 65% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GPQA Diamond +2 | 39.5% ✎ | ▁▁▁▁▂▄▆▄▅▇█▅ beats 37/208 | 14% |
| MMLU +1 | 76.2% ✎ | ▄···▄▄·▄█··█ beats 4/7 | 6.7% |
| Medmarks-V mean win rate (19 verifiable medical benchmarks, 71 configurations) | 0.4379 ✎ | ▁▄▃▃▇▄█▃▅▁▁▁ beats 8/30 | 5.3% |
| MMLU-Pro +1 | 55.8% ✎ | ▄····█·▄█·▄▄ beats 3/7 | 4.5% |
| BIG-Bench Hard lab | 85.7% ✎ | ▁▁▁▁▂▄▅▅█▃▄▁ beats 120/129 | 3.9% |
| Medmarks-V weighted mean win rate (61 models, 71 configurations) | 43.8% ✎ | ▂▃▅▂▆▃█▅█▅▃▆ beats 8/34 | 2.6% |
| MMLU-ProX-Lite (Marco) | 51.3% ✎ | █··▄··█··█·▄ beats 5/7 | 2.5% |
| Global-MMLU-Lite lab | 69.5% ✎ | ▂···▂·▃▂▂·██ beats 2/12 | 2.4% |
20 more tests
$ where to run it
Through an API
api · DeepInfra · $0.075/M · $0.05 in / $0.15 out per 1M tokens · 131k context · deepinfra.com ↗ · price sourceUSD per 1M text tokens, standard uncached input and output. Product: Serverless text generation. API model: google/gemma-3-12b-it. 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 Gemma 3 12B · needs ~7.3 GB · from huggingface.co/ggml-orgchat in the terminal
llama cli -hf ggml-org/gemma-3-12b-it-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf ggml-org/gemma-3-12b-it-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Gemma 3 12B · needs ~7.3 GB · from huggingface.co/ggml-org
- Or download it in the terminal
lms get https://huggingface.co/ggml-org/gemma-3-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 3 12B · needs ~7.82 GB · from ollama.comchat in the terminal
ollama run gemma3:12b
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Gemma 3 12B · needs ~7.2 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/gemma-3-12b-it-4bit-DWQ - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/gemma-3-12b-it-4bit-DWQ
Official weights and documentation: huggingface.co/google ↗
$ how the score was worked out · Google DeepMind Gemma 3 270M… 32%, Marco-MoE: Open Multilingual… 28%, Medmarks: A Comprehensive Ope… 8% and 13 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
$ quantization evidence · 4 measurements
How much of the full-precision result a quantized version kept, measured within one study. Rows from the same study share a table and aren't independent.
| precision | test | full → quantized | kept | |
|---|---|---|---|---|
| NVFP4 (weights and activations; checkpoint not named) | GSM8K chain-of-thought exact match (1,319 problems; lm-eval v0.4.9, vLLM 0.12) | 0.825 → 0.789 | 95.7% | source ↗ |
| NVFP4 (weights and activations; checkpoint not named) | MMLU 5-shot (500-example subset; lm-eval v0.4.9, vLLM 0.12) | 0.62 → 0.58 | 93.4% | source ↗ |
| W4A16 (RedHatAI gemma-3-12b-it-quantized.w4a16) | GSM8K chain-of-thought exact match (1,319 problems; lm-eval v0.4.9, vLLM 0.12) | 0.825 → 0.82 | 99.4% | source ↗ |
| W4A16 (RedHatAI gemma-3-12b-it-quantized.w4a16) | MMLU 5-shot (500-example subset; lm-eval v0.4.9, vLLM 0.12) | 0.62 → 0.59 | 95.2% | 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