whatmodel.sh / Gemma 3 4B

Gemma 3 4B is an open-weights language model from Google, released March 2025. Its published size is 4.3B parameters and a 131k-token context window. Licence: gemma.

45.0±0.6#483 of 743 LLMsfrom 57 benchmark results across 17 sources

Score within the LMArena (text) comparison set only.

$ how it compares

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

#modelscorewhereRAMreleased
582Falcon3 7B Instruct TII45±2local~5.9GB2024-11
583Code Tulu 2 34B Allen Institute for AI45±2local~72GB2023-11
584Gemma 3 4B Google45±1api $0.063/M +local~3.8GB2025-03
585Phi-4-mini 3.8B Microsoft45±1api $0.13/M +local~4GB2025-02
586Ministral 8B (2410) Mistral45±1local~6.2GB2024-10
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▁▁▃▆█▄▅▅▃▃▂▁ #303 of 319 * · 2.3% of its score · 2 tests

Beats DBRX Instruct, QwQ-32B-Preview, DeepSeek-Coder-V2 Lite Instruct (16B-A2.4B) here, though they rank higher overall. Trails Granite 4.0 H 350M, ChatGLM3-6B, Qwen3 0.6B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
BFCL V4 (December 2025 archive)19.6% ✎▁▁▁▃██▅▅▆▂▂▂ beats 5/77hard · avg 31%▇ 1.4%typical
BFCL v339.6% ✎▁▁▁▁▃▃▅█▅▄▁▁ beats 14/114medium · avg 51%▇ 0.9%blunt · at its level
coding▁▁▁▃▆▇█▆▆▃▃▁ #376 of 474 · 11% of its score · 5 tests

Beats LFM2.5 8B-A1B, Qwen3-VL 2B Thinking, DeepSeek R1 Distill Qwen 7B here, though they rank higher overall. Trails Qwen2.5 1.5B Instruct, Code Tulu 2 13B, Phi-3-mini-128k-instruct (Apr 2024) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval lab71.3% ✎▁▁▁▁▂▂▆▆█▅▂▁ beats 141/205easy · avg 83%▇▇ 4.7%sharp · at its level
MBPP lab63.2% ✎▁▁▁▄▅█▆▅▄▁▂▁ beats 58/86easy · avg 70%▇ 2.2%at its level
VisEditBench strict pass rate (1,395 visualization-code editing tasks)21.3% ✎▄··█·▄··▄█·▄ beats 0/7hard · avg 33%▇ 1.8%at its level
LiveCodeBench (version unspecified) lab12.6% ✎▁···▃▁▁█▇▃▄▁ beats 1/38hard · avg 23%▇ 1.4%typical
BIRD-SQL (dev) lab36.3% ✎▂·······▃▂█▆ beats 1/11medium · avg 43%▇ 0.7%at its level
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #230 of 405 · 7.0% of its score · 3 tests

Beats Granite 4.2 8B, Mistral Small 4 (119B-A6.5B), Olmo 3.1 32B Think here, though they rank higher overall. Trails LFM2.5 1.2B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
LMArena (text)1303.3 ✎▁▁▁▂▃▂▃▆▆▇█▃ beats 130/388avg 1262▇▇ 3.8%blunt
IFEval mean of four measures76.8% ✎█··▄▄·▄····▄ beats 2/5easy · avg 84%▇ 2.3%typical
IFEval (aggregation unspecified) lab90.2% ✎▁▂▄▂▂▄▆██▅▂▁ beats 118/145very easy · avg 88%▇ 0.8%typical
math▁▁▃▅█▆▅█▄▁▁▁ #276 of 440 · 11% of its score · 6 tests

