ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Scaled query–key similarities with a rounded YaRN coefficient

The query–key matrix product forms similarities between each query position and key position. The prose uses 0.135237 as its attention multiplier. From the displayed exact settings, the multiplier is (1+0.1 ln 40)²/√192≈0.1352337789; the text’s decimal is an…

Donor architecture mathematicshistorical source recovered; expression not executed in this website audit
Learn with the Atlas

Understand the scale

See what normalization changes and which assumptions it introduces.

Open guided lesson
donor-deepseek-attention-scoredocumented formula or resource estimate
scores=q@kT∗0.135237scores = q @ k^T * 0.135237

Read the equation

The query–key matrix product forms similarities between each query position and key position. The prose uses 0.135237 as its attention multiplier. From the displayed exact settings, the multiplier is (1+0.1 ln 40)²/√192≈0.1352337789; the text’s decimal is an approximation. This equation precedes the attention mask and row-wise softmax.

Terms & definitions

TermMeaning in this source
q

Queries,192 components per head

k

Keys,192 components per head

How it works

Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.

Assumptions & limits

Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.

Original context

Read the surrounding source passage
ATTENTION
      q = concat(q_nope, q_rope)  -> 192 per head
      k = concat(k_nope, k_rope)  -> 192 per head  (k_rope broadcast to all heads)
      scores = q @ k^T * 0.135237
      probs  = softmax(scores, dim=-1) computed in float32, cast back to q.dtype
      out    = probs @ v                            -> 128 per head
      out    = o_proj(out.reshape(T, 16384))        -> 7168  fp8 (7168, 16384)
Exact original notation
scores = q @ k^T * 0.135237

Related builds

Sources & provenance

01
DEEPSEEK_R1_COMPLETE.txt
lines 900–900 · Aug 5, 2026
scores = q @ k^T * 0.135237
02
DEEPSEEK_R1_COMPLETE.txt
lines 900–900 · Aug 5, 2026
scores = q @ k^T * 0.135237

Search equations, builds, manuscript text, and recovered sources.