[Bugfix][Tests] Stabilize B12X linear kernel checks (#54996)

Signed-off-by: Luke Alonso <lalonso@gmail.com>
This commit is contained in:
Luke Alonso
2026-09-02 18:46:08 +00:00
committed by GitHub
parent 9b38e3ad53
commit 1945a94575
2 changed files with 9 additions and 2 deletions
+4 -2
View File
@@ -406,5 +406,7 @@ def test_w8a8_block_fp8_b12x_matmul(M, N, K):
ref_out.float().flatten(),
dim=0,
)
assert rel_diff < 0.002
assert cosine >= 0.9999
# Four-way split-K uses atomic BF16 reductions, so nondeterministic atomic
# ordering can flap an output between adjacent BF16 values one ULP apart.
assert rel_diff < 0.003
assert cosine >= 0.99999