whatmodel.sh / Gemma 2B IT
Gemma 2B IT
↗ share
+ contribute
Gemma 2B IT 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
Arena entry 'gemma-2b-it' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'gemma-2b-it' as 'Gemma-2B-it' (Google, Gemma license), linking https://huggingface.co/google/gemma-2b-it. Maker repo google/gemma-2b-it @9698841: licence tag gemma. 2,506,172,416 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-02: Google Gemma releases page (ai.google.dev/gemma/docs/releases): 'February 21, 2024 Initial release of Gemma in 2B and 7B sizes'. The ollama gemma library was updated to v1.1; the tags used here are the separate original (non-v1.1) builds, which have different digests from the -v1.1- tags.
$ how it compares
The LLMs ranked either side of Gemma 2B IT, out of 828 with a score, then more from Google.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 764 | 27±2 | local | |||
| 765 | 27±2 | comparison only | |||
| 766 | 27±1 | local | |||
| 767 | 27±3 | local | |||
| 768 | 27±2 | 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▁▁▃▃▆██▇▆▄▃▁ #445 of 458 · 72% of its score · 5 tests
Beats Molmo 7B-D (0924), DeepSeek R1 Distill Qwen 1.5B, Qwen3 0.6B here, though they rank higher overall. Trails Falcon3 1B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval | 17.7% ✎ | ▁·▁▃▃▄▆▅█▃▁▁ beats 5/99 | 35% |
| HumanEval+ | 15.2% ✎ | ▁·▁▁▃▃▄▄▄█▃▁ beats 5/99 | 23% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 11.5% ✎ | ▃·▂▁▂▆▅█▄▄▁▂ beats 0/35 | 7.7% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 10.2% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 0/35 | 3.3% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 16.7% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 16/35 | 2.1% |
chat & writing▁▁▃▃▅▄▅█▆▆▇▃ #381 of 393 · 19% of its score · 4 tests
Beats Phi-2 (2.7B), OLMo 7B Instruct, Falcon 40B Instruct here, though they rank higher overall. Trails Gemma 3 270M IT, SmolLM2 360M Instruct, Granite 4.0 350M here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024) | 995.0 ✎ | ▂▁▂▁▃▇█▆▇▄▂▂ beats 14/95 | 6.5% |
| LMArena (text) | 1093.6 ✎ | ▁▁▃▂▃▃▃▆▆▇█▃ beats 15/379 | 6.4% |
| AlpacaEval 2 length-controlled | 5.4% ✎ | ▁▂▃▃▆▆█▆▄▄▁▁ beats 9/122 | 5.2% |
| Arena-Hard (v0.1, GPT-4-1106 judge) | 3.0% ✎ | ▃▁▁▅█▅▄▃▃▅▃▁ beats 0/60 | 1.3% |
other tests3 not in a task · 8.6% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| WildBench v2 WB-Score (task macro) | -9.6919 WB-Score ✎ | ▃·▁▁·▃█▄▇▆▅▆ beats 0/52 | 7.3% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 34.3% ✎ | ▃▁▃▁▁▁▁▁▂█▅▁ beats 40/276 | 0.9% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 27.6% ✎ | ▃·▃▁▂▁▂▅█▇▄▁ beats 10/100 | 0.4% |
$ 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 IT · needs ~1.5 GB · from huggingface.co/second-statechat in the terminal
llama cli -hf second-state/Gemma-2b-it-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf second-state/Gemma-2b-it-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Gemma 2B IT · needs ~1.5 GB · from huggingface.co/second-state
- Or download it in the terminal
lms get https://huggingface.co/second-state/Gemma-2b-it-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 IT · needs ~2.01 GB · from ollama.comchat in the terminal
ollama run gemma:2b-instruct-q4_K_M
Official weights and documentation: huggingface.co/google ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 58%, Granite Code Models: A Family… 13%, WildBench v2 leaderboard data… 7% 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