Beats GPT-4o (2024-11-20), GPT-4 Turbo (2024-04-09), Molmo 2 8B here, though they rank higher overall. Trails DeepSeek R1 Distill Qwen 1.5B, Gemma 7B (base), CodeGemma 7B (v1.0) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K lab89.2% ✎▂▂▂▂▃▄▅▇██▆▄ beats 176/206very easy · avg 93%▇▇ 4.7%sharp
MATH (subset unspecified) lab75.6% ✎▂▄▄▃█▇▅▆▄▃▄▁ beats 48/80easy · avg 82%▇ 3.1%at its level
MathVista (testmini) lab50.0% ✎▁··▁▄▄▆▇▄▅█▄ beats 8/48medium · avg 61%▇ 1.5%at its level · small run
MATH-50073.2% ✎▃····▃·█···▃ beats 2/5easy · avg 79%▇ 1.4%at its level
OTIS mock AIME 2024–20257.5% ✎▃▃▄▃▃▃▇▆█▄▃▆ beats 43/207very hard · avg 7.4%▇ 0.3%sharp · too hard for it · noisy
GSM8K loose substring accuracy89.9% ✎█·█··███···█ beats 5/5easy · avg 83%▇ 0.2%blunt
vision & documents▃▁▂▂▁▃▄▂▆▇█▄ #153 of 154 · 8.1% of its score · 10 tests

