RoPE: rotary position embedding
A · 10-second intuition RoPE rotates each query and key by an angle that grows with its position, so their dot product depends on how far apart they are.
Predict before you read
Which vectors does RoPE rotate?
A · 10-second intuition RoPE rotates each query and key by an angle that grows with its position, so their dot product depends on how far apart they are.
Which vectors does RoPE rotate?