Skip to main content
New Self-paced AI courses — learn ML, deep learning, and agents on your schedule. Enroll free

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.

  1. Lesson 1 of 8

    16.1 From sequence-to-sequence to attention

    Enroll to open · 22 min read

  2. Lesson 2 of 8

    16.2 Self-attention math

    Enroll to open · 24 min read

  3. Lesson 3 of 8

    16.3 Multi-head attention

    Enroll to open · 24 min read

  4. Lesson 4 of 8

    16.4 Positional encoding

    Enroll to open · 24 min read

  5. Lesson 5 of 8

    16.5 Masking and causal attention

    Enroll to open · 24 min read

  6. Lesson 6 of 8

    16.6 Transformer block anatomy

    Enroll to open · 26 min read

  7. Lesson 7 of 8

    16.7 A tiny transformer end to end

    Enroll to open · 28 min read

  8. Lesson 8 of 8

    16.8 Why transformers scale well

    Enroll to open · 24 min read

← Back to course