Equation 11 · Part 2 · How Llama's Architecture Actually Works, Generation by Generation
Symbol q
What this part means
q is part of the quantity the equation computes from the expression on the right.
Its job in the formula
q is part of the quantity the equation computes from the expression on the right.
Full expression→Symbol q→Article meaning
The passage around this formula
The property that makes this useful rather than merely elegant is that rotating a query at position m and a key at position n by these matrices before taking their dot product leaves a result that depends only on the distance between them: . Relative position falls out of the mechanism instead of being engineered into it separately, and — as the RoFormer paper’s own experiments emphasise — the same rotation formula applies at any sequence length the rotation frequencies were designed for, which is what makes RoPE the natural place to intervene when a later generation wants a longer context window [ 5 ] .
Learn the underlying idea
A variable is a named place for a value. Its letter is a local label: x can mean position in one formula and a data point in another.
Open the illustrated variables: a letter stands for a value guide →
See this notation across published equations →
Sources cited in the surrounding passage
These citations provide research context; check each source for the exact claim it supports.