Skip to content
llmmodels
Code modelOpen weightsHistorical

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

Alternatives to CodeT5-base
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
CodeWhispererAmazonJun 2022—————
OpenELM-270MopenAppleMay 2024272M————
OperatorOpenAIJan 2023—————
CodeT5-largeopenSalesforceJul 2022770M————
LTM-1MagicJun 2023—————
ShanhaiUnisoundMay 2023—————
Shishuo4ParadigmApr 2023—————
GPT-J-6BopenEleutherAIMay 20216.1B————

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 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.