🔒

Pro Lab

Rotary Embeddings (RoPE)

Why modern LLMs encode position by rotation, not addition. RoPE spins each query and key by an angle proportional to its position, so the attention score depends only on the relative distance between two tokens. Slide both positions together and the score holds; pull them apart and it changes.

🎬 Free preview in EN / हिं / ES — watch it, then unlock the lab to try it yourself.

Start 30 days free → Try 34 free labs No card needed · cancel anytime Already Pro? Log in