Formula

Formula for RoPE with Linear Positional Interpolation

The implementation of linear positional interpolation in Rotary Positional Embeddings (RoPE) modifies the input to the embedding model. The new model, denoted as Ro\mathrm{Ro}', scales the position parameters by a factor of ml/mm_l / m, and is given by: Ro(xi,iθ)=Ro(xi,mlmiθ)\mathrm{Ro}'(\mathbf{x}_i, i\theta) = \mathrm{Ro}(\mathbf{x}_i, \frac{m_l}{m} i\theta) where mlm_l is the original sequence length and mm is the new extended sequence length.

Image 0

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Ch.2 Generative Models - Foundations of Large Language Models