LLMs-from-scratch
rasbt
Build a GPT-style LLM from scratch
The official code for building a large language model from scratch in PyTorch, step by step.
What you get
- Chapter-by-chapter code
- Clear, teaching-focused implementations
- A real working mini-LLM
What you'll learn
Best for: Developers who want to understand LLMs at the code level.