ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Ratio controlling the rotary cache magnitude

This coefficient divides the adjustment computed with mscale by the adjustment computed with mscale_all_dim. Equal strengths give a ratio of one. The attention initializer can still multiply its own coefficient by a squared adjustment, so an unchanged rotary-cache…

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-36acc350e692bdsource-code mathematical expression
_mscale = float( yarn_get_mscale(self.scaling_factor, self.mscale) / yarn_get_mscale(self.scaling_factor, self.mscale_all_dim))

Read the equation

This coefficient divides the adjustment computed with mscale by the adjustment computed with mscale_all_dim. Equal strengths give a ratio of one. The attention initializer can still multiply its own coefficient by a squared adjustment, so an unchanged rotary-cache magnitude does not imply unchanged attention scaling.

Terms & definitions

The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.

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
freqs = torch.outer(t, inv_freq)

        _mscale = float(
            yarn_get_mscale(self.scaling_factor, self.mscale) /
            yarn_get_mscale(self.scaling_factor, self.mscale_all_dim))

        emb = torch.cat((freqs, freqs), dim=-1)
        self.register_buffer("cos_cached", (emb.cos() * _mscale).to(dtype),
Exact original notation
_mscale = float(
            yarn_get_mscale(self.scaling_factor, self.mscale) /
            yarn_get_mscale(self.scaling_factor, self.mscale_all_dim))

Related builds

Sources & provenance

01
kimi source tree.txt
lines 2630–2632 · Aug 5, 2026
_mscale = float( yarn_get_mscale(self.scaling_factor, self.mscale) / yarn_get_mscale(self.scaling_factor, self.mscale_all_dim))
02
DEEPSEEK_R1_COMPLETE.txt
lines 2426–2429 · Aug 5, 2026
_mscale = float( yarn_get_mscale(self.scaling_factor, self.mscale) / yarn_get_mscale(self.scaling_factor, self.mscale_all_dim) )
03
kimi source tree.txt
lines 2630–2632 · Aug 5, 2026
_mscale = float( yarn_get_mscale(self.scaling_factor, self.mscale) / yarn_get_mscale(self.scaling_factor, self.mscale_all_dim))
04
DEEPSEEK_R1_COMPLETE.txt
lines 2426–2429 · Aug 5, 2026
_mscale = float( yarn_get_mscale(self.scaling_factor, self.mscale) / yarn_get_mscale(self.scaling_factor, self.mscale_all_dim) )

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