CodeGen2.5
by Salesforce · Jul 6, 2023
CodeGen2.5 is an open-weight code model from Salesforce, released Jul 6, 2023. It has 7B parameters.
- Provider
- Salesforce
- Released
- Jul 6, 2023
- Type
- Code model
- Parameters
- 7B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 5.9e+22 FLOP
- Training data
- 300B tokens/words
About CodeGen2.5
The family of Salesforce CodeGen models is growing with CodeGen2.5 – a small, but mighty model! While there has been a recent trend of large language models (LLM) of increasing size, we show that a small model can obtain surprisingly good performance, when being trained well.
How to run CodeGen2.5
CodeGen2.5 is an open-weight model. 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 7B parameters it needs roughly 4 GB of memory at 4-bit quantization.
CodeGen2.5 vs alternatives
- CodeGen2.5 vs DeepSeek Coder 6.7B
- CodeGen2.5 vs LLaMA-7B
- CodeGen2.5 vs Code Llama-7B
- CodeGen2.5 vs Mistral 7B
- CodeGen2.5 vs Llemma 7B
- CodeGen2.5 vs CRYSTALCODER
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| DeepSeek Coder 6.7Bopen | DeepSeek | Nov 2023 | 6.7B | — | — | — | 67.5 |
| LLaMA-7Bopen | Meta | Feb 2023 | 6.7B | — | — | — | 77.3 |
| Code Llama-7Bopen | Meta | Aug 2023 | 6.7B | — | — | — | — |
| Mistral 7Bopen | Mistral AI | Oct 2023 | 7B | — | — | — | — |
| Llemma 7Bopen | EleutherAI | Oct 2023 | 7B | — | — | — | — |
| CRYSTALCODERopen | G42 / Inception (UAE) | Dec 2023 | 6.7B | — | — | — | — |
| LingoWhale-8Bopen | DeepLang AI | Nov 2023 | 8B | — | — | — | — |
| Qwen2.5-Coder (7B)open | Alibaba (Qwen) | Sep 2024 | 7.6B | — | — | — | 107.4 |
More models from Salesforce
All Salesforce models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| XGen-7Bopen | Sep 2023 | 6.7B | — | — | — |
| Llama-xLAM-2-8b-fc-ropen | Mar 2025 | 8B | — | — | — |
| GTA1-7B-2507open | Sep 2025 | 8.3B | — | — | — |
| blip2-opt-2.7bopen | Feb 2023 | 3.7B | — | — | — |
| xLAM-2-1b-fc-ropen | Mar 2025 | 1.5B | — | — | — |
| xLAM-1b-fc-ropen | Jul 2024 | 1.3B | — | — | — |
| codegen2-16B_Popen | Apr 2023 | 16B | — | — | — |
| blip2-flan-t5-xlopen | Feb 2023 | 3.9B | — | — | — |
Frequently asked questions
Who made CodeGen2.5?
CodeGen2.5 was developed by Salesforce (United States of America). It was released on Jul 6, 2023.
Is CodeGen2.5 open source?
Yes. CodeGen2.5's weights are publicly available, so you can download and run it yourself.
How many parameters does CodeGen2.5 have?
CodeGen2.5 has 7B parameters.
Sources: epoch · paper. Last updated 2026-11-22.