residual_add_rms_norm_exact

Function residual_add_rms_norm_exact 

Source
pub fn residual_add_rms_norm_exact(
    gpu: &dyn GpuBackend,
    kernel: KernelHandle,
    hidden: DevicePtr,
    src: DevicePtr,
    weight: &DenseWeight,
    output: DevicePtr,
    residual: DevicePtr,
    num_tokens: u32,
    hidden_size: u32,
    eps: f32,
    stream: u64,
) -> Result<()>
Expand description

2026-09-28: residual_add_rms_norm_exact (residual_add_rms_norm_exact.cu): the arguments and launch of residual_add_rms_norm, with the bytes of bf16_residual_add followed by rms_norm_residual: the sum of squares reads the BF16-rounded sums. The circuit executor launches it across a layer boundary, with the next layer’s input-norm weight.