← Mathematical compendium

Published equation contexts

d/2d/2

Why this formula appears here

Split each query or key vector of dimension d into d/2 two-dimensional pairs. Pair i is assigned a fixed rotation frequency

Read the full article-specific guide →

Read the representative guide

dd

Symbol d

d is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Read this term in its guide →

How to interpret it

Read this expression with the definitions, units, and assumptions supplied by the article.

Research cited beside this formula

Published contexts (2)

A symbol can carry a different meaning in another article. Each occurrence keeps its own guide and term definitions.

d/2d/2

Equation 12 · Open Models

How Llama's Architecture Actually Works, Generation by Generation

This mathematical expression combines the displayed quantities; its precise role follows from the surrounding article text.

The one free parameter is base , the constant that sets how quickly the rotation angles grow across the d/2 frequency bands. A small base makes low-index pairs rotate almost a full turn per token, encoding fine-grained short-range position; a large base slows that rotation down, which is what lets high-index pairs still carry usable positional signal at sequence positions far beyond what the model saw in training. Llama 1 and Llama 2 shipped with the RoPE default of base = 10,000, matching the value in Su and colleagues’ original formulation. Llama 3 raised it to 500,000 specifically as part of extending context to 128,000 tokens [ 5 , 2 ] . Nothing about the rotation mechanism changed…

Equation guide → · Article →