Skip to content

Update MI350X loss baselines for stacked W13 layout - #4848

Closed
pianpwk wants to merge 2 commits into
gh/pianpwk/105/basefrom
gh/pianpwk/105/head
Closed

pianpwk wants to merge 2 commits into
gh/pianpwk/105/basefrom
gh/pianpwk/105/head

Conversation

@pianpwk

@pianpwk pianpwk commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

PR #4808 updated the corresponding A10G baselines after changing fused feed-forward projections to a stacked layout, but left the MI350X baselines unchanged. These loss values were reproduced bit-for-bit by 19 post-merge ROCm CI runs across three PyTorch nightlies. Grad-norm values remain for a follow-up ROCm run because the prior comparator stopped after the first mismatching metric.

[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 23, 2026
@pianpwk
pianpwk marked this pull request as ready for review September 23, 2026 20:15
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Sep 23, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 23, 2026

Copy link
Copy Markdown

Warning: Unknown label ciflow/rocm-mi300.
Currently recognized labels are

  • ciflow/b200
  • ciflow/fake-pg
  • ciflow/h100.8
  • ciflow/real-pg
  • ciflow/rl
  • ciflow/rocm

Please add the new label to .github/pytorch-probot.yml

@pianpwk
pianpwk marked this pull request as draft September 23, 2026 20:16
@pytorch-bot pytorch-bot Bot removed the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Sep 23, 2026
pianpwk added a commit that referenced this pull request Sep 23, 2026
PR #4808 updated the corresponding A10G baselines after changing fused feed-forward projections to a stacked layout, but left the MI350X baselines unchanged. These loss values were reproduced bit-for-bit by 19 post-merge ROCm CI runs across three PyTorch nightlies. Grad-norm values remain for a follow-up ROCm run because the prior comparator stopped after the first mismatching metric.

ghstack-source-id: bc7585d
Pull Request resolved: #4848
@rishisinhanj

Copy link
Copy Markdown
Contributor

@pianpwk I was going to raise a PR for this as well from the AMD side to fix the CI, but I saw you had raised this one. Is there any blockers to get it merged? Thanks for the help!

[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Sep 28, 2026
PR #4808 updated the corresponding A10G baselines after changing fused feed-forward projections to a stacked layout, but left the MI350X baselines unchanged. These loss values were reproduced bit-for-bit by 19 post-merge ROCm CI runs across three PyTorch nightlies. Grad-norm values remain for a follow-up ROCm run because the prior comparator stopped after the first mismatching metric.

ghstack-source-id: b6c9938
Pull Request resolved: #4848
@pianpwk

pianpwk commented Sep 28, 2026

Copy link
Copy Markdown
Contributor Author

@pianpwk I was going to raise a PR for this as well from the AMD side to fix the CI, but I saw you had raised this one. Is there any blockers to get it merged? Thanks for the help!

@rishisinhanj to be honest the fix here is speculative and based on CI, not from reproing locally, so if you have an up-to-date reference loss that's certain, please do put up a PR!

@rishisinhanj

Copy link
Copy Markdown
Contributor

Sounds good @pianpwk! Thanks for the timely response - i've put up a new PR for this

tianyu-l pushed a commit that referenced this pull request Sep 28, 2026
…om current main (#4926)

## 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`).

Co-authored-by: Claude Sonnet 5 <[email protected]>
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.
@tianyu-l tianyu-l closed this Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rocm ciflow/rocm-mi300 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