whatmodel.sh / Gemma 7B (base)

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

Catalogue identity notes

Maker repo google/gemma-7b @ff6768d: licence tag gemma. 8,537,680,896 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 7B; the catalogue's gemma-7b is the instruction-tuned Gemma 7B IT. Ollama tags gemma:7b-text-q4_K_M, gemma:7b-text-q8_0 (sizes as listed on the tags page, observed 2026-09-29).

37.0±0.5#618 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 7B (base), out of 897 with a score, then more from Google.

#modelscorewhereRAMreleased
731Llama 3 8B (base) Meta37±1local~6.7GB2024-04
732Flan-T5 XL Google37±1local~14GB2022-10
733Gemma 7B (base) Google37±1local~7.1GB2024-02
734Tulu 2 DPO 7B Allen Institute for AI37±1local~5.8GB2023-11
735Vicuna 13B v1.3 LMSYS37±2local~29GB2023-06
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▁▁▁▃▆▇█▆▆▃▃▁ #430 of 474 · 70% of its score · 7 tests

Beats DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B, DeepSeek R1 Distill Llama 8B here, though they rank higher overall. Trails Llama 3.2 1B Instruct, SmolLM2 1.7B Instruct, Granite 3B Code Base (2K) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval +335.4% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 20/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 39%sharp · at its level · several runs
HumanEval+28.7% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 17/99easy · avg 71%▇▇▇▇▇▇ 16%sharp · at its level
HumanEvalSynthesize (HumanEvalPack, 6-language average)34.4% ✎▁·▂▁▂▆▅█▄▄▁▂ beats 12/35medium · avg 62%▇▇ 4.5%at its level
MBPP+43.4% ✎▁···▁▁▃▅▇█▆▂ beats 9/75easy · avg 66%▇ 3.4%at its level
MBPP lab +144.4% ✎▁▁▁▄▅█▆▅▄▁▂▁ beats 25/86easy · avg 72%▇ 2.7%at its level · several runs
HumanEvalExplain (HumanEvalPack, 6-language average)15.0% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 9/35medium · avg 46%▇ 2.4%typical
HumanEvalFix (HumanEvalPack, 6-language average)7.4% ✎▁·▁▁▄██▄█▁▅▅ beats 3/35medium · avg 52%▇ 2.0%sharp
math▁▁▃▅█▆▅█▄▁▁▁ #230 of 440 · 5.5% of its score · 2 tests

Beats MiniMax-M2.1, DeepSeek V3 (Dec '24), GPT-4o (2024-08-06) here, though they rank higher overall.

testresultvs the others in its rundifficultycountswhy
GSM8K +153.3% ✎▄··▄···▄··█▄ beats 4/5easy · avg 79%▇ 3.5%sharp · at its level · small run · several runs
MATH +124.1% ✎▃·▃····▃···█ beats 5/5medium · avg 49%▇ 2.0%small run · several runs
other tests22 not in a task · 24% of its score
testresultvs the others in its rundifficultycountswhy
EvoEval (overall)23.0% ✎▂▂▃▄▄█▁▄▅▃▁▃ beats 7/42medium · avg 52%▇▇ 6.2%typical
CommonsenseQA lab71.3% ✎█·····▂▂▃▂▄▄ beats 31/38very easy · avg 94%▇ 2.2%sharp · at its level · small run
MedQA (USMLE, 4 options)48.7% ✎▁▁··▄▁▁··▄▃█ beats 10/17medium · avg 71%▇ 2.1%sharp · at its level
BIG-Bench Hard lab55.1% ✎▁▁▁▁▂▄▅▆█▃▃▁ beats 76/155easy · avg 79%▇ 1.9%sharp · at its level · small run
ARC Challenge lab53.2% ✎▄▁▁▂▁▄█▇▃▂▃▂ beats 95/140easy · avg 79%▇ 1.6%sharp · at its level · small run
MMLU lab64.3% ✎▁▁▁▁▁▂▂▅██▆▄ beats 102/215easy · avg 81%▇ 1.2%at its level · small run
MedMCQA49.3% ✎▂▂··▄▄▂▂·▄██ beats 12/17medium · avg 63%▇ 1.0%at its level
OpenBookQA lab52.8% ✎▅▁▁▁▂▂▃█▃▁▃▁ beats 78/107medium · avg 68%▇ 1.0%at its level · small run
14 more tests
testresultvs the others in its rundifficultycountswhy
WinoGrande lab72.3% ✎▁▁▁▁▂▁▁▅▇█▃▁ beats 102/131easy · avg 84%▇ 0.8%at its level · small run
Natural Questions (closed book) lab23.0% ✎▂▁▁▁▂▄▄▃▅█▅▁ beats 48/68medium · avg 40%▇ 0.8%small run
TriviaQA lab63.4% ✎▁▁▂▂▄▄▃▆▅█▅▂ beats 54/80easy · avg 81%▇ 0.7%at its level · small run
AGIEval English (Gemma report) lab41.7% ✎▄··········█ beats 2/2medium · avg 62%▇ 0.7%at its level · small run
Open PT-LLM Leaderboard average (9 Portuguese tasks)64.2% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 109/276medium · avg 72%▇ 0.6%at its level · noisy
HellaSwag lab81.2% ✎▁▁▁▂▂▂▄▆█▇▄▂ beats 117/135very easy · avg 89%▇ 0.6%at its level · small run
BoolQ lab83.2% ✎▁····▁▂█▆▅▆▄ beats 84/103easy · avg 89%▇ 0.6%at its level · small run
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy84.9% ✎▁▁▁▁▁▁▁▂▄█▄▃ beats 98/146easy · avg 82%▇ 0.5%at its level · noisy
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy33.5% ✎▃·▁▁▃▁▂▅█▇▄▁ beats 17/100medium · avg 67%▇ 0.4%sharp · noisy
Social IQA lab51.8% ✎▁·▁██▄▅▁▂▃▇▁ beats 38/59medium · avg 63%▇ 0.4%blunt · at its level · small run
ARC Easy lab81.5% ✎▁▃▂▄▆█▅▃▁··▁ beats 93/100easy · avg 87%▇ 0.4%blunt · at its level · small run
PIQA lab81.2% ✎▁▁▁▂▂▃▅█▅▃▁▁ beats 101/123easy · avg 86%▇ 0.2%blunt · at its level · small run
PubMedQA75.6% ✎▂·▂▆·▄▂▄▄▂█▂ beats 16/17medium · avg 75%▇ 0.1%blunt · at its level
TruthfulQA MC244.9% ✎▅▃█▆▁▂▅···▁▁ beats 19/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 7B (base) · needs 7.1 GB memory, 5.33 GB download · from huggingface.co/MaziyarPanahi
    chat in the terminal
    llama cli -hf MaziyarPanahi/gemma-7b-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf MaziyarPanahi/gemma-7b-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 7B (base) · needs 7.1 GB memory, 5.33 GB download · from huggingface.co/MaziyarPanahi

    open in LM Studio ↗

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

Model repository and documentation: huggingface.co/google ↗

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