Formula

Solution for RoPE Base Scaling Factor (λ)

The scaling factor λ\lambda for Rotary Positional Embeddings (RoPE) can be determined by solving the period matching equation. This process involves simplifying the exponent to isolate λ\lambda. The resulting formula, which produces an embedding model adapted for different sequence lengths, is: λ=(mml)d2(d21)=(mml)dd2\lambda = \left(\frac{m}{m_l}\right)^{\frac{d}{2(\frac{d}{2}-1)}} = \left(\frac{m}{m_l}\right)^{\frac{d}{d-2}} Here, mm represents the new sequence length, mlm_l is the original length, and dd is the embedding dimensionality.

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

Related