PaperLeet

RoFormer / RoPE

RoFormer: Enhanced Transformer with Rotary Position Embedding

Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu · arXiv 2021

Read paper · arXiv:2104.09864

Rotate adjacent projected feature pairs to express relative positions in attention logits.

What you will implement

Implement full-width RoPE; verify direction, frequencies, gradients and absolute offsets in chunked caches.