ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Residual addition around a transformed hidden state

Add the block input saved in residual to the output of the intervening transformation. Both operands must have the same residual-stream shape. The same expression appears around attention and feed-forward transformations; source occurrences identify which…

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

Read the state update

Follow the relationship between a current value and the next one.

Open guided lesson
donor-eq-a149fdf18496e0source-code mathematical expression
hiddenstates=residual+hiddenstateshidden_states = residual + hidden_states

Read the equation

Add the block input saved in residual to the output of the intervening transformation. Both operands must have the same residual-stream shape. The same expression appears around attention and feed-forward transformations; source occurrences identify which transformation produced hidden_states.

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
hidden_states = self.attention_qkvpacked(hidden_states, cu_seqlens,
                                                 max_seqlen, rope_freqs_cis)
        hidden_states = residual + hidden_states

        residual = hidden_states
        hidden_states = self.norm1(hidden_states)
Exact original notation
hidden_states = residual + hidden_states

Related builds

Sources & provenance

01
kimi source tree.txt
lines 1597–1597 · Aug 5, 2026
hidden_states = residual + hidden_states
02
kimi source tree.txt
lines 1602–1602 · Aug 5, 2026
hidden_states = residual + hidden_states
03
kimi source tree.txt
lines 3522–3522 · Aug 5, 2026
hidden_states = residual + hidden_states
04
kimi source tree.txt
lines 3528–3528 · Aug 5, 2026
hidden_states = residual + hidden_states
05
DEEPSEEK_R1_COMPLETE.txt
lines 3321–3321 · Aug 5, 2026
hidden_states = residual + hidden_states
06
DEEPSEEK_R1_COMPLETE.txt
lines 3327–3327 · Aug 5, 2026
hidden_states = residual + hidden_states
07
kimi source tree.txt
lines 1597–1597 · Aug 5, 2026
hidden_states = residual + hidden_states
08
kimi source tree.txt
lines 1602–1602 · Aug 5, 2026
hidden_states = residual + hidden_states
09
kimi source tree.txt
lines 3522–3522 · Aug 5, 2026
hidden_states = residual + hidden_states
10
kimi source tree.txt
lines 3528–3528 · Aug 5, 2026
hidden_states = residual + hidden_states
11
DEEPSEEK_R1_COMPLETE.txt
lines 3321–3321 · Aug 5, 2026
hidden_states = residual + hidden_states
12
DEEPSEEK_R1_COMPLETE.txt
lines 3327–3327 · Aug 5, 2026
hidden_states = residual + hidden_states

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