whatmodel.sh / Gemma 4 12B

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.

61.7±0.8#192 of 743 LLMsfrom 30 benchmark results across 3 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Gemma 4 12B, out of 897 with a score, then more from Google.

#modelscorewhereRAMreleased
221HyperCLOVA X SEED 32B Think NAVER Cloud62±2comparison only2025-12
222MiniMax-M1 (80k) MiniMax62±1api $0.96/M +local~959GB2025-06
223Gemma 4 12B Google62±1local~9.3GB2026-06
224GLM-4.6V Z.ai62±2api $0.45/M +local~50GB2025-12
225Trinity-Large-Thinking Arcee AI62±2api $0.39/M +local~141GB2026-04
more from Google
3Gemini 4 Carbon Google84±1api $4.00/M2026-10
9Gemini 4 Argon Google81±1api $4.00/M2026-09
14Gemini 4 Hydrogen Google79±2api $3.00/M2026-11

see all LLMs · find the ones that fit your machine

$ what it's good at

agent tasks▁▁▃▆█▄▅▅▃▃▂▁ #172 of 319 · 22% 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.

testresultvs the others in its rundifficultycountswhy
Terminal-Bench Hard lab18.0% ✎██··█·█·█··█ beats 4/5very hard · avg 4.8%▇▇ 6.0%sharp
τ²-bench Telecom lab54.4% ✎▄····█··▄·▄▄ beats 4/5very hard · avg 14%▇▇ 4.8%sharp · at its level · noisy
Tau2 – airline lab75.0% ✎▃·▃··▃·····█ beats 3/5medium · avg 42%▇ 3.4%at its level
τ²-bench aggregate lab69.0% ✎▄·▄··▄····█▄ beats 4/5hard · avg 35%▇ 2.3%at its level
BFCL V4 (December 2025 archive)37.4% ✎▁▁▁▂▆▆▅▆█▂▄▃ beats 48/114hard · avg 35%▇ 1.6%at its level
τ³-bench13.3% ✎▃·▃·█·▃··▃·▃ beats 5/7very hard · avg 13%▇ 1.3%typical
BrowseComp10.0% ✎▅···█·▃···▃▃ beats 4/7very hard · avg 11%▇ 1.2%at its level · noisy
Tau2 – retail lab77.6% ✎▄····▄··▄·▄█ beats 3/5medium · avg 41%▇ 1.0%at its level · noisy
coding▁▁▁▃▆▇█▆▆▃▃▁ #140 of 474 · 6.8% of its score · 3 tests

Beats Qwen3-Coder-Next (80B-A3B), Qwen3.5 Plus, Gemini 2.5 Pro here, though they rank higher overall. Trails Llama 3.1 Nemotron Ultra 253B v1 here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
SciCode lab38.0% ✎█▄·······▄▄▄ beats 3/5hard · avg 21%▇ 2.8%at its level
SciCode (level unspecified)39.8% ✎█·····██████ beats 6/6hard · avg 17%▇ 2.2%at its level
LiveCodeBench v6 (Feb–May 2025) lab72.0% ✎▄··▄·▄···▄·█ beats 3/5medium · avg 44%▇ 1.9%at its level
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #78 of 405 * · 0.9% of its score · 2 tests

Beats Claude Haiku 5.5, Inkling 2 Small (594B-A17B), LongCat 2.0 (1.6T-A48B) here, though they rank higher overall.

testresultvs the others in its rundifficultycountswhy
IFEval lab97.2% ✎▄··▄··█···▄▄ beats 3/5very easy · avg 94%▇ 0.7%maxed out
IFEval (aggregation unspecified)94.8% ✎▁▂▄▂▂▄▆██▅▃▁ beats 140/145easy · avg 74%▇ 0.2%noisy
math▁▁▃▅█▆▅█▄▁▁▁ #177 of 440 · 19% 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, Nemotron Nano 9B v2, Qwen3-VL 4B Thinking here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HMMT February 202665.6% ✎█·▄··▄··▄█·▄ beats 4/7hard · avg 33%▇▇▇▇ 9.3%sharp · at its level
IMO-AnswerBench57.2% ✎▄▄···▄·▄··█▄ beats 3/6hard · avg 33%▇▇ 5.0%at its level
MATH-Vision lab79.7% ✎██·█·····███ beats 3/5medium · avg 54%▇ 2.6%at its level
AIME 2026 lab77.5% ✎▄·▄▄····▄··█ beats 3/5medium · avg 41%▇ 2.5%sharp · noisy
vision & documents▁▁▂▂▁▃▄▂▆▇█▄ #76 of 154 · 10% of its score · 4 tests

