Skip to content
2 changes: 1 addition & 1 deletion deepspeed/ops/sparse_attention/matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def make_sdd_lut(layout, block, dtype, device):
#_sparse_matmul._load_utils()
#start_width = 64 // block
#segmented = _sparse_matmul.sdd_segment(layout.type(torch.int32), start_width)
start_width = 128 // block
start_width = (128 if block > 16 else 32) // block
layout = layout.type(torch.int32)
segmented = libtriton.superblock(layout.data_ptr(),
layout.shape[0],
Expand Down