Skip to content
Road to Intelligence

Chapter 7 · Transformers

Transformer Explorer

Step through a real forward pass of one GPT-style Transformer block — embeddings, positions, multi-head attention, residuals, the MLP and the output softmax — with the tensor shape at every stage.

Try it · toy model

15 min