Comparison
CodeBERT vs CodeT5
Verdict
Pick CodeBERT if codeBERT is an advanced pre-trained model for programming and natural language tasks in multiple languages like Python and Java; pick CodeT5 if codeT5 is a large language model for code understanding and generation, developed by Salesforce, and is released under the BSD-3-Clause license.
Markdown twin · CodeBERT alternatives · CodeT5 alternatives
GraphCanon updated Oct 8, 2026
5views this month
Trust & integrity
| Signal | CodeBERT | CodeT5 |
|---|---|---|
| Maintenance | Dormant (1186d since push) As of Oct 8, 2026 · github_public_v1 | Archived (84d since push) As of Sep 18, 2026 · github_public_v1 |
| Provenance | Not a fork · Organization account As of Oct 8, 2026 · github_public_v1 | Not a fork · Organization account As of Sep 18, 2026 · github_public_v1 |
| OSV dependency advisories | No lockfile (source not queried) As of Jul 11, 2026 · osv@v1 | No lockfile (source not queried) As of Sep 18, 2026 · osv@v1 |
| deps.dev advisories | Not queried deps.dev@v1 | Not queried deps.dev@v1 |
| OpenSSF Scorecard | Not queried openssf-scorecard@v1 | Not queried openssf-scorecard@v1 |
Tagline
- CodeBERT
- CodeBERT series models for code pretraining in Python and programming languages
- CodeT5
- Open Code LLMs for Code Understanding and Generation
Stars
- CodeBERT
- 2.8k
- CodeT5
- 3.1k
Forks
- CodeBERT
- 497
- CodeT5
- 486
Open issues
- CodeBERT
- 87
- CodeT5
- 88
Language
- CodeBERT
- Python
- CodeT5
- Python
Adopt for
- CodeBERT
- CodeBERT is an advanced pre-trained model for programming and natural language tasks in multiple languages like Python and Java.
- CodeT5
- CodeT5 is a large language model for code understanding and generation, developed by Salesforce, and is released under the BSD-3-Clause license.
Persona
- CodeBERT
- -
- CodeT5
- -
Runtime
- CodeBERT
- -
- CodeT5
- -
License
- CodeBERT
- MIT
- CodeT5
- CodeT5 is released under the BSD-3-Clause license, which allows for free use, modification, and distribution, provided that the original copyright notice and disclaimer are included.
Last pushed
- CodeBERT
- Jul 9, 2023
- CodeT5
- Jun 25, 2026
Categories
- CodeBERT
- Model Training
- CodeT5
- LLM Frameworks, Model Training
Trust and health
Maintenance
- CodeBERT
- Dormant (18%)
- CodeT5
- Archived (8%)
Days since push
- CodeBERT
- 1186d
- CodeT5
- 84d
Archived on GitHub
- CodeBERT
- No
- CodeT5
- Yes
Open issues (now)
- CodeBERT
- 87
- CodeT5
- 88
Stars delta
- CodeBERT
- +3 (30d)
- CodeT5
- -5 (30d)
Open issues delta
- CodeBERT
- +1 (30d)
- CodeT5
- 0 (30d)
Full report
- CodeBERT
- Trust report
- CodeT5
- Trust report
Choose CodeBERT if…
- License: CodeBERT is MIT, CodeT5 is BSD-3-Clause.
- Requirements: Install torch and transformers via pip before using CodeBERT for embedding generation or other tasks; Ensure Python and Hugging Face's transformers framework are available, as they form the core execution environment for utilizing this model.
- Tags unique to CodeBERT: code pretraining, transformers framework.
- When you need to work on tasks involving both programming and natural language processing across six different programming languages: Python, Java, JavaScript, PHP, Ruby, Go
When NOT to use CodeBERT
- Avoid for direct mask prediction tasks without MLM (Masked Language Model) fine-tuning as CodeBERT is not natively equipped for such tasks unlike its variant designed with MLM capabilities
- Do not consider it if your project requires pre-training models on a wider variety of programming languages beyond the six supported by this model
Choose CodeT5 if…
- License: CodeT5 is BSD-3-Clause, CodeBERT is MIT.
- Requirements: Min 8 GB RAM; The model may require significant computational resources for training and inference..
- Tags unique to CodeT5: code-generation, code-intelligence, code-understanding, language-model.
- Also covers LLM Frameworks.
- When you need a tool specifically for code understanding and generation tasks, as CodeT5 is designed with a focus on these areas.
When NOT to use CodeT5
- If your project involves promoting or profiting from violence, hate, division, environmental destruction, abuse of human rights, or the destruction of people's physical and mental health, as these are
Explore
Sources
Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.
- GitHub stars (microsoft/CodeBERT) · observed Oct 8, 2026
- GitHub forks (microsoft/CodeBERT) · observed Oct 8, 2026
- Last push (microsoft/CodeBERT) · observed Jul 9, 2023
- License file (MIT) · observed Oct 8, 2026
- Decision facts (enrichment) · observed Jul 17, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
- GitHub stars (salesforce/CodeT5) · observed Sep 20, 2026
- GitHub forks (salesforce/CodeT5) · observed Sep 20, 2026
- Last push (salesforce/CodeT5) · observed Jun 25, 2026
- License file (BSD-3-Clause) · observed Sep 20, 2026
- Decision facts (enrichment) · observed Sep 18, 2026
- Trust scan (lockfile / OSV) · observed Sep 18, 2026
GitHub stars on cards: CodeBERT 2.8k · CodeT5 3.1k (synced Oct 8, 2026).
Common questions
- What is the difference between CodeBERT and CodeT5?
- CodeBERT: CodeBERT series models for code pretraining in Python and programming languages. CodeT5: Open Code LLMs for Code Understanding and Generation. See the comparison table for live GitHub stats and shared categories.
- When should I choose CodeBERT over CodeT5?
- Choose CodeBERT over CodeT5 when License: CodeBERT is MIT, CodeT5 is BSD-3-Clause; Requirements: Install torch and transformers via pip before using CodeBERT for embedding generation or other tasks; Ensure Python and Hugging Face's transformers framework are available, as they form the core execution environment for utilizing this model; Tags unique to CodeBERT: code pretraining, transformers framework; When you need to work on tasks involving both programming and natural language processing across six different programming languages: Python, Java, JavaScript, PHP, Ruby, Go.
- When should I choose CodeT5 over CodeBERT?
- Choose CodeT5 over CodeBERT when License: CodeT5 is BSD-3-Clause, CodeBERT is MIT; Requirements: Min 8 GB RAM; The model may require significant computational resources for training and inference.; Tags unique to CodeT5: code-generation, code-intelligence, code-understanding, language-model; Also covers LLM Frameworks; When you need a tool specifically for code understanding and generation tasks, as CodeT5 is designed with a focus on these areas.
- When should I avoid CodeBERT?
- Avoid for direct mask prediction tasks without MLM (Masked Language Model) fine-tuning as CodeBERT is not natively equipped for such tasks unlike its variant designed with MLM capabilities Do not consider it if your project requires pre-training models on a wider variety of programming languages beyond the six supported by this model
- When should I avoid CodeT5?
- If your project involves promoting or profiting from violence, hate, division, environmental destruction, abuse of human rights, or the destruction of people's physical and mental health, as these are
- Is CodeBERT or CodeT5 more popular on GitHub?
- CodeT5 has more GitHub stars (3,093 vs 2,791). Stars measure visibility, not whether either tool fits your constraints.
- Are CodeBERT and CodeT5 open source?
- Yes - both are open-source projects on GitHub (CodeBERT: MIT, CodeT5: BSD-3-Clause).
- Where can I find alternatives to CodeBERT or CodeT5?
- GraphCanon lists graph-backed alternatives at CodeBERT alternatives and CodeT5 alternatives (CodeBERT markdown twin, CodeT5 markdown twin), ranked by typed relationship edges rather than popularity votes.
- Is there a machine-readable version of this comparison?
- Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
- Which is better maintained, CodeBERT or CodeT5?
- CodeBERT: Dormant. CodeT5: Archived. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
- Where are the full trust reports for CodeBERT and CodeT5?
- GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: CodeBERT trust report; CodeT5 trust report.