Foundations
Build an LLM from scratch
Karpathy-depth, course-paced: tokenize, predict, attend, and train your own mini-LLM — then state honest limits vs frontier systems.
Milestone Your own mini-LLM in the portfolio (train script, samples, README).
Lessons in this module
- Tokenization and BPEProject: Train tiny tokenizerOpen
- Next-token predictionProject: Bigram LMOpen
- MLP language modelProject: Train + sampleOpen
- Self-attentionProject: Implement attention blockOpen
- Tiny GPT / mini-LLM end-to-endProject: Train on CPU/Colab; generate textOpen
- Sampling (temperature, top-k/p)Project: Ablation tableOpen
- Pretrain vs SFT vs preference (map only)Project: Lifecycle diagramOpen
- Why your tiny LLM ≠ ChatGPTProject: Honest limits write-upOpen