ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Blend original and divided YaRN frequency schedules

The source uses inv_freq_mask as the weight on the original schedule and its complement as the weight on the divided schedule. Since inv_freq_mask=1−ramp, this is freq_inter*ramp+freq_extra*(1−ramp). Each intermediate frequency lies between its two schedules for a mask…

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-131b92d107e950source-code mathematical expression
invfreq=freqinter∗(1−invfreqmask)+freqextra∗invfreqmaskinv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask

Read the equation

The source uses inv_freq_mask as the weight on the original schedule and its complement as the weight on the divided schedule. Since inv_freq_mask=1−ramp, this is freq_interramp+freq_extra(1−ramp). Each intermediate frequency lies between its two schedules for a mask in[0,1].

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
)
        inv_freq_mask = 1.0 - yarn_linear_ramp_mask(low, high, dim // 2).to(
            device=device, dtype=torch.float32)
        inv_freq = freq_inter * (1 -
                                 inv_freq_mask) + freq_extra * inv_freq_mask
        self.register_buffer("inv_freq", inv_freq, persistent=False)

        t = torch.arange(seq_len, device=device, dtype=torch.float32)
Exact original notation
inv_freq = freq_inter * (1 -
                                 inv_freq_mask) + freq_extra * inv_freq_mask

Related builds

Sources & provenance

01
kimi source tree.txt
lines 2622–2623 · Aug 5, 2026
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask
02
DEEPSEEK_R1_COMPLETE.txt
lines 2419–2419 · Aug 5, 2026
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask
03
kimi source tree.txt
lines 2622–2623 · Aug 5, 2026
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask
04
DEEPSEEK_R1_COMPLETE.txt
lines 2419–2419 · Aug 5, 2026
inv_freq = freq_inter * (1 - inv_freq_mask) + freq_extra * inv_freq_mask

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