Idea · May 31, 2026
Tiny Transformer Workshop
A scaffolded multi-week project where students implement a GPT-style transformer from scratch in Python/PyTorch, then visualize its internals (attention heads, token embeddings, loss curves) through a React dashboard. Each week unlocks a new layer: tokenization, embedding, self-attention, MLP blocks, and finally training on a small corpus like Shakespeare or a subset of Python docs.
Key features
- Week-by-week starter code with autograded pytest suites at each milestone
- React + D3.js visualization dashboard showing live attention heat maps and generation step-by-step
- Flask endpoint to serve the student-trained model for a chat demo
- Final deliverable: a working mini-LLM that can continue short text prompts