whatmodel.sh / Gemma 7B (base)
Gemma 7B (base)
↗ share
+ contribute
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).
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.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 731 | 37±1 | local | |||
| 732 | 37±1 | local | |||
| 733 | 37±1 | local | |||
| 734 | 37±1 | local | |||
| 735 | 37±2 | 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▁▁▁▃▆▇█▆▆▃▃▁ #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.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +3 | 35.4% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 20/99 | 39% |
| HumanEval+ | 28.7% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 17/99 | 16% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 34.4% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 12/35 | 4.5% |
| MBPP+ | 43.4% ✎ | ▁···▁▁▃▅▇█▆▂ beats 9/75 | 3.4% |
| MBPP lab +1 | 44.4% ✎ | ▁▁▁▄▅█▆▅▄▁▂▁ beats 25/86 | 2.7% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 15.0% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 9/35 | 2.4% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 7.4% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 3/35 | 2.0% |
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.
other tests22 not in a task · 24% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 23.0% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 7/42 | 6.2% |
| CommonsenseQA lab | 71.3% ✎ | █·····▂▂▃▂▄▄ beats 31/38 | 2.2% |
| MedQA (USMLE, 4 options) | 48.7% ✎ | ▁▁··▄▁▁··▄▃█ beats 10/17 | 2.1% |
| BIG-Bench Hard lab | 55.1% ✎ | ▁▁▁▁▂▄▅▆█▃▃▁ beats 76/155 | 1.9% |
| ARC Challenge lab | 53.2% ✎ | ▄▁▁▂▁▄█▇▃▂▃▂ beats 95/140 | 1.6% |
| MMLU lab | 64.3% ✎ | ▁▁▁▁▁▂▂▅██▆▄ beats 102/215 | 1.2% |
| MedMCQA | 49.3% ✎ | ▂▂··▄▄▂▂·▄██ beats 12/17 | 1.0% |
| OpenBookQA lab | 52.8% ✎ | ▅▁▁▁▂▂▃█▃▁▃▁ beats 78/107 | 1.0% |
14 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| WinoGrande lab | 72.3% ✎ | ▁▁▁▁▂▁▁▅▇█▃▁ beats 102/131 | 0.8% |
| Natural Questions (closed book) lab | 23.0% ✎ | ▂▁▁▁▂▄▄▃▅█▅▁ beats 48/68 | 0.8% |
| TriviaQA lab | 63.4% ✎ | ▁▁▂▂▄▄▃▆▅█▅▂ beats 54/80 | 0.7% |
| AGIEval English (Gemma report) lab | 41.7% ✎ | ▄··········█ beats 2/2 | 0.7% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 64.2% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 109/276 | 0.6% |
| HellaSwag lab | 81.2% ✎ | ▁▁▁▂▂▂▄▆█▇▄▂ beats 117/135 | 0.6% |
| BoolQ lab | 83.2% ✎ | ▁····▁▂█▆▅▆▄ beats 84/103 | 0.6% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 84.9% ✎ | ▁▁▁▁▁▁▁▂▄█▄▃ beats 98/146 | 0.5% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 33.5% ✎ | ▃·▁▁▃▁▂▅█▇▄▁ beats 17/100 | 0.4% |
| Social IQA lab | 51.8% ✎ | ▁·▁██▄▅▁▂▃▇▁ beats 38/59 | 0.4% |
| ARC Easy lab | 81.5% ✎ | ▁▃▂▄▆█▅▃▁··▁ beats 93/100 | 0.4% |
| PIQA lab | 81.2% ✎ | ▁▁▁▂▂▃▅█▅▃▁▁ beats 101/123 | 0.2% |
| PubMedQA | 75.6% ✎ | ▂·▂▆·▄▂▄▄▂█▂ beats 16/17 | 0.1% |
| TruthfulQA MC2 | 44.9% ✎ | ▅▃█▆▁▂▅···▁▁ beats 19/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 7B (base) · needs 7.1 GB memory, 5.33 GB download · from huggingface.co/MaziyarPanahichat in the terminal
llama cli -hf MaziyarPanahi/gemma-7b-GGUF:Q4_K_M - 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
- Install LM Studio · Open the app once before using the lms command.
- Run Gemma 7B (base) · needs 7.1 GB memory, 5.33 GB download · from huggingface.co/MaziyarPanahi
- Or download it in the terminal
lms get https://huggingface.co/MaziyarPanahi/gemma-7b-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 7B (base) · needs 7.3 GB memory, 5.52 GB download · from ollama.comchat 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
| source | results | share of the score |
|---|---|---|
| 3 | 41% | |
| 18 | 20% | |
| 2 | 18% | |
| 5 | 11% | |
| 2 | 5% | |
| 3 | 3% | |
| 2 | 1% | |
| 1 | 1% | |
| 1 | 0% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 37.0 |
$ 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