whatmodel.sh / CodeGemma 7B (v1.0)
CodeGemma 7B (v1.0)
↗ share
+ contribute
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).
$ how it compares
The LLMs ranked either side of CodeGemma 7B (v1.0), out of 828 with a score, then more from Google.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 649 | 38±1 | local | |||
| 650 | 38±2 | local | |||
| 651 | 38±1 | local | |||
| 652 | 38±1 | local | |||
| 653 | 38±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▁▁▁▃▆██▇▆▄▃▁ #393 of 458 · 94% 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.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +1 | 44.5% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 28/99 | 40% |
| HumanEval+ | 41.5% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 32/99 | 24% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 41.5% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 20/35 | 6.4% |
| MBPP +1 | 53.0% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 15/15 | 5.6% |
| MBPP+ | 52.4% ✎ | ▁···▁▁▂▅▇█▆▂ beats 22/75 | 4.5% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 12.4% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 4/35 | 3.8% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 10.1% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 6/35 | 3.5% |
| CRUXEval-I | 42.6% ✎ | ▃▅█▃▃▅·▃▃▅·▅ beats 12/15 | 2.8% |
1 more test
| test | result | vs the others in its run | counts |
|---|---|---|---|
| CRUXEval-O | 43.9% ✎ | ▃·▃██▅▃·▃▃▅▃ beats 13/15 | 2.3% |
math▁▂▃▅▆▅▄█▄▁▁▁ #294 of 398 * · 2.5% of its score · 2 tests
Beats GPT-4 (0613), Athene-70B, Gemma 2 27B IT here, though they rank higher overall. Trails Gemma 7B (base), DeepSeek R1 Distill Qwen 1.5B here, though they rank lower overall.
other tests1 not in a task · 3.8% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BigCodeBench (Complete) | 37.3% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 20/58 | 3.8% |
$ 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 CodeGemma 7B (v1.0) · needs ~5.3 GB · from huggingface.co/lmstudio-communitychat in the terminal
llama cli -hf lmstudio-community/codegemma-7b-GGUF:Q4_K_M - 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
- Install LM Studio · Open the app once before using the lms command.
- Run CodeGemma 7B (v1.0) · needs ~5.3 GB · from huggingface.co/lmstudio-community
- Or download it in the terminal
lms get https://huggingface.co/lmstudio-community/codegemma-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 CodeGemma 7B (v1.0) · needs ~5.3 GB · from ollama.comchat in the terminal
ollama run codegemma:7b-code-q4_K_M
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run CodeGemma 7B (v1.0) · needs ~5.9 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/codegemma-7b-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/codegemma-7b-4bit
Official weights and documentation: huggingface.co/google ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 64%, Granite Code Models: A Family… 25%, CodeGemma: Open Code Models B… 7% 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
| source | results | share of the score |
|---|---|---|
| 3 | 64% | |
| 8 | 25% | |
| 2 | 7% | |
| 1 | 4% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 38.2 |
$ 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