whatmodel.sh / Gemma 2B IT

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.

28.6±0.8#685 of 743 LLMsfrom 12 benchmark results across 9 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Gemma 2B IT, out of 897 with a score, then more from Google.

#modelscorewhereRAMreleased
816BLOOMZ 7.1B BigScience29±2comparison only2022-11
817BLOOM 176B BigScience29±1local~372GB2022-07
818Gemma 2B IT Google29±1local~3.1GB2024-02
819OPT-30B Meta28±1local~64GB2022-05
820UL2 20B Google28±3comparison only2022-05
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▁▁▃▃▆▇█▆▆▃▃▁ #458 of 474 · 70% of its score · 5 tests

Beats Molmo 7B-D (0924), Tulu 2 7B, DeepSeek R1 Distill Qwen 1.5B here, though they rank higher overall. Trails Falcon3 1B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval17.7% ✎▁·▁▃▃▄▆▅█▃▁▁ beats 5/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇ 33%sharp
HumanEval+15.2% ✎▁·▁▁▃▃▄▄▄█▃▁ beats 5/99easy · avg 71%▇▇▇▇▇▇▇▇▇ 23%sharp
HumanEvalSynthesize (HumanEvalPack, 6-language average)11.5% ✎▃·▂▁▂▆▅█▄▄▁▂ beats 0/35medium · avg 62%▇▇▇ 7.9%typical
HumanEvalExplain (HumanEvalPack, 6-language average)10.2% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 0/35medium · avg 46%▇ 3.3%typical
HumanEvalFix (HumanEvalPack, 6-language average)16.7% ✎▁·▁▁▄██▄█▁▅▅ beats 16/35medium · avg 52%▇ 2.2%sharp · too hard for it
chat & writing▁▁▃▃▅▄▆█▇▇▇▃ #393 of 405 · 21% 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.

testresultvs the others in its rundifficultycountswhy
LMArena (text)1093.9 ✎▁▁▃▂▃▂▃▆▆▇█▃ beats 15/388avg 1262▇▇▇ 7.0%blunt
Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024)995.0 ✎▂▁▂▁▃▇█▆▇▄▂▂ beats 14/95avg 1189▇▇▇ 6.8%typical
AlpacaEval 2 length-controlled5.4% ✎▁▂▃▃▆▆█▆▄▄▁▁ beats 9/122medium · avg 36%▇▇ 5.5%sharp · too hard for it
Arena-Hard (v0.1, GPT-4-1106 judge)3.0% ✎▃▁▁▅█▅▄▃▃▅▃▁ beats 0/60medium · avg 47%▇ 1.3%sharp · too hard for it
other tests3 not in a task · 9.4% of its score
testresultvs the others in its rundifficultycountswhy
WildBench v2 WB-Score (task macro)-9.6919 WB-Score ✎▃·▁▁·▃█▄▇▆▅▆ beats 0/52avg 43.352 WB-Score▇▇▇ 7.8%sharp
Open PT-LLM Leaderboard average (9 Portuguese tasks)34.3% ✎▃▁▃▁▁▁▁▁▂█▅▁ beats 40/276medium · avg 72%▇ 1.1%noisy
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy27.6% ✎▃·▃▁▂▁▂▅█▇▄▁ beats 10/100medium · avg 67%▇ 0.5%sharp · noisy

$ 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 2B IT · needs 3.1 GB memory, 1.5 GB download · from huggingface.co/second-state
    chat in the terminal
    llama cli -hf second-state/Gemma-2b-it-GGUF:Q4_K_M
  3. 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

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Gemma 2B IT · needs 3.1 GB memory, 1.5 GB download · from huggingface.co/second-state

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/second-state/Gemma-2b-it-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 2B IT · needs 3.3 GB memory, 1.76 GB download · from ollama.com
    chat in the terminal
    ollama run gemma:2b-instruct-q4_K_M

Model repository and documentation: huggingface.co/google ↗

$ how the score was worked out · EvalPlus / EvalPerf published… 56%, Granite Code Models: A Family… 13%, WildBench v2 leaderboard data… 8% 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