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
Read the concepts behind it