[CI] Fix GSM8K floating-point tolerance boundary (#34272)

This commit is contained in:
Mohammad Miadh Angkad
2026-08-10 16:27:11 -07:00
committed by GitHub
parent ceeaec2078
commit 77b8315b84
@@ -104,7 +104,8 @@ class AccuracyTwoPassMixin:
)
self.assertLessEqual(
diff,
self.max_accuracy_diff,
# Allow floating-point noise at the exact threshold (e.g. 0.98 - 0.96).
self.max_accuracy_diff + 1e-12,
f"{name} accuracy diff {diff:.3f} exceeds max {self.max_accuracy_diff} "
f"(pass1={acc1:.3f}, pass2={acc2:.3f})",
)