You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cuda : the gate of the shared expert is its own launch in every MoE layer #95
A Qwen3.6 35B-A3B decode step is 976 kernel launches, about 24 per layer, and the gap between two launches costs as much as a small kernel. The MoE layer ends with: shared expert gate (a mul_mat with one weight row, ffn_gate_inp_shexp, [2048] F32), then sigmoid, mul, add, add. The last four already run as one kernel (sigmoid_gate_add), the mul_mat is its own launch for one output value.
To check: can the tail kernel compute that dot product itself, with the same result.
Activity