Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion fbgemm_gpu/experimental/gemm/triton_gemm/fp8_gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,9 @@ def _kernel_scale_fp8_row(

# Iterate over chunks of the row and apply scales.
for _k in range(0, tl.cdiv(N, BLOCK_SIZE)):
a = tl.load(A + pid * stride_am + n_offset * stride_an)
a = tl.load(
A + pid * stride_am + n_offset * stride_an, mask=n_offset < N, other=0.0
)
col_scale = tl.load(w_scale + n_offset)
scaled_a = a * row_scale * col_scale
tl.store(
Expand Down
Loading