[Bug-fix] Fix MoE fused sum row offsets (#50220)

Signed-off-by: yaozhiyuan.666 <yaozhiyuan.666@bytedance.com>
Co-authored-by: yaozhiyuan.666 <yaozhiyuan.666@bytedance.com>
This commit is contained in:
yzyyzyhhh
2026-09-04 09:39:02 -07:00
committed by GitHub
co-authored by yaozhiyuan.666
parent 761c5861e3
commit 1ff5edb023
@@ -58,7 +58,7 @@ def moe_fused_mul_sum_kernel(
weights += (tl.load(w_row + n).to(tl.float32),) # type: ignore[assignment]
n_tiles: tl.constexpr = (hidden_size + BLOCK_K - 1) // BLOCK_K
a_row = inputs_ptr + pid_m * stride_m
a_row = inputs_ptr + pid_m.to(tl.int64) * stride_m
out_row = outputs_ptr + pid_m * hidden_size
for t in tl.range(0, n_tiles):