RoPE, step by step

Click through the five steps alongside your slides. Each step uses the slides’ notation and numbers.

Toy model for teaching: each pair has length 1 in steps 4 and 5, the frequencies are θ₀…θ₃ = 1, 0.1, 0.01, 0.001 rad per position (slide 10, d = 8), and every score is the raw dot product before scaling and softmax. Tip: ← and → also switch steps.