ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Baseline inverse-square-root attention coefficient

Initialize the score multiplier to 1/√d, where d is the total rotary plus non-rotary query-head width. This is the starting coefficient; the following YaRN branch can multiply it by an additional squared magnitude adjustment.

Donor model implementationhistorical source recovered; expression not executed in this website audit
Learn with the Atlas

Learn to read this model

Start with the symbols, follow the operations, and check what the result means.

Open guided lesson
donor-eq-16afe35aa53440source-code mathematical expression
self.softmaxscale=self.qheaddim∗∗(−0.5)self.softmax_scale = self.q_head_dim**(-0.5)

Read the equation

Initialize the score multiplier to 1/√d, where d is the total rotary plus non-rotary query-head width. This is the starting coefficient; the following YaRN branch can multiply it by an additional squared magnitude adjustment.

Terms & definitions

TermMeaning in this source
d

Configured query/key head dimension

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
)
        self._init_rope()

        self.softmax_scale = self.q_head_dim**(-0.5)
        if self.config.rope_scaling is not None:
            mscale_all_dim = self.config.rope_scaling.get("mscale_all_dim", 0)
            scaling_factor = self.config.rope_scaling["factor"]
Exact original notation
self.softmax_scale = self.q_head_dim**(-0.5)

Related builds

Sources & provenance

01
kimi source tree.txt
lines 3019–3019 · Aug 5, 2026
self.softmax_scale = self.q_head_dim**(-0.5)
02
DEEPSEEK_R1_COMPLETE.txt
lines 2799–2799 · Aug 5, 2026
self.softmax_scale = self.q_head_dim ** (-0.5)
03
kimi source tree.txt
lines 3019–3019 · Aug 5, 2026
self.softmax_scale = self.q_head_dim**(-0.5)
04
DEEPSEEK_R1_COMPLETE.txt
lines 2799–2799 · Aug 5, 2026
self.softmax_scale = self.q_head_dim ** (-0.5)

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