LESSON 10.08 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
RoPE scaling and position interpolation
Watch slow RoPE pairs turn past the trained range, then two fixes pull them back.
Needs10.07 ALiBi
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 10.08 · ROPE SCALINGTRAINED ON 8 POSITIONS · 4 PAIRS
01
Stage 1 of 5 · Trained turns
In training, RoPE turns each pair by its position times ω. The ochre arcs mark the turns the model saw.
Explain it simply
Each circle is one pair of numbers in a query or key. RoPE turns that pair by an angle that grows with the position. Pair 0 turns fast and goes full circle in about 6 positions, inside the 8 it trained on. Pair 3 turns so slowly that the dial zooms in 250 times to show it.
Four dials, one per pair. Positions 0 to 7 sit on each dial. An ochre arc covers the turns that training saw; pair 0's arc is a full circle.
positions (hollow: past 7)turns (band: trained; arc: 0 to 4)out of rangetrained turn, or past 7
Toy: 16 tokens, width 8 (4 pairs), trained on 8 positions; seeded embeddings (not trained)
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each pair turns by its position times its frequency.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 2 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.