Transformers, From the Ground Up
Nine days from tokens to a full forward pass
The transformer architecture built one piece at a time: tokenization and embeddings, positional encoding, scaled dot-product attention, multi-head, residuals and layer norm, the feed-forward block, the full stack, training, and inference. Every step worked with tiny numeric matrices and interactive widgets.