Beats DeepSeek V4 Flash Vision (Exp), Inkling Small (266B-A12B), GPT-5.4 nano here, though they rank higher overall. Trails Qwen3.5 9B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
MMMU Pro lab69.1% ✎██·█····█·██ beats 3/5medium · avg 49%▇ 3.7%at its level
MATH-Vision lab79.7% ✎██·█·····███ beats 3/5medium · avg 54%▇ 2.6%at its level
InfographicVQA lab88.4% ✎▄█·······█·▄ beats 3/5easy · avg 71%▇ 2.5%typical
OmniDocBench 1.5 ↓ lab16.4% ✎█·█·····████ beats 3/5avg 30%▇ 1.4%blunt
web search▅·▅▅█·▃▃▃·▅▃ #8 of 15 * · 1.2% of its score · 1 test

Trails Spark-X2.5 1.7B, Granite 4.2 3B, Spark-X2.6 1.7B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
BrowseComp10.0% ✎▅···█·▃···▃▃ beats 4/7very hard · avg 11%▇ 1.2%at its level · noisy
other tests10 not in a task · 44% of its score
testresultvs the others in its rundifficultycountswhy
Humanity's Last Exam13.1% ✎▄▄·▄··▄·▄·▄█ beats 6/7very hard · avg 3.9%▇▇▇ 8.1%typical
GPQA Diamond lab78.8% ✎█···▄·····▄█ beats 3/5hard · avg 46%▇▇▇ 7.5%sharp · at its level
GPQA (subset unspecified)72.8% ✎█···▃···▅·▃▃ beats 6/7hard · avg 45%▇▇ 5.8%sharp · at its level
MedXPertQA MM lab48.7% ✎▂···▂·▃··▆▂█ beats 5/13very hard · avg 30%▇▇ 5.4%sharp · at its level
MMLU-Pro lab77.2% ✎▄··█···▄··▄▄ beats 3/5medium · avg 61%▇▇ 3.9%typical
MMMLU lab83.4% ✎██··█···█·██ beats 3/5medium · avg 69%▇ 3.5%typical
MRCR v2 8-needle, 128k lab43.4% ✎▄▄·▄···█···▄ beats 3/5hard · avg 22%▇ 3.2%at its level
IFBench lab74.0% ✎▄▄·▄······▄█ beats 4/5medium · avg 41%▇ 2.7%at its level
2 more tests
testresultvs the others in its rundifficultycountswhy
Big Bench Extra Hard micro avg lab53.0% ✎█··▄···▄·▄·▄ beats 3/5hard · avg 28%▇ 2.4%at its level
HLE lab5.2% ✎█···█······█ beats 0/2very hard · avg 4.2%▇ 1.0%small run

$ where to run it

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

  1. 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 | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run Gemma 4 12B · needs 10.1 GB memory, 7.56 GB download · from huggingface.co/lmstudio-community
    chat in the terminal
    llama cli -hf lmstudio-community/gemma-4-12B-it-GGUF:Q4_K_M
  3. 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

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Gemma 4 12B · needs 10.1 GB memory, 7.56 GB download · from huggingface.co/lmstudio-community

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/lmstudio-community/gemma-4-12B-it-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Gemma 4 12B · needs 10.5 GB memory, 8.02 GB download · from ollama.com
    chat in the terminal
    ollama run gemma4:12b

MLX (Mac)

version

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run Gemma 4 12B · needs 9.3 GB memory, 6.74 GB download, Mac only · from huggingface.co/lmstudio-community
    chat in the terminal
    mlx_lm.chat --model lmstudio-community/gemma-4-12B-it-MLX-4bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model lmstudio-community/gemma-4-12B-it-MLX-4bit

Model repository and documentation: huggingface.co/google ↗

$ how the score was worked out · Gemma Team — Gemma 4 Technica… 63%, XHToken/Spark-X2.5-4B model c… 35%, google/gemma-4-31B-it model c… 2%

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

sourceresultsshare of the scorelicence
Gemma Team — Gemma 4 Technical Report · maker-reported20CC BY 4.0
XHToken/Spark-X2.5-4B model card9Apache-2.0
google/gemma-4-31B-it model card · maker-reported1Apache-2.0
prior · pull toward the middle
weighted average= 61.7
$ published speed measurements · 2

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 128GBGemma QAT GGUF UD-Q4_K_XL29.34 tok/sllama.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
note

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 ↗
AMD Radeon 780M Graphics, 64 GB RAMq4_k_m · layers offloaded6.49 tok/sollama (version not recorded) · llmfit bench 1.1.10 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (300 on average); eval_count ÷ eval_duration, generation only
note

Community submission to llmfit on 2026-08-24 (AMD Ryzen 7 255 w/ Radeon 780M Graphics, 64 GB RAM, windows); 6.46–6.52 tok/s across runs. The download is larger than the GPU's memory, so Ollama ran part of it on the CPU.

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