Formula

Formula for RoPE Frequency Parameters (θ_k)

The frequency parameter θk\theta_k in Rotary Positional Embeddings (RoPE) is defined as an exponential function of its index kk. The specific formula is: θk=b2(k1)d\theta_k = b^{-\frac{2(k-1)}{d}} where bb is a predefined base, kk is the index for each pair of dimensions (ranging from 1{}1 to d/2d/2), and dd is the total dimensionality of the embedding. This formulation creates a geometric progression of frequencies.

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