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.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Gemma 3 12B, out of 897 with a score, then more from Google.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 410 | 52±1 | local | |||
| 411 | 52±1 | local | |||
| 412 | 52±1 | api $0.075/M +local | |||
| 413 | 52±1 | local | |||
| 414 | 52±1 | comparison only | |||
| more from Google | |||||
| 3 | 84±1 | api $4.00/M | |||
| 9 | 81±1 | api $4.00/M | |||
| 14 | 79±2 | api $3.00/M | |||
$ what it's good at
agent tasks▁▁▃▆█▄▅▅▃▃▂▁ #268 of 319 * · 2.4% 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▁▁▁▃▆▇█▆▆▃▃▁ #307 of 474 · 8.7% of its score · 5 tests
Beats Qwen3-VL 32B Instruct, Solar Open 100B (102B-A12B), 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 |
|---|---|---|---|
| HumanEval lab | 85.4% ✎ | ▁▁▁▁▂▂▆▆█▅▂▁ beats 192/205 | 2.9% |
| VisEditBench strict pass rate (1,395 visualization-code editing tasks) | 35.0% ✎ | ▄··█·▄··▄█·▄ beats 1/7 | 1.9% |
| MBPP lab | 73.0% ✎ | ▁▁▁▄▅█▆▅▄▁▂▁ beats 73/86 | 1.7% |
| LiveCodeBench (version unspecified) lab | 24.6% ✎ | ▁···▁▃▁█▇▃▄▁ beats 3/38 | 1.6% |
| BIRD-SQL (dev) lab | 47.9% ✎ | ▂·······▂▂█▆ beats 4/11 | 0.7% |
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #178 of 405 * · 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, LFM2.5 8B-A1B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LMArena (text) | 1341.8 ✎ | ▁▁▁▂▃▂▃▆▆▇█▃ beats 179/388 | 3.4% |
| IFEval (aggregation unspecified) lab | 88.9% ✎ | ▁▂▄▂▂▄▆██▅▂▁ beats 105/145 | 0.6% |
math▁▁▃▅█▆▅█▄▁▁▁ #220 of 440 · 15% of its score · 6 tests
Beats MiniMax-M2.1, DeepSeek V3 (Dec '24), GPT-4o (2024-08-06) here, though they rank higher overall. Trails Granite 8B Code Base (4K), Mixtral 8x7B v0.1 (base), Phi-4-mini-reasoning 3.8B here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GSM8K +1 | 89.7% ✎ | █····█··▄·▄█ beats 7/7 | 5.8% |
| MATH (subset unspecified) +1 | 83.8% ✎ | █▄··▄█▄····▄ beats 4/7 | 4.0% |
| PolyMath (Marco evaluation) | 35.5% ✎ | ▄··▄██··▄··▄ beats 6/7 | 1.5% |
| MathVista (testmini) lab | 62.9% ✎ | ▁··▁▄▄▆▇▄▅█▄ beats 19/48 | 1.3% |
| MGSM (Marco evaluation) | 84.0% ✎ | ▄·▄·▄▄▄·▄··█ beats 6/7 | 1.3% |
| OTIS mock AIME 2024–2025 | 16.7% ✎ | ▃▃▄▃▃▃▇▆█▄▃▆ beats 56/207 | 1.2% |
vision & documents▁▁▂▃▁▃▄▂▆▇█▄ #130 of 154 · 6.9% of its score · 9 tests
Trails Qwen3.5 2B, Qwen3-VL 2B Thinking, Qwen2.5-VL 7B Instruct 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.9% |
| MMMU (val) lab | 59.6% ✎ | ▁····▁▁▃█▆▆▅ beats 23/53 | 1.3% |
| MathVista (testmini) lab | 62.9% ✎ | ▁··▁▄▄▆▇▄▅█▄ beats 19/48 | 1.3% |
| InfographicVQA lab | 64.9% ✎ | ▃·▃▅█▃▃▃▃▃▃▃ beats 2/13 | 0.9% |
| 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 · 66% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| GPQA Diamond +2 | 39.5% ✎ | ▁▁▁▁▂▃▅▄▄▆█▃ beats 37/221 | 14% |
| MMLU +1 | 76.2% ✎ | ▄···▄▄·▄█··█ beats 4/7 | 7.3% |
| Medmarks-V mean win rate (19 verifiable medical benchmarks, 71 configurations) | 0.4379 ✎ | ▁▄▃▃▇▄█▃▅▁▁▁ beats 8/30 | 6.7% |
| MMLU-Pro +1 | 55.8% ✎ | ▄····█·▄█·▄▄ beats 3/7 | 4.5% |
| BIG-Bench Hard lab | 85.7% ✎ | ▁▁▁▁▂▄▅▆█▃▃▁ beats 146/155 | 3.3% |
| Medmarks-V weighted mean win rate (61 models, 71 configurations) | 43.8% ✎ | ▂▃▅▂▆▃█▅█▅▃▆ beats 8/34 | 2.9% |
| Polish medical board exams, bias-mitigated MCQ protocol (7-exam average) | 53.3% ✎ | ▄·▂▂▂··█▂▄·▄ beats 5/13 | 2.4% |
| MMLU-ProX-Lite (Marco) | 51.3% ✎ | █··▄··█··█·▄ beats 5/7 | 2.3% |
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.
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 Gemma 3 12B · needs 11.1 GB memory, 8.15 GB download · 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 11.1 GB memory, 8.15 GB download · 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 11.1 GB memory, 8.16 GB download · 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 10.1 GB memory, 7.19 GB download, 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
Model repository and documentation: huggingface.co/google ↗
$ how the score was worked out · Google DeepMind Gemma 3 270M… 30%, Marco-MoE: Open Multilingual… 28%, Medmarks: A Comprehensive Ope… 10% 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
$ published speed measurements · 4
Reference results for the hardware, engine and settings below. They aren't verified speeds of the downloads above or predictions for your machine.
| Apple M2 Pro, 32 GB | q4_k_m | 20.88 tok/s | ollama (version not recorded) · llmfit bench 1.1.15 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (215 on average); eval_count ÷ eval_duration, generation onlynoteCommunity submission to llmfit on 2026-09-13 (Apple M2 Pro, 32 GB RAM, macos); 20.69–21.16 tok/s across runs. | source ↗ |
| Apple M3 Pro, 18 GB | q4_k_m | 12.49 tok/s | ollama (version not recorded) · llmfit bench 1.1.15 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (213 on average); eval_count ÷ eval_duration, generation onlynoteCommunity submission to llmfit on 2026-09-10 (Apple M3 Pro, 18 GB RAM, macos); 10.51–14.74 tok/s across runs. | source ↗ |
| Apple M3 Pro, 18 GB | q4_k_m | 13.28 tok/s | ollama (version not recorded) · llmfit bench 1.1.15 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (217 on average); eval_count ÷ eval_duration, generation onlynoteCommunity submission to llmfit on 2026-09-10 (Apple M3 Pro, 18 GB RAM, macos); 10.65–14.63 tok/s across runs. | source ↗ |
| Apple M4, 16 GB | qat | 11.12 tok/s | ollama (version not recorded) · llmfit bench 1.1.14 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (160 on average); eval_count ÷ eval_duration, generation onlynoteCommunity submission to llmfit on 2026-09-09 (Apple M4, 16 GB RAM, macos); 10.96–11.3 tok/s across runs. | source ↗ |
$ 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