Comparison
LLMs-from-scratch vs CodeGen
Verdict
Pick LLMs-from-scratch if lLMs-from-scratch is a project-oriented repository aimed at building PyTorch-based language models from the ground up, with detailed step-by-step instructions; pick CodeGen if codeGen is a series of open-source large language models designed for program synthesis. Trained on TPUs, CodeGen offers several versions with varying capabilities from basic code generation to advanced infill sampling.
Markdown twin · LLMs-from-scratch alternatives · CodeGen alternatives
GraphCanon updated today
Trust & integrity
| Signal | LLMs-from-scratch | CodeGen |
|---|---|---|
| Maintenance | Steady (38d since push) As of today · github_public_v1 | Steady (39d since push) As of today · github_public_v1 |
| Provenance | Not a fork · Personal account As of today · github_public_v1 | Not a fork · Organization account As of today · github_public_v1 |
| Security (OSV) | No lockfile As of today · none | No lockfile As of today · none |
Tagline
- LLMs-from-scratch
- Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
- CodeGen
- Family of open-source models for program synthesis.
Stars
- LLMs-from-scratch
- 99k
- CodeGen
- 5.2k
Forks
- LLMs-from-scratch
- 15k
- CodeGen
- 423
Open issues
- LLMs-from-scratch
- 4
- CodeGen
- 48
Language
- LLMs-from-scratch
- Jupyter Notebook
- CodeGen
- Python
Adopt for
- LLMs-from-scratch
- LLMs-from-scratch is a project-oriented repository aimed at building PyTorch-based language models from the ground up, with detailed step-by-step instructions.
- CodeGen
- CodeGen is a series of open-source large language models designed for program synthesis. Trained on TPUs, CodeGen offers several versions with varying capabilities from basic code generation to advanced infill sampling.
Persona
- LLMs-from-scratch
- -
- CodeGen
- -
Runtime
- LLMs-from-scratch
- -
- CodeGen
- -
License
- LLMs-from-scratch
- Other
- CodeGen
- Apache-2.0
Last pushed
- LLMs-from-scratch
- Jun 2, 2026
- CodeGen
- Jun 2, 2026
Categories
- LLMs-from-scratch
- LLM Frameworks, Model Training
- CodeGen
- LLM Frameworks, Model Training
Trust and health
Days since push
- LLMs-from-scratch
- 38d
- CodeGen
- 39d
Open issues (now)
- LLMs-from-scratch
- 4
- CodeGen
- 48
Owner type
- LLMs-from-scratch
- User
- CodeGen
- Organization
Full report
- LLMs-from-scratch
- Trust report
- CodeGen
- Trust report
Choose LLMs-from-scratch if…
- LLMs-from-scratch is primarily Jupyter Notebook; CodeGen is Python.
- License: LLMs-from-scratch is Other, CodeGen is Apache-2.0.
- Tags unique to LLMs-from-scratch: ai, artificial-intelligence, attention mechanism, deep-learning.
- - You are an advanced practitioner aiming to fully understand the underpinnings of LLMs using PyTorch as your primary framework.
When NOT to use LLMs-from-scratch
- - If you are looking for a rapid deployment of an LLM without understanding its intricate structure - this tool requires extensive manual and conceptual work.
- - You prefer frameworks with automatic model generation or other high-level abstractions that simplify the process. This repository emphasizes manual creation, which is more time-consuming but offers丰
- a deeper learning experience.
Choose CodeGen if…
- CodeGen is primarily Python; LLMs-from-scratch is Jupyter Notebook.
- License: CodeGen is Apache-2.0, LLMs-from-scratch is Other.
- Tags unique to CodeGen: codex, generativemodel, languagemodel, llm.
- When you require high-performance model training and code generation that matches or exceeds the performance of OpenAI Codex on specific tasks
When NOT to use CodeGen
- In scenarios where the model's primary use is not centered around code generation or program synthesis, as its specialized training may limit its effectiveness for other types of generative tasks
- If your project strictly requires a smaller memory footprint or simpler deployment because advanced models like CodeGen2.5 require significant computational resources and setup
Explore
Sources
Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.
- GitHub stars (rasbt/LLMs-from-scratch) · observed Jul 11, 2026
- GitHub forks (rasbt/LLMs-from-scratch) · observed Jul 11, 2026
- Last push (rasbt/LLMs-from-scratch) · observed Jun 2, 2026
- License file (Other) · observed Jul 11, 2026
- Decision facts (enrichment) · observed Jul 11, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
- GitHub stars (salesforce/CodeGen) · observed Jul 11, 2026
- GitHub forks (salesforce/CodeGen) · observed Jul 11, 2026
- Last push (salesforce/CodeGen) · observed Jun 2, 2026
- License file (Apache-2.0) · observed Jul 11, 2026
- Decision facts (enrichment) · observed Jul 12, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
GitHub stars on cards: LLMs-from-scratch 99k · CodeGen 5.2k (synced Jul 11, 2026).
Common questions
- What is the difference between LLMs-from-scratch and CodeGen?
- LLMs-from-scratch: Implement a ChatGPT-like LLM in PyTorch from scratch, step by step. CodeGen: Family of open-source models for program synthesis.. See the comparison table for live GitHub stats and shared categories.
- When should I choose LLMs-from-scratch over CodeGen?
- Choose LLMs-from-scratch over CodeGen when LLMs-from-scratch is primarily Jupyter Notebook; CodeGen is Python; License: LLMs-from-scratch is Other, CodeGen is Apache-2.0; Tags unique to LLMs-from-scratch: ai, artificial-intelligence, attention mechanism, deep-learning; - You are an advanced practitioner aiming to fully understand the underpinnings of LLMs using PyTorch as your primary framework.
- When should I choose CodeGen over LLMs-from-scratch?
- Choose CodeGen over LLMs-from-scratch when CodeGen is primarily Python; LLMs-from-scratch is Jupyter Notebook; License: CodeGen is Apache-2.0, LLMs-from-scratch is Other; Tags unique to CodeGen: codex, generativemodel, languagemodel, llm; When you require high-performance model training and code generation that matches or exceeds the performance of OpenAI Codex on specific tasks.
- When should I avoid LLMs-from-scratch?
- - If you are looking for a rapid deployment of an LLM without understanding its intricate structure - this tool requires extensive manual and conceptual work. - You prefer frameworks with automatic model generation or other high-level abstractions that simplify the process. This repository emphasizes manual creation, which is more time-consuming but offers丰 a deeper learning experience.
- When should I avoid CodeGen?
- In scenarios where the model's primary use is not centered around code generation or program synthesis, as its specialized training may limit its effectiveness for other types of generative tasks If your project strictly requires a smaller memory footprint or simpler deployment because advanced models like CodeGen2.5 require significant computational resources and setup
- Is LLMs-from-scratch or CodeGen more popular on GitHub?
- LLMs-from-scratch has more GitHub stars (98,899 vs 5,177). Stars measure visibility, not whether either tool fits your constraints.
- Are LLMs-from-scratch and CodeGen open source?
- Yes - both are open-source projects on GitHub (LLMs-from-scratch: Other, CodeGen: Apache-2.0).
- Where can I find alternatives to LLMs-from-scratch or CodeGen?
- GraphCanon lists graph-backed alternatives at LLMs-from-scratch alternatives and CodeGen alternatives (LLMs-from-scratch markdown twin, CodeGen 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, LLMs-from-scratch or CodeGen?
- LLMs-from-scratch: Steady. CodeGen: Steady. 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 LLMs-from-scratch and CodeGen?
- GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: LLMs-from-scratch trust report; CodeGen trust report.