#698 · Primary category: Education & Research
picoGPT
An unnecessarily tiny implementation of GPT-2 in NumPy.
Project last updated:04/24/23
GitHub Stars
3.5K
Forks
456
Contributors
5
License
MIT
Why we included this project
Reading about GPT-2 often leaves the internal mechanics feeling like a black box. This project peels that away by compressing the entire forward pass into roughly 40 lines of plain NumPy, with a companion blog post that walks through each piece. It won't help you ship anything: it's slow, processes one sample at a time, and contains no training code. But that minimalism is exactly the point. The repo ships the tokenizer and weight loader, so you can download real GPT-2 checkpoints and watch how embeddings, attention heads, and layer norms produce logits. For anyone who wants to re-derive the architecture before moving to a full framework, it's a compact, readable reference.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI