The best resources for a time-poor senior engineer, newest first.
2026Practice
Sebastian Raschka · Oct 2026 · ~25 h
Chapter notebooks implement causal multi-head attention, GPT blocks, pretraining, sampling with temperature/top-k, and bonus folders for KV cache, GQA, RoPE-based architectures (Llama, Qwen, Gemma 3) and LoRA (appendix E). Actively maintained in 2026.
2026Course
Tatsunori Hashimoto, Percy Liang (Stanford) · Apr 2026 · ~120 h
Assignment 1 has you write a byte-level BPE tokenizer, a pre-norm transformer with RoPE and SwiGLU, cross-entropy, AdamW, a cosine schedule and a training loop against unit tests; it is the curriculum's end-to-end capstone and the single best rehearsal for the from-scratch rounds.
2026Course
Stanford (Fei-Fei Li, Ehsan Adeli et al.) · Apr 2026 · ~40 h
Assignment 1 is kNN with no-loop vectorized L2 distances, a softmax classifier and a two-layer net with hand-written backward passes checked numerically; A2 adds batchnorm/dropout backward, A3 a captioning transformer. The no-loop kNN is almost exactly the reported OpenAI 1-NN question.
2025Practice
Andrej Karpathy · Nov 2025 · ~8 h
~300-line GPT model and training loop that is the de facto template for 'miniGPT' interview code; reading model.py closely is preparation for debugging someone else's version of it.
2025Tutorial
Sebastian Raschka · Jun 2025 · ~2 h
Walks through adding a KV cache to a from-scratch GPT: cache buffers, position tracking, reset, and a side-by-side script with and without the cache.
2024Course
Andrej Karpathy · Jun 2024 · ~30 h
Code-along series from micrograd (scalar autograd) through manual backprop of an MLP with batchnorm ('becoming a backprop ninja'), to building GPT, the GPT tokenizer and reproducing GPT-2. The fastest way to make attention-from-a-blank-file muscle memory.
2023Paper
Mitchell Wortsman et al. (Google DeepMind) · Sep 2023 · ~2 h
Reproduces large-model instabilities (attention-logit growth, output-logit divergence) in small models and shows the fixes (qk-layernorm, z-loss) and LR sensitivity analysis.
2022Practice
Sasha Rush · Oct 2022 · ~3 h
Write the backward (VJP) for a series of tensor functions, checked automatically; directly drills matmul, sum, broadcasting and indexing gradients.
2022Practice
Sasha Rush · Apr 2022 · ~4 h
21 puzzles reimplementing NumPy/PyTorch functions using only broadcasting and arange, one line each.
2019Blog post
Andrej Karpathy · Apr 2019 · ~1 h
The canonical checklist: inspect data, fix seeds, verify init loss (~ln(vocab)), overfit one batch, visualize just before the net, add complexity one step at a time.