Formula

Calculation of RoPE Frequency Parameters

In Rotary Positional Embeddings (RoPE), the individual frequency parameters θk\theta_k are calculated using a fixed base, commonly 10000. This approach is analogous to the frequency settings used in sinusoidal positional embeddings. The formula for the k-th frequency component is given by: θk=100002(k1)d\theta_k = 10000^{-\frac{2(k-1)}{d}} where dd is the dimensionality of the embedding and kk is the index of the component, ranging from $1totod/2$.

Image 0

0

1

Updated 2026-04-29

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

Related