family nemotron_h
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
One block of the stack. Hover any part for its nnterp name; click to pin the card. The slider picks a block, each tick's color gives its block's shape, and the diagram redraws for the block picked.
identity layers[i].input + linear_attn.attention_output == layer_output
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
⚠︎ marks a value this checkpoint has only under some load: hover it for the condition.
What print(model) shows on nvidia/Nemotron-H-4B-Base-8K: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=3072, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 3072)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/Nemotron-H-4B-Instruct-128K: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=3072, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 3072)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3072, out_features=4096, bias=False)
(k_proj): Linear(in_features=3072, out_features=1024, bias=False)
(v_proj): Linear(in_features=3072, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=3072, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9216, 9216, kernel_size=(4,), stride=(1,), padding=(3,), groups=9216)
(in_proj): Linear(in_features=3072, out_features=16496, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7168, out_features=3072, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3072, out_features=12288, bias=False)
(down_proj): Linear(in_features=12288, out_features=3072, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((3072,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/Nemotron-H-8B-Base-8K: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=4096, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 4096)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/Nemotron-H-8B-Reasoning-128K: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=4096, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 4096)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=1024, bias=False)
(v_proj): Linear(in_features=4096, out_features=1024, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=21504, bias=False)
(down_proj): Linear(in_features=21504, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/Nemotron-H-47B-Base-8K: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=8192, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 8192)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(62): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(63): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(64): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(65): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(66): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(67): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(68): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(69): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(70): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(71): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(72): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(73): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(74): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(75-77): 3 x NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(78-79): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(80-82): 3 x NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(83): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(84): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(85): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(86): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(87): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(88): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(89): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(90): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(91): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(92): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(93): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(94): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(95): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(96): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(97): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/Nemotron-H-47B-Reasoning-128K: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=8192, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 8192)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(62): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(63): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(64): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(65): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(66): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(67): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(68): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(69): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(70): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(71): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(72): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(73): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(74): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(75-77): 3 x NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(78-79): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(80-82): 3 x NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(83): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(84): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(85): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(86): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(87): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(88): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(89): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(90): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(91): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(92): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(93): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(94): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(95): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(96): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(97): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=30720, bias=False)
(down_proj): Linear(in_features=30720, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/Nemotron-H-56B-Base-8K: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=8192, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 8192)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(62): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(63): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(64): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(65): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(66): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(67): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(68): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(69): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(70): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(71): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(72): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(73): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(74): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(75): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(76): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(77): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(78): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(79): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(80): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(81): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(82): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(83): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(84): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(85): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(86): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(87): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(88): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(89): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(90): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(91): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(92): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(93): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(94): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(95): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(96): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(97): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(98): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(99): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(100): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(101): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(102): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(103): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(104): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(105): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(106): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=1024, bias=False)
(v_proj): Linear(in_features=8192, out_features=1024, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(107): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(108): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(109): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(110): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(111): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(112): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(113): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(114): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(115): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(116): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(20480, 20480, kernel_size=(4,), stride=(1,), padding=(3,), groups=20480)
(in_proj): Linear(in_features=8192, out_features=37120, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(117): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=32768, bias=False)
(down_proj): Linear(in_features=32768, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-Nano-9B-v2-Base: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=4480, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 4480)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6-7): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43-44): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-Nano-9B-v2: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=4480, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 4480)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6-7): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4480, out_features=5120, bias=False)
(k_proj): Linear(in_features=4480, out_features=1024, bias=False)
(v_proj): Linear(in_features=4480, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=4480, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43-44): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=4480, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=4480, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=4480, out_features=15680, bias=False)
(down_proj): Linear(in_features=15680, out_features=4480, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((4480,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-Nano-12B-v2-Base: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=5120, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 5120)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-Nano-12B-v2: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=5120, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 5120)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=5120, out_features=5120, bias=False)
(k_proj): Linear(in_features=5120, out_features=1024, bias=False)
(v_proj): Linear(in_features=5120, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=5120, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(12288, 12288, kernel_size=(4,), stride=(1,), padding=(3,), groups=12288)
(in_proj): Linear(in_features=5120, out_features=22656, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=10240, out_features=5120, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=5120, out_features=20480, bias=False)
(down_proj): Linear(in_features=20480, out_features=5120, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((5120,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=3136, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 3136)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6-7): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3136, out_features=5120, bias=False)
(k_proj): Linear(in_features=3136, out_features=1024, bias=False)
(v_proj): Linear(in_features=3136, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=3136, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3136, out_features=5120, bias=False)
(k_proj): Linear(in_features=3136, out_features=1024, bias=False)
(v_proj): Linear(in_features=3136, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=3136, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3136, out_features=5120, bias=False)
(k_proj): Linear(in_features=3136, out_features=1024, bias=False)
(v_proj): Linear(in_features=3136, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=3136, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30-31): 2 x NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=3136, out_features=5120, bias=False)
(k_proj): Linear(in_features=3136, out_features=1024, bias=False)
(v_proj): Linear(in_features=3136, out_features=1024, bias=False)
(o_proj): Linear(in_features=5120, out_features=3136, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34-36): 3 x NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(9728, 9728, kernel_size=(4,), stride=(1,), padding=(3,), groups=9728)
(in_proj): Linear(in_features=3136, out_features=17504, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=7680, out_features=3136, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(mlp/mixer): NemotronHMLP(
(up_proj): Linear(in_features=3136, out_features=12544, bias=False)
(down_proj): Linear(in_features=12544, out_features=3136, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((3136,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-Base-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=2688, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 2688)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=2688, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 2688)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-Base-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=4096, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 4096)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(62): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(63): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(64): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(65): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(66): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(67): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(68): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(69): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(70): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(71): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(72): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(73): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(74): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(75): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(76): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(77): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(78): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(79): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(80): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(81): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(82): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(83): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(84): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(85): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(86): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(87): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=4096, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 4096)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(62): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(63): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(64): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(65): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(66): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(67): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(68): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(69): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(70): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(71): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(72): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(73): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(74): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(75): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(76): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(77): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(78): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=4096, out_features=4096, bias=False)
(k_proj): Linear(in_features=4096, out_features=256, bias=False)
(v_proj): Linear(in_features=4096, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=4096, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(79): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(80): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(81): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(82): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(83): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(84): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(85): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(86): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(10240, 10240, kernel_size=(4,), stride=(1,), padding=(3,), groups=10240)
(in_proj): Linear(in_features=4096, out_features=18560, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=8192, out_features=4096, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(87): NemotronHBlock(
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=4096, out_features=5376, bias=False)
(down_proj): Linear(in_features=5376, out_features=4096, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=4096, out_features=1024, bias=False)
(fc2_latent_proj): Linear(in_features=1024, out_features=4096, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((4096,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-Base-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=8192, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 8192)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(62): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(63): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(64): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(65): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(66): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(67): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(68): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(69): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(70): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(71): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(72): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(73): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(74): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(75): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(76): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(77): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(78): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(79): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(80): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(81): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(82): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(83): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(84): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(85): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(86): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(87): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(88): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(89): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(90): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(91): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(92): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(93): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(94): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(95): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(96): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(97): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(98): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(99): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(100): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(101): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(102): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(103): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(104): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(105): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(106): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(107): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=8192, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 8192)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(52): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(53): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(54): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(55): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(56): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(57): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(58): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(59): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(60): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(61): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(62): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(63): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(64): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(65): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(66): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(67): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(68): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(69): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(70): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(71): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(72): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(73): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(74): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(75): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(76): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(77): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(78): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(79): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(80): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(81): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(82): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(83): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(84): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(85): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(86): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(87): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(88): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(89): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(90): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(91): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(92): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(93): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(94): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(95): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(96): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(97): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(98): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=8192, out_features=8192, bias=False)
(k_proj): Linear(in_features=8192, out_features=256, bias=False)
(v_proj): Linear(in_features=8192, out_features=256, bias=False)
(o_proj): Linear(in_features=8192, out_features=8192, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(99): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(100): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(101): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(102): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(103): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(104): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(105): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(106): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(18432, 18432, kernel_size=(4,), stride=(1,), padding=(3,), groups=18432)
(in_proj): Linear(in_features=8192, out_features=35072, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=16384, out_features=8192, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(107): NemotronHBlock(
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=8192, out_features=10240, bias=False)
(down_proj): Linear(in_features=10240, out_features=8192, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Linear(in_features=8192, out_features=2048, bias=False)
(fc2_latent_proj): Linear(in_features=2048, out_features=8192, bias=False)
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((8192,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-Base-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=2688, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 2688)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)What print(model) shows on nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16: the native modules, standard names and every standard value with its layout.
NemotronHForCausalLM(
(lm_head): Linear(in_features=2688, out_features=131072, bias=False)
(generator): Generator(
(streamer): Streamer()
)
(embed_tokens): Embedding(131072, 2688)
(layers): ModuleList(
(0): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(1): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(2): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(3): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(4): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(5): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(6): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(7): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(8): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(9): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(10): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(11): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(12): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(13): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(14): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(15): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(16): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(17): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(18): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(19): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(20): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(21): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(22): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(23): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(24): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(25): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(26): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(27): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(28): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(29): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(30): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(31): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(32): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(33): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(34): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(35): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(36): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(37): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(38): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(39): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(40): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(41): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(42): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(self_attn/mixer): NemotronHAttention(
(q_proj): Linear(in_features=2688, out_features=4096, bias=False)
(k_proj): Linear(in_features=2688, out_features=256, bias=False)
(v_proj): Linear(in_features=2688, out_features=256, bias=False)
(o_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries_prerope) -> Queries [batch num_heads seq qk_head_dim]: The queries entering the rotary embedding
(attention_keys_prerope) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering the rotary embedding
(attention_queries) -> Queries [batch num_heads seq qk_head_dim]: The queries entering attention
(attention_keys) -> Keys [batch num_kv_heads seq qk_head_dim]: The keys entering attention
(attention_values) -> Values [batch num_kv_heads seq head_dim]: The values entering attention
(attention_scores) -> Pattern [batch num_heads query key]: The attention scores entering the softmax, masked
(attention_premix) -> HeadOutputs [batch seq num_heads head_dim]: Every head's output side by side, as the output projection takes it
(attention_output) -> Residual [batch seq hidden_size]: What the attention adds to the residual stream
(attention_probabilities) -> Pattern [batch num_heads query key]: The attention pattern the values are mixed with
(attention_head_outputs) -> HeadOutputs [batch seq num_heads head_dim]: The per-head outputs before the output projection
(interface): The attention function this call ran, as f(queries, keys, values) -> (head outputs, pattern), with the rest of the call's arguments
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(43): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(44): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(45): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(46): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(47): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(48): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(49): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(50): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(linear_attn/mixer): NemotronHMamba2Mixer(
(act): SiLUActivation()
(conv1d): Conv1d(6144, 6144, kernel_size=(4,), stride=(1,), padding=(3,), groups=6144)
(in_proj): Linear(in_features=2688, out_features=10304, bias=False)
(norm): NemotronHRMSNormGated()
(out_proj): Linear(in_features=4096, out_features=2688, bias=False)
(attention_queries) -> SSDQueries [batch seq groups state_dim]: C, the queries reading the state
(attention_keys) -> SSDKeys [batch seq groups state_dim]: B, the keys writing into the state
(attention_values) -> SSDValues [batch seq heads head_dim]: x, the values written into the state
(betas) -> Gates [batch seq heads]: dt, the per-token write strength into the state
(decays) -> Gates [batch seq heads]: A * dt, the per-token log decay of the state
(state_input) -> State | None [batch heads key_dim value_dim]: The state entering the layer, or None at the start of a prompt (a copy of the cache's buffer)
(attention_head_outputs) -> SSDHeadOutputs [batch seq heads head_dim]: y, the per-head outputs before the gated norm and the output projection
(state_output) -> State [batch heads key_dim value_dim]: The state leaving the layer
(states) -> States [batch seq heads key_dim value_dim]: The state after every token of this call; needs nnterp.chunk_per_token(model)
(state): Unavailable: the chunk scan computes every token's state in one tensor per call, not one occurrence per token to walk with tracer.iter; read states, or state_after(t), after nnterp.chunk_per_token(model)
(set_state_after): Unavailable: the chunk scan computes every boundary state in one cumulative step from the initial state, so a state written at token t does not flow into later tokens' states; assign state_input to change where a call starts
(attention_output) -> Residual [batch seq hidden_size]: What the mixer adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
(51): NemotronHBlock(
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(mlp/mixer): NemotronHMoE(
(experts): NemotronHExperts(
(act_fn): ReLUSquaredActivation()
)
(router/gate): NemotronHTopkRouter()
(mlp/shared_experts): NemotronHMLP(
(up_proj): Linear(in_features=2688, out_features=3712, bias=False)
(down_proj): Linear(in_features=3712, out_features=2688, bias=False)
(act_fn): ReLUSquaredActivation()
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(fc1_latent_proj): Identity()
(fc2_latent_proj): Identity()
(expert_outputs) -> ExpertOutputs [batch seq top_k hidden_size]: Each routing slot's weighted expert output
(routed_output) -> Residual [batch seq hidden_size]: The routed experts' combined output
(mlp_activation) -> Neurons [batch seq intermediate_size]: The activation function's output
(mlp_neurons) -> Neurons [batch seq intermediate_size]: What the down projection receives: act(gate)·up on a gated MLP, the activation itself otherwise
(router_logits) -> RouterLogits [batch seq num_experts]: The router's logits, one per expert, before the scoring
(expert_weights) -> ExpertWeights [batch seq top_k]: The weight each selected expert's output is scaled by
(expert_indices) -> ExpertIndices [batch seq top_k]: The expert each routing slot sends the token to
(shared_expert_output) -> Residual [batch seq hidden_size]: The shared expert's output
(mlp_output) -> Residual [batch seq hidden_size]: What the MLP adds to the residual stream
)
(attention_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the attention
(layer_mid): Unavailable: a one-sublayer block: its norm feeds its one sublayer, so there is no stream between sublayers
(mlp_norm_output) -> Residual [batch seq hidden_size]: The normed stream entering the MLP
(layer_input) -> Residual [batch seq hidden_size]: The residual stream entering the block
(mlp_input) -> Residual [batch seq hidden_size]: What the MLP is called with
(layer_output) -> Residual [batch seq hidden_size]: The residual stream leaving the block, a tensor even when the block returns a tuple
)
)
(norm): NemotronHRMSNorm((2688,), eps=1e-05)
(logits) -> Logits [batch seq vocab_size]: The logits the model returns, after anything it does past lm_head (a softcap, a scale)
(token_embeddings) -> Residual [batch seq hidden_size]: The embedding module's output; layers[0].input is what enters the first block
(final_norm_output) -> Residual [batch seq hidden_size]: The residual stream after the final norm, what lm_head reads
(lm_head_output) -> Logits [batch seq vocab_size]: The head's logits before anything the model does past lm_head (a softcap, a scale)
(next_token_probs) -> NextTokenProbs [batch vocab_size]: The next-token distribution at the last position; derived, read-only
(input_ids) -> Tokens [batch seq]: The token ids the model was called with
(attention_mask) -> Tokens [batch seq]: The attention mask the model was called with; zeros are padding
(input_size): [batch, seq] of the current call; read-only
)out = x + mixer(norm(x)) # mixer: a Mamba-2 mixer, attention, an MLP or a mixture
A block is a Mamba-2 mixer (linear_attn), attention (self_attn), or an MLP or a mixture (mlp),
as config.layer_types lists, and has no attribute under the other names. Choose blocks from
layer_types outside the trace. A logit lens or a patch per block is one per sublayer.
The tokenizer adds no beginning-of-sequence token, and an early Mamba-2 mixer writes a vector at the prompt's first token many times the norm it writes elsewhere, on which the attention blocks put most of their attention. Leave position 0 out of activation statistics and steering-vector norms.
routed_scaling_factorOn the mixture checkpoints (Nemotron 3 Nano 30B-A3B, Super, Ultra, Nemotron 3.5 Lightning) the router
picks experts by their sigmoid plus a selection bias, e_score_correction_bias, so the top
router_logits are not always the chosen experts. expert_weights are the chosen sigmoids without
the bias, renormalized and multiplied by routed_scaling_factor, so they sum to it at every token.
Nemotron-H (NemotronHForCausalLM; Nemotron-H, Nemotron-Nano-2, Nemotron-3 Nano, Super, Ultra and Lightning).
Every block holds one norm and one sublayer, the mixer, whose class the
block's entry in config.layers_block_type picks::
model.embeddings
model.layers[i] NemotronHBlock
.norm RMSNorm
.mixer one of:
NemotronHMamba2Mixer ("linear_attention", an SSD mixer)
NemotronHAttention ("full_attention", no rotary embedding)
NemotronHMoE ("moe": routed experts plus a shared expert)
NemotronHMLP ("mlp")
model.norm_f
lm_head
Each block is hidden + mixer(norm(hidden)). One native name, four
meanings, so the standard name is keyed on the mixer's class in RENAME:
linear_attn on a Mamba-2 block, self_attn on an attention block,
mlp on an MoE or MLP block. The block's norm keeps its name (its output
is the sublayer's .input). A block has exactly one of the three, so
support reports the other two missing on it, per block, and the
contribution identity is input + <the one sublayer's output> == layer_output.
The attention runs the shared attention interface (no rotary embedding), so the
base Attention holds; the Mamba-2 mixer is transformers' Mamba-2 code, so the
base StateSpace holds; the MoE and the MLP return what the block adds. The
model makes its logits in float32 (lm_head(...).float()), so
project_on_vocab does too. Sizes: the attention's heads are the config's
num_attention_heads / num_key_value_heads / head_dim; the dense
MLP is intermediate_size wide, an MoE block's experts
moe_intermediate_size.
NemotronH Omni (NemotronH_Omni_Reasoning_V3, model type nemotron_h_omni)
holds this model whole at language_model
(language_model.model.*, language_model.lm_head) beside a RADIO tower at
vision_model, vision (a RadioVision), and multi_modal_projector,
projector (after the pixel shuffle). The root scatters the image features in
its own forward (ROOT_SCATTER), so vision.image_features is read there.
RADIO packs every image of an invoke into one row behind its CLS and register
tokens, so its blocks' values are Patches with 1 in the images axis and
prefix + patches tokens per image; patch_embeddings is the patch
projection's output, before those tokens and the position embeddings. A
block scales what each sublayer adds (layer_scale1, layer_scale2), so
attention_output and mlp_output are the scales' outputs. The attention
makes one interface call over the row for one image and one per image for
several, so its queries, keys and values are served whole and its scores,
pattern and head outputs are Unavailable (RADIO_PER_IMAGE).