Skip to content

[ROCm][CI] Regenerate all mi350x loss baselines (loss + grad_norm) from current main - #4926

Merged
tianyu-l merged 1 commit into
pytorch:mainfrom
rishisinhanj:fix/rocm-mi350x-baseline-losses-v2
Sep 28, 2026
Merged

tianyu-l merged 1 commit into
pytorch:mainfrom
rishisinhanj:fix/rocm-mi350x-baseline-losses-v2

Conversation

@rishisinhanj

@rishisinhanj rishisinhanj commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #4848. Every ROCm --assert-equal loss-parity test against
tests/assets/losses/real_pg/mi350x/*.txt is currently red. #4808 ("Use stacked layout for fused
feed-forward projections") refreshed the CUDA/a10g reference losses in
the same PR, but never touched the ROCm/mi350x baselines.

#4848 only updated loss, not grad_norm and some other tests have drifted as well. This PR regenerates all the affected loss files (both loss and grad_norm) from a single current-main CI run ([run 36459264445 (https://github.com/pytorch/torchtitan/actions/runs/36459264445), commit 60e4ac6254).

pytorch#4808 (Use stacked layout for fused feed-forward projections, 2026-09-20)
refreshed the CUDA/a10g reference losses but never touched
tests/assets/losses/real_pg/mi350x/*. Every ROCm integration run since
has failed --assert-equal, and by now every one of the 9 mi350x baseline
files is stale, not just the ones affected by pytorch#4808 directly (gpt_oss,
gpt_oss_pp, and qwen3 have since drifted too, from later unrelated
numerics changes on main).

pytorch#4848 (pianpwk) attempted this fix but only updated `loss` (leaving
`grad_norm` stale, since their comparator exits after the first
mismatching metric) and was opened before gpt_oss/gpt_oss_pp/qwen3 also
went stale, so it no longer matches current main. pianpwk asked in
pytorch#4848 (comment)
for a fresh PR with reference losses that are "up-to-date... and
certain" if available.

This PR regenerates all 9 files (both loss and grad_norm) from a single
current-main CI run (commit 60e4ac6, run 36459264445 / 36461798138 -
one run ID per triggering push event, same run). Every value here is
also confirmed bit-for-bit reproducible against pytorch#4848's independent CI
run from ~16 hours earlier (run 36367837013), which is strong evidence
these aren't just another snapshot of run-to-run ROCm nondeterminism.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 28, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@rishisinhanj
rishisinhanj marked this pull request as ready for review September 28, 2026 19:47
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Sep 28, 2026

@pianpwk pianpwk 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.

thanks!!

@tianyu-l
tianyu-l merged commit c3b6c8e into pytorch:main Sep 28, 2026
18 checks passed
rishisinhanj added a commit to rishisinhanj/torchtitan that referenced this pull request Oct 1, 2026
Follow-up to pytorch#4848/pytorch#4926. pytorch#4894 flipped loss-function torch.compile
from off to on by default (LocalCompileConfig.regions default
["gated_rmsnorm", "loss"] in torchtitan/distributed/local_compile.py),
changing the fp32 summation order in cross_entropy_loss/mse_loss. It
regenerated all 13 a10g CUDA loss baselines but did not touch
tests/assets/losses/real_pg/mi350x/*, leaving every ROCm --assert-equal
loss-parity test red since 2026-10-01T04:09 (e44a045).

Regenerates the 8 affected files (loss + grad_norm, all 10 steps) from
the tensorboard output of the same CI run that surfaced the failure
(actions run 36917144064, sha 6078523), the same method used by
pytorch#4926.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/fake-pg Run 1-GPU Fake PG integration tests ciflow/rocm CLA Signed This label is managed by the Meta Open Source bot. module: rocm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants