RoPE — Full Rotation Matrix Rotary Position Encoding
RoPE rotates each dimension pair (q2i, q2i+1) by angle pos · θi using a 2×2 rotation matrix — requiring both cos and sin. Toggle between three views of the same underlying data.
View:
Hover mode:
cos(pos · θi)
sin(pos · θi)
Sequence position (pos ↓)
Dimension pair index (i →)
0 (fast)64127 (slow)
0 (fast)64127 (slow)
−1 +1