Peek LLM

Concept 03 · Positional Encoding

Positional Encoding

A token vector has meaning but no address. RoPE rotates pairs of query and key dimensions so their dot product can feel relative distance — without attaching a permanent position label.

1 exhibit Computed RoPE example Offline, single file