Archived
At decode every MoE layer launches the router GEMM, router_topk_scatter after it, and the shared expert's gate. With R4D_ROUTER_FUSED=1 the last workgroup of the router's skinny bf16 GEMM, named by a self-resetting arrival counter, runs router_topk_scatter's body, and one more workgroup computes the shared gate; =2 keeps the gate separate. Each logit is the same split-K chain at the split the unfused GEMM's law picks, so the outputs are byte-identical. Decode band only (M <= 64); unset, nothing new is declared. Single stream: -0.8 % a step.