pub fn moe_hash_route(
gpu: &dyn GpuBackend,
kernel: KernelHandle,
gate_logits: DevicePtr,
tid2eid: DevicePtr,
token_id_ptr: DevicePtr,
expert_indices: DevicePtr,
expert_weights: DevicePtr,
num_experts: u32,
top_k: u32,
normalize: bool,
scaling_factor: f32,
stream: u64,
) -> Result<()>Expand description
2026-09-25: Hash router, one token: the experts are the static tid2eid[token_id] row, and
the gate’s sqrt-softplus scores weight them. The token id is read on the device from
token_id_ptr.