ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Logarithmic magnitude adjustment for extended context

For scale>1, the adjustment adds 0.1*mscale*ln(scale) to one. The code returns one for scale≤1. One parameter specifies the context extension, while the other controls adjustment strength; the returned value should not be confused with the input parameter also named…

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-714477f4b028f1source-code mathematical expression
return 0.1 * mscale * math.log(scale) + 1.0

Read the equation

For scale>1, the adjustment adds 0.1mscaleln(scale) to one. The code returns one for scale≤1. One parameter specifies the context extension, while the other controls adjustment strength; the returned value should not be confused with the input parameter also named mscale.

Terms & definitions

TermMeaning in this source
scale

Context extension factor

mscale

Magnitude-adjustment strength

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
def yarn_get_mscale(scale=1, mscale=1):
    if scale <= 1:
        return 1.0
    return 0.1 * mscale * math.log(scale) + 1.0


def yarn_linear_ramp_mask(min, max, dim):
Exact original notation
return 0.1 * mscale * math.log(scale) + 1.0

Related builds

Sources & provenance

01
kimi source tree.txt
lines 2569–2569 · Aug 5, 2026
return 0.1 * mscale * math.log(scale) + 1.0
02
DEEPSEEK_R1_COMPLETE.txt
lines 2360–2360 · Aug 5, 2026
return 0.1 * mscale * math.log(scale) + 1.0
03
kimi source tree.txt
lines 2569–2569 · Aug 5, 2026
return 0.1 * mscale * math.log(scale) + 1.0
04
DEEPSEEK_R1_COMPLETE.txt
lines 2360–2360 · Aug 5, 2026
return 0.1 * mscale * math.log(scale) + 1.0

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