Skip to content

Commit 6228731

Browse files
justinchubyCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]> Signed-off-by: Justin Chu <[email protected]>
1 parent a72908b commit 6228731

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/mobius/models/qwen_image_test.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -663,9 +663,9 @@ def create_scheduler():
663663
# different BLAS backend, so they only reproduce up to float32 accumulation
664664
# order. Tensors here peak around |x| ~= 3.3, where one float32 ULP is about
665665
# 2.4e-7; the observed cross-platform drift after one transformer layer, three
666-
# scheduler steps and a VAE decode is ~6 ULP (1.5e-6). Allow ~20 ULP at that
667-
# magnitude, which is still two orders of magnitude tighter than the 1e-4 used
668-
# below for ONNX-vs-torch parity, so a genuine logic regression still fails.
666+
# scheduler steps and a VAE decode is ~6 ULP (1.5e-6). np.allclose permits
667+
# |a-b| <= atol + rtol*|b|; at |x|~=3.3 this is ~3.8e-5 (~160 ULP), still
668+
# ~9x tighter than the 1e-4 ONNX-vs-torch parity check below.
669669
golden_rtol = 1e-5
670670
golden_atol = 5e-6
671671
np.testing.assert_allclose(

0 commit comments

Comments
 (0)