Labs · Inside the block

RoPE and ALiBi

Position as a rotation of the query–key pair, or as a penalty on distance — the two modern answers.

RoPE rotation angles

Reads /api/positional-encoding/rope — loading

Computing…

ALiBi slopes and biases

Reads /api/positional-encoding/alibi — loading

Computing…

Learn it

  • Modern PE (Deep Dive) P10.positional-encoding.03IT/ML track — this module is not part of the language-professional track
RoPE and ALiBi — Labs — TransformerLab