CodeT5-base
by Salesforce · Nov 1, 2021
CodeT5-base is an open-weight code model from Salesforce, released Nov 1, 2021. It has 220M parameters.
- Provider
- Salesforce
- Released
- Nov 1, 2021
- Type
- Code model
- Parameters
- 220M
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 1.6e+21 FLOP
About CodeT5-base
"Pre-trained models for Natural Languages (NL) like BERT and GPT have been recently shown to transfer well to Programming Languages (PL) and largely benefit a broad set of code-related tasks. Despite their success, most current methods either rely on an encoder-only (or decoder-only) pre-training that is suboptimal for generation (resp. understanding) tasks or process the code snippet in the same way as NL, neglecting the special characteristics of PL such as token types.
How to run CodeT5-base
CodeT5-base 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 220M parameters it needs roughly 1 GB of memory at 4-bit quantization.
CodeT5-base vs alternatives
- CodeT5-base vs CodeWhisperer
- CodeT5-base vs OpenELM-270M
- CodeT5-base vs Operator
- CodeT5-base vs CodeT5-large
- CodeT5-base vs LTM-1
- CodeT5-base vs Shanhai
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| CodeWhisperer | Amazon | Jun 2022 | — | — | — | — | — |
| OpenELM-270Mopen | Apple | May 2024 | 272M | — | — | — | — |
| Operator | OpenAI | Jan 2023 | — | — | — | — | — |
| CodeT5-largeopen | Salesforce | Jul 2022 | 770M | — | — | — | — |
| LTM-1 | Magic | Jun 2023 | — | — | — | — | — |
| Shanhai | Unisound | May 2023 | — | — | — | — | — |
| Shishuo | 4Paradigm | Apr 2023 | — | — | — | — | — |
| GPT-J-6Bopen | EleutherAI | May 2021 | 6.1B | — | — | — | — |
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 CodeT5-base?
CodeT5-base was developed by Salesforce (United States of America,Singapore). It was released on Nov 1, 2021.
Is CodeT5-base open source?
Yes. CodeT5-base's weights are publicly available, so you can download and run it yourself.
How many parameters does CodeT5-base have?
CodeT5-base has 220M parameters.
Sources: epoch · paper. Last updated 2026-11-22.