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 →Published equation contexts
Split each query or key vector of dimension d into d/2 two-dimensional pairs. Pair i is assigned a fixed rotation frequency
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 →Read this expression with the definitions, units, and assumptions supplied by the article.
A symbol can carry a different meaning in another article. Each occurrence keeps its own guide and term definitions.
Equation 2 · Open Models
This mathematical expression combines the displayed quantities; its precise role follows from the surrounding article text.
Split each query or key vector of dimension d into d/2 two-dimensional pairs. Pair i is assigned a fixed rotation frequency
Equation guide → · Article →Equation 12 · Open Models
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 →