salesforce/codegen

CodeGen is a family of open-source model for program synthesis. Trained on TPU-v4. Competitive with OpenAI Codex.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 38 minutes ago
Added to GitGenius on September 13th, 2026
Created on March 28th, 2022
Open Issues & Pull Requests: 48 (+0)
GitHub issues: Enabled
Number of forks: 420
Total Stargazers: 5,179 (+0)
Total Subscribers: 78 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.8 hours
Mean response time: 2.2 days
90th percentile: 6.6 days
Tracked items: 3

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 4
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 381 days
Stale 30+ days: 4
Stale 90+ days: 3

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

CodeGen is a family of open-source language models for program synthesis, available in sizes from 350M to 16B parameters and trained on TPU-v4 infrastructure.

The project addresses the need for capable code generation models by providing multiple model variants trained specifically for program synthesis tasks. CodeGen1 was designed to match the performance of OpenAI Codex, while CodeGen2 introduced infill sampling capabilities for more flexible code completion scenarios. CodeGen2.5 further improved efficiency by achieving performance comparable to larger 16B models using only 7B parameters. The models are made available through Hugging Face Hub for straightforward integration into downstream applications.

Teams evaluating CodeGen should understand that the release is positioned for research purposes in support of academic work. The project provides models across a range of parameter counts, allowing developers to select based on their computational constraints and performance requirements. The README emphasizes that users should evaluate potential concerns around accuracy, safety, and fairness before deployment, particularly for high-risk applications. The project references the Jaxformer library for those interested in training or fine-tuning the models themselves, though this is a separate repository.

Development activity shows consistent iteration with major releases introducing meaningful improvements: CodeGen1.0 established baseline performance, CodeGen2.0 added infill capabilities, and CodeGen2.5 demonstrated efficiency gains. The project maintains published research papers documenting the training methodology and lessons learned across both CodeGen versions. Model releases are distributed through established infrastructure rather than requiring direct repository cloning, indicating a mature approach to accessibility.