TRANSFORMERS AND LLMS · 2017
Transformer
Follow a sequence through embeddings, attention, residual connections, and position-wise computation.
INTERACTIVE ARCHITECTURE01 / 07
Token IDs
Contextual representations
STAGE 01
Token + position embeddings
x + pMap token IDs to vectors and add order information.
LIVE ATTENTION LAB
softmax(QKᵀ / √dₖ)Choose a query token to see its normalized attention across the sequence.
The query from AI is compared with every key. The resulting weights mix the value vectors. These illustrative vectors are fixed for this demo.
TAKE THE NEXT STEP
Turn understanding into practice
Explore the original paper, then apply the core idea in a coding challenge. Architecture diagrams here are teaching simplifications, not executable model implementations.