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.