Skip to content

[CI] Report Windows smoke test accuracy diffs - #6466

Merged
gyohuangxin merged 1 commit into
ROCm:mainfrom
gyohuangxin:ci/windows-smoke-diff-logs
Oct 13, 2026
Merged

gyohuangxin merged 1 commit into
ROCm:mainfrom
gyohuangxin:ci/windows-smoke-diff-logs

Conversation

@gyohuangxin

@gyohuangxin gyohuangxin commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Print max_abs_diff before each Windows JIT smoke assert_close check.
  • Forward isolated subprocess stdout on successful pytest runs so the diff lines show up in CI logs.
  • Capture the Windows smoke pytest log and add a Markdown accuracy table to the GitHub Actions step summary.
  • Keep the existing assert_close tolerances unchanged.
  • Write the ROCm verifier script as a UTF-8 no-BOM temp file instead of piping it through PowerShell stdin, which avoids Python failing on a leading U+FEFF BOM.

Validation

  • python3 -m py_compile op_tests/windows/test_jit_ops_smoke.py
  • actionlint 1.7.12 across all workflows
  • git diff --check

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.

@gyohuangxin
gyohuangxin requested review from a team and a balanced review from Copilot October 13, 2026 05:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@gyohuangxin gyohuangxin added the ci:windows Trigger Windows smoke test on PR label Oct 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the gfx1201 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 6466 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 05:46
@gyohuangxin
gyohuangxin force-pushed the ci/windows-smoke-diff-logs branch from fd16fdc to 92b376d Compare October 13, 2026 05:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the CI label Oct 13, 2026
Copilot AI balanced review requested due to automatic review settings October 13, 2026 06:05
@gyohuangxin
gyohuangxin force-pushed the ci/windows-smoke-diff-logs branch from 92b376d to bdd69f9 Compare October 13, 2026 06:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@zufayu zufayu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. rotary_embedding_fwd_k's 3.125e-02 is larger than its printed atol of 2e-2, which reads as out-of-tolerance until you remember assert_close compares against atol + 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.

  2. topk_softmax_ids shows tol={} because no tolerance is passed. Passing atol=0, rtol=0 explicitly would read as "exact match required" rather than as a missing value.

  3. _assert_close runs the int32 ids tensors 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:windows Trigger Windows smoke test on PR CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants