whatmodel.sh / Gemma 2B (base)

Gemma 2B (base) is an open-weights language model from Google, released February 2024. Its published size is 2.51B parameters and a 8k-token context window. Licence: gemma.

Catalogue identity notes

Maker repo google/gemma-2b @9cf48e5: licence tag gemma. 2,506,172,416 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-02: month the maker's Hugging Face repo was created (createdAt 2024-02-08). Pretrained Gemma 1.0 2B; the catalogue's gemma-2b is the instruction-tuned Gemma 2B IT. Ollama tags gemma:2b-text-q4_K_M, gemma:2b-text-q8_0 (sizes as listed on the tags page, observed 2026-09-29).

30.8±0.6#667 of 743 LLMsfrom 37 benchmark results across 9 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Gemma 2B (base), out of 897 with a score, then more from Google.

#modelscorewhereRAMreleased
792Falcon 40B Instruct TII31±2local~27GB2023-05
793Granite 3.1 1B-A400M Instruct IBM31±2local~2.4GB2024-12
794Gemma 2B (base) Google31±1local~3.2GB2024-02
795Falcon 7B (base) TII31±1local~5.9GB2023-04
796Gemma 1.1 2B IT Google31±1local~3.2GB2024-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

coding▁▁▁▃▆▇█▆▆▃▃▁ #451 of 474 · 67% of its score · 7 tests

Beats Qwen3.5 2B, Molmo 7B-D (0924), Tulu 2 7B here, though they rank higher overall. Trails Falcon3 1B Instruct, Granite 3.0 1B-A400M Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval +325.0% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 9/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 37%sharp · several runs
HumanEval+20.7% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 8/99easy · avg 71%▇▇▇▇▇▇ 14%sharp
HumanEvalSynthesize (HumanEvalPack, 6-language average)17.2% ✎▁·▃▁▂▆▅█▄▄▁▂ beats 1/35medium · avg 62%▇▇ 4.6%typical
MBPP+34.1% ✎▁···▁▃▂▅▇█▆▂ beats 2/75easy · avg 66%▇▇ 4.1%at its level
MBPP lab +129.2% ✎▁▁▃▄▅█▆▅▄▁▂▁ beats 7/86easy · avg 72%▇ 3.2%at its level · several runs
HumanEvalExplain (HumanEvalPack, 6-language average)10.9% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 1/35medium · avg 46%▇ 2.0%typical
HumanEvalFix (HumanEvalPack, 6-language average)1.9% ✎▃·▁▁▄██▄█▁▅▅ beats 0/35medium · avg 52%▇ 1.5%sharp
math▁▁▃▅█▆▅█▄▁▁▁ #340 of 440 * · 3.9% of its score · 2 tests

Beats GPT-4 (0613), Athene-70B, Gemma 2 27B IT here, though they rank higher overall.

testresultvs the others in its rundifficultycountswhy
GSM8K lab17.7% ✎▂▂▂▂▃▄▅▇██▆▄ beats 48/206easy · avg 79%▇ 2.6%sharp · small run
MATH lab11.8% ✎▃▅▂▆▅▃▅▅█▃▃▂ beats 9/30medium · avg 49%▇ 1.3%small run
other tests22 not in a task · 29% of its score
testresultvs the others in its rundifficultycountswhy
EvoEval (overall)12.8% ✎▃▂▃▄▄█▁▄▅▃▁▃ beats 0/42medium · avg 52%▇▇ 5.6%typical
Natural Questions (closed book) +114.8% ✎▁·▁·▁▂▁▂·▅▂█ beats 13/28medium · avg 49%▇ 3.6%several runs
CommonsenseQA lab65.3% ✎█·····▂▂▃▂▄▄ beats 27/38very easy · avg 94%▇ 2.9%sharp · at its level · small run
BIG-Bench Hard lab35.2% ✎▁▁▁▁▂▄▅▆█▃▃▁ beats 24/155easy · avg 79%▇ 2.0%sharp · small run
MedQA (USMLE, 4 options)29.2% ✎▁▁··▄▃▁··▄▃█ beats 5/17medium · avg 71%▇ 1.9%sharp
ARC Challenge lab42.1% ✎▄▁▁▂▁▄█▇▃▂▃▂ beats 59/140easy · avg 79%▇ 1.8%sharp · small run
TriviaQA +147.8% ✎▁··▁█▃▃▁▄▅▄█ beats 19/28easy · avg 81%▇ 1.4%at its level · small run · several runs
MMLU lab42.3% ✎▁▁▁▁▁▂▃▅██▆▄ beats 33/215easy · avg 81%▇ 1.4%at its level · small run
14 more tests
testresultvs the others in its rundifficultycountswhy
OpenBookQA lab47.8% ✎▅▁▁▁▂▂▃█▃▁▃▁ beats 62/107medium · avg 68%▇ 1.1%small run
WinoGrande lab65.4% ✎▁▁▁▁▂▁▁▅▇█▃▁ beats 62/131easy · avg 84%▇ 1.0%at its level · small run
MedMCQA30.2% ✎▂▂··▄▄▂▂·▄██ beats 2/17medium · avg 63%▇ 1.0%typical
AGIEval English (Gemma report) lab24.2% ✎▄··········█ beats 0/2medium · avg 62%▇ 0.9%at its level · small run
HellaSwag lab71.4% ✎▁▁▁▂▂▂▄▆█▇▄▂ beats 72/135very easy · avg 89%▇ 0.9%at its level · small run
BoolQ lab69.4% ✎▁····▁▂█▆▅▆▄ beats 50/103easy · avg 89%▇ 0.8%at its level · small run
Open PT-LLM Leaderboard average (9 Portuguese tasks)44.1% ✎▃▁▁▁▁▁▃▁▂█▅▁ beats 54/276medium · avg 72%▇ 0.6%noisy
ARC Easy lab73.2% ✎▁▃▂▄▆█▅▃▁··▁ beats 74/100easy · avg 87%▇ 0.5%blunt · at its level · small run
Social IQA lab49.7% ✎▁·▁██▄▅▁▂▃▇▁ beats 34/59medium · avg 63%▇ 0.4%blunt · small run
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy26.9% ✎▃·▃▁▂▁▂▅█▇▄▁ beats 9/100medium · avg 67%▇ 0.3%sharp · noisy
PIQA lab77.3% ✎▁▁▁▂▂▃▅█▅▃▁▁ beats 66/123easy · avg 86%▇ 0.3%blunt · at its level · small run
PubMedQA66.4% ✎▂·▂▆·▄▃▄▄▂█▂ beats 7/17medium · avg 75%▇ 0.2%blunt · at its level
HaluEval QA hallucination detection (accuracy)48.6% ✎█▁▁·▁▁·▁▁▁▁▁ beats 7/27hard · avg 66%▇ 0.2%too hard for it · noisy
TruthfulQA MC233.1% ✎▅▃█▆▁▂▅···▁▁ beats 0/31medium · avg 57%▇ 0.1%blunt · at its level

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

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/MaziyarPanahi/gemma-2b-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 2B (base) · needs 3.3 GB memory, 1.76 GB download · from ollama.com
    chat in the terminal
    ollama run gemma:2b-text-q4_K_M

Model repository and documentation: huggingface.co/google ↗

$ how the score was worked out · EvalPlus / EvalPerf published… 39%, Gemma report — original evalu… 23%, Top Leaderboard Ranking = Top… 17% and 6 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

$ 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