Multi-Head Attention
Parallel attention heads focusing on different relationships. Projections, concatenation, output.
Learning path
Work through each subtopic in order. Click any file below to open its lesson. Track your progress with the checkbox at the bottom.
Subtopics
Each subtopic includes a concise explanation, code examples, and references.
Attention Head
Individual-head visualizer.
Multiple Attention Heads
Parallel attention panels.
Head Dimension
Dimension calculator.
QKV Projection
Projection pipeline.
Concatenation
Head-output stacking visualization.
Output Projection
Final linear transformation.