Skip to content

Commit 472513d

Browse files
authored
fix the round mode uncontrollable (#1535)
1 parent 4fd07a2 commit 472513d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

csrc/py_itfs_cu/asm_mha_fwd.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ std::vector<at::Tensor> fmha_v3_fwd(at::Tensor &q, // [b, sq, hq, d]
319319
bias_type,
320320
has_lse,
321321
quant_scale_enum::no_scale,
322+
true,
322323
how_v3_bf16_cvt);
323324
TORCH_CHECK(t >= 0, "invalid argument for fmha_fwd");
324325
}

op_tests/test_mha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def run_ck(
106106
deterministic,
107107
return_lse=return_lse,
108108
return_attn_probs=return_attn_probs,
109-
how_v3_bf16_cvt=1,
109+
how_v3_bf16_cvt=2,
110110
cu_seqlens_q=cu_seqlens_q,
111111
cu_seqlens_kv=cu_seqlens_kv,
112112
num_rotate_args=1,

0 commit comments

Comments
 (0)