Google/Dense

GoogleCodeGemma 2B

CodeGemma 2B — Google's tiny code model for completion tasks.

coding
2.51B
Parameters
8K
Context length
8
Benchmarks
6
Quantizations
100K
HF downloads
Architecture
Dense
Released
2024-04-09
Layers
18
KV Heads
1
Head Dim
256
Family
gemma

Quantization Options

QuantBitsVRAMQuality
Q4_K_M4.892.0 GBgood
Q5_K_S5.572.2 GBgood
Q5_K_M5.72.3 GBgood
Q6_K6.562.5 GBexcellent
Q8_08.53.2 GBlossless
FP16165.5 GBlossless

Select your GPU above to see speed estimates and compatibility for each quantization.

READY TO RUN THIS?RENT BY THE HOUR

RENT A GPU AND RUN CODEGEMMA 2B NOW

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Benchmarks (8)

IFEval57.5
MBPP27.9
HumanEval27.2
BBH19.7
MMLU-PRO18.8
MUSR15.3
MATH9.1
GPQA7.4

Run this model

Easiest way to get started·Beginners
DOCS ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run gemma:3b-q4_K_M

Tag may need adjustment — check ollama.com/library/gemma for available tags.

▸ SETUP GUIDE
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

NVIDIA Tesla C2050
3 GB VRAM • 144 GB/s
NVIDIA
NVIDIA Tesla M2050
3 GB VRAM • 148 GB/s
NVIDIA
NVIDIA Tesla S2050
3 GB VRAM • 148 GB/s
NVIDIA

Find the best GPU for CodeGemma 2B

Build Hardware for CodeGemma 2B

CodeGemma 2B — Google's tiny code model for completion tasks.

▸ SPEC SHEET

CodeGemma 2B2.51B Dense.

▸ SPECIFICATIONS
PARAMETERS
2.51B
ARCHITECTURE
Dense Transformer
CONTEXT LENGTH
8K tokens
CAPABILITIES
coding
RELEASE DATE
2024-04-09
PROVIDER
Google
FAMILY
gemma
▸ VRAM REQUIREMENTS
QUANTBPWVRAMQUALITY
Q4_K_M4.892.0 GB94%
Q5_K_S5.572.2 GB96%
Q5_K_M5.72.3 GB96%
Q6_K6.562.5 GB97%
Q8_08.53.2 GB100%
FP16165.5 GB100%
§ 01BENCHMARK SCORES
HumanEval27.2
MMLU-PRO18.8
MATH9.1
IFEval57.5
BBH19.7
GPQA7.4
MUSR15.3
MBPP27.9