Repository navigation
[ROCm][CI] Regenerate all mi350x loss baselines (loss + grad_norm) from current main - #4926
Merged
tianyu-l merged 1 commit intoSep 28, 2026
Conversation
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]>
|
|
rishisinhanj
marked this pull request as ready for review
September 28, 2026 19:47
rishisinhanj
requested review from
fegin,
tianyu-l,
wconstab and
wwwjn
as code owners
September 28, 2026 19:47
tianyu-l
approved these changes
Sep 28, 2026
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #4848. Every ROCm
--assert-equalloss-parity test againsttests/assets/losses/real_pg/mi350x/*.txtis currently red. #4808 ("Use stacked layout for fusedfeed-forward projections") refreshed the CUDA/a10g reference losses in
the same PR, but never touched the ROCm/mi350x baselines.
#4848 only updated
loss, notgrad_normand some other tests have drifted as well. This PR regenerates all the affected loss files (bothlossandgrad_norm) from a single current-mainCI run ([run 36459264445 (https://github.com/pytorch/torchtitan/actions/runs/36459264445), commit60e4ac6254).