Repository navigation
[CI] Report Windows smoke test accuracy diffs - #6466
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
fd16fdc to
92b376d
Compare
92b376d to
bdd69f9
Compare
zufayu
left a comment
There was a problem hiding this comment.
Approving — and it has already earned its keep. From the run on this head:
rms_norm: max_abs_diff=9.766e-04 tol={atol:0.02, rtol:0.02}
rmsnorm2d_fwd: max_abs_diff=9.537e-07 tol={atol:1e-4, rtol:1e-4}
silu_and_mul: max_abs_diff=0.000e+00 tol={atol:0.02, rtol:0.02}
topk_softmax_weights[renorm=False]: max_abs_diff=2.980e-08 tol={atol:1e-4, rtol:1e-4}
rotary_embedding_fwd_q[is_neox=True]: max_abs_diff=1.562e-02 tol={atol:0.02, rtol:0.02}
rotary_embedding_fwd_k[is_neox=True]: max_abs_diff=3.125e-02 tol={atol:0.02, rtol:0.02}
Four of the ops are essentially exact and rotary_embedding is four orders of magnitude looser. 1.562e-02 and 3.125e-02 are 2^-6 and 2^-5, i.e. bf16 quantisation steps, so this is very likely just bf16 rounding rather than anything wrong — but none of that was visible before this change, and "passes" and "passes with no margin" used to look identical in the log.
Three small things, all cosmetic:
-
rotary_embedding_fwd_k's3.125e-02is larger than its printedatolof2e-2, which reads as out-of-tolerance until you rememberassert_closecompares againstatol + rtol * |ref|. Printing the ratio against the effective tolerance, rather than the raw diff alone, would make the table self-explanatory and give a natural threshold to watch — anything above ~0.8 deserves a look. -
topk_softmax_idsshowstol={}because no tolerance is passed. Passingatol=0, rtol=0explicitly would read as "exact match required" rather than as a missing value. -
_assert_closeruns the int32idstensors through(out.float() - ref.float()).abs().max(), so that number is a difference between index values. It is correct as a pass/fail signal but has no precision meaning, which may confuse someone reading the table.
Separately: moving the toolchain verifier from a here-string piped to python - into a UTF-8-no-BOM temp file is a good catch, and unrelated to the rest of this change.
Summary
Validation
Note: local pytest/black/ruff are not installed in this environment, so the Windows smoke CI run is the functional validation.
Follow-up to #6242.