whatmodel.sh / CodeGemma 7B (v1.0)

CodeGemma 7B (v1.0) is an open-weights language model from Google, released March 2024. Its published size is 8.54B parameters. Licence: gemma.

Catalogue identity notes

Maker repo google/codegemma-7b @2ec9700: licence tag gemma. 8,537,680,896 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-03: month the maker's Hugging Face repo was created (createdAt 2024-03-21). Pretrained CodeGemma 7B; not the instruction-tuned model. Ollama tags codegemma:7b-code-q4_K_M, codegemma:7b-code-q8_0 (sizes as listed on the tags page, observed 2026-09-29).

39.9±0.6#579 of 743 LLMsfrom 14 benchmark results across 4 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of CodeGemma 7B (v1.0), out of 897 with a score, then more from Google.

#modelscorewhereRAMreleased
688LLaMA 65B Meta40±1comparison only2023-02
689Phi-3-mini-4k-instruct (Apr 2024) Microsoft40±2local~6GB2024-04
690CodeGemma 7B (v1.0) Google40±1local~7.1GB2024-03
691Apertus 8B Instruct (2509) Swiss AI40±3local~6.3GB2025-08
692Code Llama 13B Python Meta40±1local~9.8GB2023-08
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▁▁▁▃▆▇█▆▆▃▃▁ #406 of 474 · 93% of its score · 9 tests

Beats DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B, DeepSeek R1 Distill Llama 8B here, though they rank higher overall. Trails Qwen2.5 1.5B Instruct, WizardLM 13B V1.2, Falcon3 3B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval +144.5% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 28/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 38%sharp · at its level · several runs
HumanEval+41.5% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 32/99easy · avg 71%▇▇▇▇▇▇▇▇▇▇ 25%sharp · at its level
HumanEvalSynthesize (HumanEvalPack, 6-language average)41.5% ✎▁·▂▁▂▆▅█▄▄▁▂ beats 20/35medium · avg 62%▇▇▇ 6.7%at its level
MBPP +153.0% ✎█·▅▃▃▃▅▃▃▅·▅ beats 15/15easy · avg 68%▇▇ 6.0%at its level · several runs
MBPP+52.4% ✎▁···▁▁▂▅▇█▆▂ beats 22/75easy · avg 66%▇▇ 4.9%at its level
HumanEvalExplain (HumanEvalPack, 6-language average)12.4% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 4/35medium · avg 46%▇▇ 3.9%typical
HumanEvalFix (HumanEvalPack, 6-language average)10.1% ✎▁·▁▁▄██▄█▁▅▅ beats 6/35medium · avg 52%▇ 3.6%sharp
CRUXEval-I42.6% ✎▃▅█▃▃▅·▃▃▅·▅ beats 12/15medium · avg 57%▇ 2.9%at its level
1 more test
testresultvs the others in its rundifficultycountswhy
CRUXEval-O43.9% ✎▃·▃██▅▃·▃▃▅▃ beats 13/15medium · avg 54%▇ 2.4%blunt · at its level
math▁▁▃▅█▆▅█▄▁▁▁ #237 of 440 * · 3.0% of its score · 2 tests

Beats MiniMax-M2.1, DeepSeek V3 (Dec '24), GPT-4o (2024-08-06) here, though they rank higher overall. Trails Gemma 7B (base) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K49.0% ✎▄··▄···▄··█▄ beats 3/5easy · avg 76%▇ 1.6%sharp · at its level · noisy
MATH21.8% ✎▃·▃····▃···█ beats 4/5medium · avg 38%▇ 1.4%noisy
other tests1 not in a task · 4.1% of its score
testresultvs the others in its rundifficultycountswhy
BigCodeBench (Complete)37.3% ✎▂▁▁▄▂▅▇█▆▂▂▂ beats 20/58medium · avg 49%▇▇ 4.1%at its level

$ 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 CodeGemma 7B (v1.0) · needs 7.1 GB memory, 5.33 GB download · from huggingface.co/lmstudio-community
    chat in the terminal
    llama cli -hf lmstudio-community/codegemma-7b-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf lmstudio-community/codegemma-7b-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 CodeGemma 7B (v1.0) · needs 7.1 GB memory, 5.33 GB download · from huggingface.co/lmstudio-community

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/lmstudio-community/codegemma-7b-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 CodeGemma 7B (v1.0) · needs 7.1 GB memory, 5.33 GB download · from ollama.com
    chat in the terminal
    ollama run codegemma:7b-code-q4_K_M

MLX (Mac)

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run CodeGemma 7B (v1.0) · needs 7.7 GB memory, 5.93 GB download, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/codegemma-7b-4bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model mlx-community/codegemma-7b-4bit

Model repository and documentation: huggingface.co/google ↗

$ how the score was worked out · EvalPlus / EvalPerf published… 62%, Granite Code Models: A Family… 26%, CodeGemma: Open Code Models B… 8% and 1 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

sourceresultsshare of the scorelicence
EvalPlus / EvalPerf published evaluation runs3Apache-2.0
Granite Code Models: A Family of Open Foundation Models for Code Intelligence — authors' own runs8CC BY 4.0
CodeGemma: Open Code Models Based on Gemma — authors' own runs · maker-reported2CC BY 4.0
BigCodeBench paper (Zhuo et al., ICLR 2025), arXiv 2406.15877v41CC BY 4.0
prior · pull toward the middle
weighted average= 39.9

$ 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