whatmodel.sh / Gemma 2B (base)
Gemma 2B (base)
↗ share
+ contribute
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).
$ how it compares
The LLMs ranked either side of Gemma 2B (base), out of 828 with a score, then more from Google.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 745 | 29±2 | local | |||
| 746 | 29±1 | local | |||
| 747 | 29±1 | local | |||
| 748 | 29±1 | local | |||
| 749 | 29±1 | local | |||
| more from Google | |||||
| 9 | 82±1 | limited preview | |||
| 23 | 77±1 | api $1.50/M | |||
| 32 | 76±1 | api $1.50/M | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #438 of 458 · 66% of its score · 7 tests
Beats Qwen3.5 2B, Molmo 7B-D (0924), DeepSeek R1 Distill Qwen 1.5B here, though they rank higher overall. Trails Falcon3 1B Instruct, Granite 3.0 1B-A400M Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +3 | 25.0% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 9/99 | 38% |
| HumanEval+ | 20.7% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 8/99 | 14% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 17.2% ✎ | ▁·▃▁▂▆▅█▄▄▁▂ beats 1/35 | 4.3% |
| MBPP+ | 34.1% ✎ | ▁···▁▃▂▅▇█▆▂ beats 2/75 | 3.7% |
| MBPP lab +1 | 29.2% ✎ | ▁▁▃▄▅█▄▅▃▁▂▁ beats 5/81 | 3.0% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 10.9% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 1/35 | 2.0% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 1.9% ✎ | ▃·▁▁▄██▄█▁▅▅ beats 0/35 | 1.4% |
math▁▂▃▅▆▅▄█▄▁▁▁ #373 of 398 * · 3.2% of its score · 2 tests
Beats Command R (03-2024), Molmo 7B-D (0924), Mistral 7B Instruct v0.3 here, though they rank higher overall.
other tests22 not in a task · 30% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 12.8% ✎ | ▃▂▃▄▄█▁▄▅▃▁▃ beats 0/42 | 5.3% |
| Natural Questions (closed book) +1 | 14.8% ✎ | ▁·▁·▁▂▁▂·▅▂█ beats 13/28 | 4.8% |
| MedQA (USMLE, 4 options) | 29.2% ✎ | ▁▁··▄▃▁··▄▃█ beats 5/17 | 2.2% |
| ARC Challenge lab | 42.1% ✎ | ▆▁▁▂▂▅▇█▄▃▃▂ beats 43/97 | 2.1% |
| BIG-Bench Hard lab | 35.2% ✎ | ▁▁▁▁▂▄▅▅█▃▄▁ beats 15/129 | 1.9% |
| TriviaQA +1 | 47.8% ✎ | ▁··▁█▃▃▁▄▅▄█ beats 19/28 | 1.8% |
| MedMCQA | 30.2% ✎ | ▂▂··▄▄▂▂·▄██ beats 2/17 | 1.4% |
| WinoGrande lab | 65.4% ✎ | ▁···▂▁▁▅█▇▃▁ beats 43/87 | 1.3% |
14 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| OpenBookQA lab | 47.8% ✎ | █▁▁▁▄▃▃▇▂▁▄▂ beats 42/65 | 1.3% |
| BoolQ lab | 69.4% ✎ | ▁▄▅▆▂▆▄▄█▃▄▄ beats 20/58 | 1.3% |
| MMLU lab | 42.3% ✎ | ▁▁▁▁▁▂▃▅█▃▆▃ beats 21/183 | 1.2% |
| HellaSwag lab | 71.4% ✎ | ▁▁▁▁▂▂▃▇█▆▅▃ beats 43/85 | 1.1% |
| AGIEval English (Gemma report) lab | 24.2% ✎ | ▄··········█ beats 0/2 | 0.9% |
| CommonsenseQA lab | 65.3% ✎ | ▄·▄▄·▄····▄█ beats 4/6 | 0.8% |
| ARC Easy lab | 73.2% ✎ | ▁▂▃▂▃▅▇█▇▆▄▆ beats 50/65 | 0.7% |
| Social IQA lab | 49.7% ✎ | ▂·▂██▅▅▁▂▃▆▁ beats 31/51 | 0.5% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 44.1% ✎ | ▃▁▁▁▁▁▃▁▂█▅▁ beats 54/276 | 0.5% |
| PIQA lab | 77.3% ✎ | ▁▁▁▃▃▄▇█▄▃▁▁ beats 50/83 | 0.4% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 26.9% ✎ | ▃·▃▁▂▁▂▅█▇▄▁ beats 9/100 | 0.3% |
| TruthfulQA MC2 | 33.1% ✎ | ▅▃█▆▁▂▅···▁▁ beats 0/31 | 0.3% |
| PubMedQA | 66.4% ✎ | ▂·▂▆·▄▃▄▄▂█▂ beats 7/17 | 0.2% |
| HaluEval QA hallucination detection (accuracy) | 48.6% ✎ | █▁▁·▁▁·▁▁▁▁▁ beats 7/27 | 0.2% |
$ where to run it
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 2B (base) · needs ~1.6 GB · from huggingface.co/MaziyarPanahichat in the terminal
llama cli -hf MaziyarPanahi/gemma-2b-GGUF:Q4_K_M - 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
- Install LM Studio · Open the app once before using the lms command.
- Run Gemma 2B (base) · needs ~1.6 GB · from huggingface.co/MaziyarPanahi
- Or download it in the terminal
lms get https://huggingface.co/MaziyarPanahi/gemma-2b-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 2B (base) · needs ~1.8 GB · from ollama.comchat in the terminal
ollama run gemma:2b-text-q4_K_M
Official weights and documentation: huggingface.co/google ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 39%, Gemma report — original evalu… 22%, Top Leaderboard Ranking = Top… 16% 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