alloc_kda_ssm_state

Function alloc_kda_ssm_state 

Source
pub fn alloc_kda_ssm_state(
    gpu: &dyn GpuBackend,
    cfg: &Glm5NextKdaConfig,
) -> Result<SsmLayerState>
Expand description

2026-09-25: Allocate a KDA layer’s recurrent and conv state outside the SSM pool, FP32 (h_is_f16: false), zeroed, with no checkpoints or intermediates. The model path uses pool slots instead (Glm5NextLayer::uses_ssm_pool).