Skip to content
llmmodels
Code modelOpen weightsHistorical

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

Alternatives to CodeGen2.5
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
DeepSeek Coder 6.7BopenDeepSeekNov 20236.7B———67.5
LLaMA-7BopenMetaFeb 20236.7B———77.3
Code Llama-7BopenMetaAug 20236.7B————
Mistral 7BopenMistral AIOct 20237B————
Llemma 7BopenEleutherAIOct 20237B————
CRYSTALCODERopenG42 / Inception (UAE)Dec 20236.7B————
LingoWhale-8BopenDeepLang AINov 20238B————
Qwen2.5-Coder (7B)openAlibaba (Qwen)Sep 20247.6B———107.4

More models from Salesforce

All Salesforce models →
ModelReleasedParamsContextInput $/1MOutput $/1M
XGen-7BopenSep 20236.7B———
Llama-xLAM-2-8b-fc-ropenMar 20258B———
GTA1-7B-2507openSep 20258.3B———
blip2-opt-2.7bopenFeb 20233.7B———
xLAM-2-1b-fc-ropenMar 20251.5B———
xLAM-1b-fc-ropenJul 20241.3B———
codegen2-16B_PopenApr 202316B———
blip2-flan-t5-xlopenFeb 20233.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.