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).
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.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 792 | 31±2 | local | |||
| 793 | 31±2 | local | |||
| 794 | 31±1 | local | |||
| 795 | 31±1 | local | |||
| 796 | 31±1 | local | |||
| more from Google | |||||
| 3 | 84±1 | api $4.00/M | |||
| 9 | 81±1 | api $4.00/M | |||
| 14 | 79±2 | api $3.00/M | |||
$ 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.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +3 | 25.0% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 9/99 | 37% |
| HumanEval+ | 20.7% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 8/99 | 14% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 17.2% ✎ | ▁·▃▁▂▆▅█▄▄▁▂ beats 1/35 | 4.6% |
| MBPP+ | 34.1% ✎ | ▁···▁▃▂▅▇█▆▂ beats 2/75 | 4.1% |
| MBPP lab +1 | 29.2% ✎ | ▁▁▃▄▅█▆▅▄▁▂▁ beats 7/86 | 3.2% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 10.9% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 1/35 | 2.0% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 1.9% ✎ | ▃·▁▁▄██▄█▁▅▅ beats 0/35 | 1.5% |
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.
other tests22 not in a task · 29% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 12.8% ✎ | ▃▂▃▄▄█▁▄▅▃▁▃ beats 0/42 | 5.6% |
| Natural Questions (closed book) +1 | 14.8% ✎ | ▁·▁·▁▂▁▂·▅▂█ beats 13/28 | 3.6% |
| CommonsenseQA lab | 65.3% ✎ | █·····▂▂▃▂▄▄ beats 27/38 | 2.9% |
| BIG-Bench Hard lab | 35.2% ✎ | ▁▁▁▁▂▄▅▆█▃▃▁ beats 24/155 | 2.0% |
| MedQA (USMLE, 4 options) | 29.2% ✎ | ▁▁··▄▃▁··▄▃█ beats 5/17 | 1.9% |
| ARC Challenge lab | 42.1% ✎ | ▄▁▁▂▁▄█▇▃▂▃▂ beats 59/140 | 1.8% |
| TriviaQA +1 | 47.8% ✎ | ▁··▁█▃▃▁▄▅▄█ beats 19/28 | 1.4% |
| MMLU lab | 42.3% ✎ | ▁▁▁▁▁▂▃▅██▆▄ beats 33/215 | 1.4% |
14 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| OpenBookQA lab | 47.8% ✎ | ▅▁▁▁▂▂▃█▃▁▃▁ beats 62/107 | 1.1% |
| WinoGrande lab | 65.4% ✎ | ▁▁▁▁▂▁▁▅▇█▃▁ beats 62/131 | 1.0% |
| MedMCQA | 30.2% ✎ | ▂▂··▄▄▂▂·▄██ beats 2/17 | 1.0% |
| AGIEval English (Gemma report) lab | 24.2% ✎ | ▄··········█ beats 0/2 | 0.9% |
| HellaSwag lab | 71.4% ✎ | ▁▁▁▂▂▂▄▆█▇▄▂ beats 72/135 | 0.9% |
| BoolQ lab | 69.4% ✎ | ▁····▁▂█▆▅▆▄ beats 50/103 | 0.8% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 44.1% ✎ | ▃▁▁▁▁▁▃▁▂█▅▁ beats 54/276 | 0.6% |
| ARC Easy lab | 73.2% ✎ | ▁▃▂▄▆█▅▃▁··▁ beats 74/100 | 0.5% |
| Social IQA lab | 49.7% ✎ | ▁·▁██▄▅▁▂▃▇▁ beats 34/59 | 0.4% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 26.9% ✎ | ▃·▃▁▂▁▂▅█▇▄▁ beats 9/100 | 0.3% |
| PIQA lab | 77.3% ✎ | ▁▁▁▂▂▃▅█▅▃▁▁ beats 66/123 | 0.3% |
| PubMedQA | 66.4% ✎ | ▂·▂▆·▄▃▄▄▂█▂ beats 7/17 | 0.2% |
| HaluEval QA hallucination detection (accuracy) | 48.6% ✎ | █▁▁·▁▁·▁▁▁▁▁ beats 7/27 | 0.2% |
| TruthfulQA MC2 | 33.1% ✎ | ▅▃█▆▁▂▅···▁▁ beats 0/31 | 0.1% |
$ 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
- 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 3.2 GB memory, 1.63 GB download · 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 3.2 GB memory, 1.63 GB download · 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 3.3 GB memory, 1.76 GB download · from ollama.comchat 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
| source | results | share of the score |
|---|---|---|
| 3 | 39% | |
| 18 | 23% | |
| 2 | 17% | |
| 3 | 8% | |
| 2 | 5% | |
| 4 | 3% | |
| 3 | 3% | |
| 1 | 1% | |
| 1 | 0% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 30.8 |
$ 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