Deep Learning
Module 16 · Attention and transformers
Self-attention maths, multi-head attention, positional encoding, the transformer block and a working tiny transformer.
8 lessons
Follow in order
Use the button below to sign in and unlock lessons.
Your path
Lessons in sequence
Work through these in order—each lesson builds on the previous one.
-
Lesson 1 of 8
16.1 From sequence-to-sequence to attention
-
Lesson 2 of 8
16.2 Self-attention math
-
Lesson 3 of 8
16.3 Multi-head attention
-
Lesson 4 of 8
16.4 Positional encoding
-
Lesson 5 of 8
16.5 Masking and causal attention
-
Lesson 6 of 8
16.6 Transformer block anatomy
-
Lesson 7 of 8
16.7 A tiny transformer end to end
-
Lesson 8 of 8
16.8 Why transformers scale well