Trails Qwen3.5 0.8B, Qwen2-VL 2B Instruct, Phi-3.5-vision-instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
VisEditBench strict pass rate (1,395 visualization-code editing tasks)21.3% ✎▄··█·▄··▄█·▄ beats 0/7hard · avg 33%▇ 1.8%at its level
MathVista (testmini) lab50.0% ✎▁··▁▄▄▆▇▄▅█▄ beats 8/48medium · avg 61%▇ 1.5%at its level · small run
MMMU (val) lab48.8% ✎▁····▁▁▃█▆▆▅ beats 7/53medium · avg 57%▇ 1.4%at its level · small run
InfographicVQA lab50.0% ✎▃·▃▅█▃▃▃▃▃▃▃ beats 0/13easy · avg 66%▇ 1.1%at its level · small run
VQAv2 (val) lab62.4% ✎▃▅▃█·▃▅·▃·▃▅ beats 0/13easy · avg 72%▇ 0.6%blunt · at its level · small run
ChartQA lab68.8% ✎▁··▁▁▁▁▃▂▅▅█ beats 5/44easy · avg 77%▇ 0.5%blunt · at its level · small run
DocVQA lab75.8% ✎▃··▃▁▁▁▇█▇▄▅ beats 0/28very easy · avg 89%▇ 0.4%blunt · small run
VMMU (Vietnamese multimodal understanding and reasoning, mean accuracy over 7 tasks)25.4% ✎▅······▃·▅·█ beats 0/7very hard · avg 36%▇ 0.4%noisy
2 more tests
testresultvs the others in its rundifficultycountswhy
TextVQA lab57.8% ✎▃▁▁▄▅▁▃·▃▃▃█ beats 0/24easy · avg 74%▇ 0.2%blunt · at its level · small run
AI2D test lab74.8% ✎▁▁▅▇▃▇·▄·█·▃ beats 7/28easy · avg 84%▇ 0.2%blunt · small run
other tests29 not in a task · 64% of its score
testresultvs the others in its rundifficultycountswhy
GPQA Diamond +223.2% ✎▃▁▁▁▂▃▅▄▄▆█▃ beats 4/221hard · avg 37%▇▇▇ 8.5%sharp · small run · several runs
Medmarks-V mean win rate (19 verifiable medical benchmarks, 71 configurations)0.3214 ✎▃▄▃▃▇▄█▃▅▁▁▁ beats 0/30avg 0.421▇▇▇ 7.5%sharp
MMLU +158.4% ✎▄█···█·····▄ beats 0/5medium · avg 70%▇▇▇ 7.3%at its level · several runs
BIG-Bench Hard lab72.2% ✎▁▁▁▁▂▄▅▆█▃▃▁ beats 124/155easy · avg 79%▇▇ 4.6%sharp · at its level
MMLU-Pro +134.8% ✎███···██···█ beats 3/5medium · avg 43%▇ 3.5%at its level · several runs
Medmarks-V weighted mean win rate (61 models, 71 configurations)32.1% ✎▃▃▅▂▆▃█▅█▅▃▆ beats 0/34medium · avg 42%▇ 3.1%blunt · at its level
EQ-Bench 3 (emotional intelligence, judge Elo)1118.2 ✎▁·▂▁▄▅▅▃█▄▁▁ beats 15/62avg 1037▇ 2.5%typical
Global-MMLU-Lite lab54.5% ✎▂···▃·▂▂▂·██ beats 1/12medium · avg 65%▇ 2.3%at its level
21 more tests
testresultvs the others in its rundifficultycountswhy
MIMIC-CDM full information (4 pathologies)69.4% ✎▄·······▄█·▄ beats 1/4easy · avg 71%▇ 2.3%at its level
BRIDGE clinical text, zero-shot average (87 tasks)28.6% ✎▁▁▁▁▁▂▂▃▄▆█▃ beats 25/97hard · avg 32%▇ 2.1%blunt · at its level
IFBench (aggregation unspecified)23.5% ✎█··███··█··█ beats 3/5hard · avg 32%▇ 2.0%typical
Open Persian LLM Leaderboard v2 average (21 tasks)49.1% ✎▂▄▂▃█▄▃▆▃▅▂▂ beats 27/81medium · avg 57%▇ 1.9%blunt · at its level
MIMIC-CDM clinical decision making (4 pathologies)50.8% ✎█······█··██ beats 1/3medium · avg 61%▇ 1.9%at its level
Multi-IF three-turn average66.6% ✎▄··█▄··▄···▄ beats 4/5easy · avg 70%▇ 1.7%at its level
SimpleQA lab4.0% ✎▄▄▄▆█▆███·▂█ beats 3/32very hard · avg 7.0%▇ 1.7%too hard for it
MMMLU seven languages (Liquid)50.1% ✎▄·█····█···▄ beats 2/5medium · avg 59%▇ 1.6%at its level
FACTS Grounding lab70.1% ✎▄········▄·█ beats 1/3easy · avg 72%▇ 1.4%at its level
Big Bench Extra Hard micro avg lab11.0% ✎▄▄·█▄·▄·▄·▄▄ beats 1/8hard · avg 18%▇ 1.3%small run
RULER 128k lab46.8% ✎▃··▅▄█▅█▇·▃▃ beats 4/33medium · avg 59%▇ 1.3%at its level · small run
MGSM six languages, loose (Liquid)87.3% ✎▄·▄·█···▄··▄ beats 5/5easy · avg 81%▇ 1.1%at its level
Open PT-LLM Leaderboard average (9 Portuguese tasks)67.3% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 134/276medium · avg 72%▇ 1.0%at its level · noisy
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy57.9% ✎▃·▁▁▂▁▂▅█▇▄▁ beats 30/100medium · avg 67%▇ 0.8%sharp · at its level · noisy
WMT24++ (chrF) lab46.8% ✎█······█··██ beats 1/3medium · avg 52%▇ 0.6%blunt · at its level
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy77.7% ✎▁▁▁▁▁▁▁▂▄█▄▃ beats 59/146easy · avg 82%▇ 0.6%at its level · noisy
GSM-Plus68.4% ✎█·····███·██ beats 5/5easy · avg 71%▇ 0.4%blunt · at its level
Vectara hallucination leaderboard, 2025 dataset (HHEM-2.3, factual consistency rate)96.3% ✎▁▁▂▃▄▄█▆▃▂▂▁ beats 92/140very easy · avg 94%▇ 0.3%blunt · maxed out · noisy
WMT24++ lab77.2% ✎█···█·█··███ beats 0/5easy · avg 73%▇ 0.3%blunt · at its level
Chess Puzzles (Epoch)0.0% ✎█▁▁▁▁▂▄▂▃▃▂▁ beats 33/157very hard · avg 5.6%▇ 0.1%sharp · too hard for it · noisy
Vectara hallucination leaderboard (HHEM-2.3, factual consistency rate)93.6% ✎▁▂▁▂▅█▂▃▃▃▁▁ beats 76/100very easy · avg 90%▇ 0.0%blunt

