pub fn moe_topk_softmax_bias(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
gate_logits: DevicePtr,
bias: DevicePtr,
expert_indices: DevicePtr,
expert_weights: DevicePtr,
zero_accum: DevicePtr,
num_logits: u32,
num_routed: u32,
top_k: u32,
normalize: bool,
scaling_factor: f32,
stream: u64,
) -> Result<()>Expand description
2026-09-25: Softmax router with a correction bias and the zero-expert fold, one token. Logits
cover num_logits experts, of which ids >= num_routed are identity experts: a selected one
adds its weight to zero_accum and its slot becomes expert 0 with weight 0.