Expand description
2026-09-25: Nemotron-H Mamba-2 SSM layer (no FFN), implementing
TransformerLayer.
Decode, per token (trait_impl.rs):
- RMS norm, the layer input copied to
residual - in_proj GEMV into one row
[z (d_inner) | xBC (d_xbc) | dt (num_heads)] - causal conv1d update on xBC, with bias and a fused SiLU
- xBC split into x, B, C
- Mamba-2 SSM decode (state update and output y)
- gated RMS norm of y with gate z, in the order of the resolved
gated_rms_normkernel: the gb10 Nemotron trees’ kernels gate first,y * silu(z), then normalise eachd_inner / n_groupsslice - out_proj GEMV
- residual add into
hidden
Prefill runs the same steps over all tokens (prefill.rs, projection arms
in prefill_proj.rs).
Owner: model-arch (Nemotron-H). Invariants: none beyond the types.