$ where to run it

Through an API

api · DeepInfra · $0.063/M · $0.05 in / $0.1 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-4b-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

  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 3 4B · needs 4.9 GB memory, 3.34 GB download · from huggingface.co/ggml-org
    chat in the terminal
    llama cli -hf ggml-org/gemma-3-4b-it-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf ggml-org/gemma-3-4b-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 3 4B · needs 4.9 GB memory, 3.34 GB download · from huggingface.co/ggml-org

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/ggml-org/gemma-3-4b-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 3 4B · needs 4.9 GB memory, 3.35 GB download · from ollama.com
    chat in the terminal
    ollama run gemma3:4b

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 3 4B · needs 3.8 GB memory, 2.18 GB download, Mac only · from huggingface.co/Outlier-Ai
    chat in the terminal
    mlx_lm.chat --model Outlier-Ai/gemma-3-4b-it-MLX-4bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model Outlier-Ai/gemma-3-4b-it-MLX-4bit

Model repository and documentation: huggingface.co/google ↗

$ how the score was worked out · Google DeepMind Gemma 3 270M… 38%, LFM2 Technical Report — Liqui… 19%, Medmarks: A Comprehensive Ope… 11% and 14 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

sourceresultsshare of the scorelicence
Google DeepMind Gemma 3 270M IT model card · maker-reported19CC-BY-4.0
LFM2 Technical Report — Liquid AI own SmolLM3 evaluation11CC BY 4.0
Medmarks: A Comprehensive Open-Source LLM Benchmark Suite for Medical Tasks — authors' own runs of 61 models2CC BY 4.0
Gemma Team — Gemma 3 Technical Report · maker-reported6CC BY 4.0
MIMIC Clinical Decision Making leaderboard2Apache-2.0
LMArena leaderboard dataset1CC BY 4.0
Epoch AI — internal evaluations3CC BY 4.0
EQ-Bench 3 canonical leaderboard results1MIT
Berkeley Function Calling Leaderboard result archive2Apache-2.0
BRIDGE Medical Leaderboard (Harvard Medical School / Brigham and Women's YLab)1MIT
Open Persian LLM Leaderboard v2 (Part DP AI and AUT NLP Lab)1Apache-2.0
VisEditBench: Can Vision-Language Models Edit Visualization Code from Multimodal Feedback? (arXiv:2608.10408v1)1CC BY 4.0
EuroEval leaderboards (results collection), English generative leaderboard2MIT
Open Portuguese LLM Leaderboard (archived)1Apache-2.0
VMMU: A Vietnamese Multitask Multimodal Understanding and Reasoning Benchmark (arXiv:2508.13680v5)1CC-BY-4.0
Vectara hallucination leaderboard (vectara/hallucination-leaderboard repository)2Apache-2.0
TranslateGemma Technical Report (Google), arXiv 2601.09012v2 · maker-reported1CC BY 4.0
prior · pull toward the middle
weighted average= 45.0
$ published speed measurements · 14

Reference results for the hardware, engine and settings below. They aren't verified speeds of the downloads above or predictions for your machine.

NVIDIA DGX Spark (GB10)QAT Q4_081.05 tok/sllama.cpp 11fb327bf (7941), CUDA · llama-bench; tg32; 32 generated tokens; context depth 0; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
NVIDIA DGX Spark (GB10)QAT Q4_076.37 tok/sllama.cpp 11fb327bf (7941), CUDA · llama-bench; tg32 @ d4096; 32 generated tokens; context depth 4096; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
NVIDIA DGX Spark (GB10)QAT Q4_062.28 tok/sllama.cpp 11fb327bf (7941), CUDA · llama-bench; tg32 @ d32768; 32 generated tokens; context depth 32768; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
Apple M2 Ultra (GPU core count and RAM not specified)QAT Q4_0134.28 tok/sllama.cpp b828e18c7 (7948), Metal/BLAS · llama-bench; tg32; 32 generated tokens; context depth 0; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
Apple M2 Ultra (GPU core count and RAM not specified)QAT Q4_0133.11 tok/sllama.cpp b828e18c7 (7948), Metal/BLAS · llama-bench; tg32 @ d4096; 32 generated tokens; context depth 4096; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
Apple M2 Ultra (GPU core count and RAM not specified)QAT Q4_0113.14 tok/sllama.cpp b828e18c7 (7948), Metal/BLAS · llama-bench; tg32 @ d32768; 32 generated tokens; context depth 32768; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
NVIDIA DGX Spark (GB10)QAT Q4_071.61 tok/sllama.cpp 11fb327bf (7941), CUDA · llama-bench; tg32 @ d8192; 32 generated tokens; context depth 8192; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
NVIDIA DGX Spark (GB10)QAT Q4_070.89 tok/sllama.cpp 11fb327bf (7941), CUDA · llama-bench; tg32 @ d16384; 32 generated tokens; context depth 16384; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
Apple M2 Ultra (GPU core count and RAM not specified)QAT Q4_0125.85 tok/sllama.cpp b828e18c7 (7948), Metal/BLAS · llama-bench; tg32 @ d8192; 32 generated tokens; context depth 8192; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
Apple M2 Ultra (GPU core count and RAM not specified)QAT Q4_0125 tok/sllama.cpp b828e18c7 (7948), Metal/BLAS · llama-bench; tg32 @ d16384; 32 generated tokens; context depth 16384; n_ubatch=2048; flash attention=1; one sequence
note

Published token-generation mean; not prompt processing or aggregate batch throughput. Hardware core count and installed RAM are not inferred.

source ↗
Intel Alder Lake-P GT2 [Iris Xe Graphics] (integrated), 31 GB RAMq4_k_m8.21 tok/sollama (version not recorded) · llmfit bench 1.1.6 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (163 on average); eval_count ÷ eval_duration, generation only
note

Community submission to llmfit on 2026-08-06 (12th Gen Intel(R) Core(TM) i7-1270P, 31 GB RAM, linux); 7.81–8.58 tok/s across runs.

source ↗
Intel Alder Lake-P GT2 [Iris Xe Graphics] (integrated), 31 GB RAMq4_k_m7.88 tok/sollama (version not recorded) · llmfit bench 1.1.6 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (220 on average); eval_count ÷ eval_duration, generation only
note

Community submission to llmfit on 2026-08-12 (12th Gen Intel(R) Core(TM) i7-1270P, 31 GB RAM, linux); 6.74–9.32 tok/s across runs.

source ↗
Intel Alder Lake-P GT2 [Iris Xe Graphics] (integrated), 31 GB RAMq4_k_m8.93 tok/sollama (version not recorded) · llmfit bench 1.1.6 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (218 on average); eval_count ÷ eval_duration, generation only
note

Community submission to llmfit on 2026-08-12 (12th Gen Intel(R) Core(TM) i7-1270P, 31 GB RAM, linux); 8.33–9.65 tok/s across runs.

source ↗
Intel CoffeeLake-S GT2 [UHD Graphics 630] (integrated), 31 GB RAMq4_k_m5.98 tok/sollama (version not recorded) · llmfit bench 1.1.12 via Ollama: a warm-up, then 3 runs of up to 300 generated tokens (221 on average); eval_count ÷ eval_duration, generation only
note

Community submission to llmfit on 2026-09-02 (Intel(R) Core(TM) i5-9500T CPU @ 2.20GHz, 31 GB RAM, linux); 5.66–6.49 tok/s across runs.

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