Skip to content

Commit 1689202

Browse files
Fix threshold (#166)
Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
1 parent caaa4eb commit 1689202

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flash_attn/cute/flash_fwd_sm100.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,7 @@ def softmax_loop(
20292029

20302030
rescale_threshold = (
20312031
8.0 if const_expr(self.q_dtype.width == 16) else
2032-
4.0 if const_expr(self.q_dtype.width == 8) else
2032+
0.75 if const_expr(self.q_dtype.width == 8) else
20332033
0.0
20342034
)
20352035
softmax = SoftmaxSm100.create(

0 commit comments

Comments
 (0)