ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Independent sigmoid scores for the router

The sigmoid 1/(1+exp(−z)) is applied to each expert logit independently. It compresses each finite real logit into (0,1), without normalizing across experts. These values are routing affinities; they become relative mixture weights only after gathering selected entries…

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-f57e021c71580bsource-code mathematical expression
scores=logits.sigmoid()scores = logits.sigmoid()

Read the equation

The sigmoid 1/(1+exp(−z)) is applied to each expert logit independently. It compresses each finite real logit into (0,1), without normalizing across experts. These values are routing affinities; they become relative mixture weights only after gathering selected entries and normalizing them.

Terms & definitions

TermMeaning in this source
logits

Raw expert logits

scores

Independent sigmoid affinities

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
logits = F.linear(hidden_states.type(torch.float32),
                          self.weight.type(torch.float32), None)
        if self.scoring_func == "sigmoid":
            scores = logits.sigmoid()
        else:
            raise NotImplementedError(
                f"insupportable scoring function for MoE gating: {self.scoring_func}"
Exact original notation
scores = logits.sigmoid()

Related builds

Sources & provenance

01
kimi source tree.txt
lines 2773–2773 · Aug 5, 2026
scores = logits.sigmoid()
02
DEEPSEEK_R1_COMPLETE.txt
lines 2540–2540 · Aug 5, 2026
scores = logits.sigmoid()
03
kimi source tree.txt
lines 2773–2773 · Aug 5, 2026
scores = logits.sigmoid()
04
DEEPSEEK_R1_COMPLETE.txt
lines 2540–2540 · Aug 5, 2026
scores = logits.sigmoid()

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