Skip to content
llmmodels
Chat LLMOpen weights

codegemma-2b

by Google DeepMind · Mar 21, 2024

codegemma-2b is an open-weight chat llm from Google DeepMind, released Mar 21, 2024. It has 2.5B parameters.

Released
Mar 21, 2024
Type
Chat LLM
Parameters
2.5B
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
gemma
Knowledge cutoff
—
Status
Open weights
HF downloads (30d)
2.7K

How to run codegemma-2b

codegemma-2b is an open-weight model published on Hugging Face as google/codegemma-2b. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 2.5B parameters it needs roughly 2 GB of memory at 4-bit quantization.

codegemma-2b vs alternatives

Alternatives to codegemma-2b
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Qwen2.5-Coder-3BopenAlibaba (Qwen)Nov 20243.1B———96.8
Mistral Large (latest)openMistral AINov 2024—125K$0.5$1.50—
MobileLLM-125MopenMetaOct 2024—————
Pixtral Large (latest)openMistral AINov 2024—125K$2$6—
Command RopenCohereAug 2024—125K$0.15$0.6—
Llama 3.2 3B InstructopenMetaSep 20243.2B128K$0.05$0.33—
pythia-410m-seed3openEleutherAIJan 2024—————
pythia-31m-seed1openEleutherAIJan 2024—————

More models from Google DeepMind

All Google DeepMind models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Gemma 4 31B ITopenApr 202631B256KFreeFree
Gemma 4 26B A4B ITopenApr 202626B (4B act.)256KFreeFree
Gemini 4 ArgonOct 2026—1M$2$10
Gemini 4 CarbonNov 2026—1M$2$10
Gemini 3.8 FlashSep 2026—1M$0.75$3.75
Gemini 4 HydrogenNov 2026—1M$1.50$7.50
Gemini Pro LatestFeb 2026—1M$2$12
Gemini 3.7 FlashAug 2026—1M$0.75$3.75

Frequently asked questions

Who made codegemma-2b?

codegemma-2b was developed by Google DeepMind (United States). It was released on Mar 21, 2024.

Is codegemma-2b open source?

Yes. codegemma-2b's weights are publicly available under the gemma license on Hugging Face (google/codegemma-2b), so you can download and run it yourself.

How many parameters does codegemma-2b have?

codegemma-2b has 2.5B parameters.

Sources: huggingface · huggingface. Last updated 2026-11-22.