diff --git a/python/sglang/kernels/ops/diffusion/norm/channel_rmsnorm_preserve_reduction.py b/python/sglang/kernels/ops/diffusion/norm/channel_rmsnorm_preserve_reduction.py index 3bffac7d35..1d8daf1ab7 100644 --- a/python/sglang/kernels/ops/diffusion/norm/channel_rmsnorm_preserve_reduction.py +++ b/python/sglang/kernels/ops/diffusion/norm/channel_rmsnorm_preserve_reduction.py @@ -20,7 +20,7 @@ def _channel_rmsnorm_finish_kernel( SCALE: tl.constexpr, BLOCK: tl.constexpr, ): - index = tl.program_id(0) * BLOCK + tl.arange(0, BLOCK) + index = tl.program_id(0).to(tl.int64) * BLOCK + tl.arange(0, BLOCK) mask = index < N channel = index // SPATIAL % CHANNELS norm_index = index // (CHANNELS * SPATIAL) * SPATIAL + index % SPATIAL