pub fn expert_delta_workitems(
expert_offsets: &[u32],
adapted: &[u16],
) -> Vec<ExpertWork>Expand description
PURE: from the base MoE expert_offsets prefix-sum ([num_experts + 1],
expert_offsets[e]..expert_offsets[e+1] = expert e’s sorted rows) and the
adapter’s adapted-expert set, produce the (expert, row_off, rows) work-items
for the delta side-path. Experts with zero routed rows or a malformed offset
pair are skipped (never a panic). This is the correctness-critical mapping
and is unit-tested without a GPU.