Skip to content

[tests] Refresh MI350X PP goldens for the chunked-loss head reduction order - #5943

Merged
tianyu-l merged 1 commit into
mainfrom
fix-main-ci-rocm-goldens
Nov 8, 2026
Merged

tianyu-l merged 1 commit into
mainfrom
fix-main-ci-rocm-goldens

Conversation

@tianyu-l

@tianyu-l tianyu-l commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Summary (human-written)

Why

#5563 changed the pipeline head's gradient reduction from RS(g0) + RS(g1) + ...
to RS(g0 + g1 + ...) and regenerated the three A10G pipeline goldens. Its
description noted that the MI350X copies of the same three files still needed a
ROCm run. They were never refreshed, so Integration Tests (ROCm) has failed on
every push to main since 485c065 (2026-11-04):

[llama3_fsdp+tp+pp]          loss mismatch at step 6: baseline=4.709461688995361, imported=4.7094831466674805
[gpt_oss_pp+fsdp+cp+ep+sacop] loss mismatch at step 4: baseline=4.553682804107666, imported=4.553784370422363
[deepseek_v3_fsdp+cp+pp+ep]   loss mismatch at step 5: baseline=4.468291282653809, imported=4.46826171875
RuntimeError: 3 integration test(s) failed

(latest failing models job, at 6e5974a)

What changed

Mechanical, test assets only: tests/assets/losses/real_pg/mi350x/{llama3_pp,gpt_oss_pp,deepseek_v3_cp_pp}.txt
get their step rows from that job's "Baseline metrics in import file format"
output. The file headers are unchanged.

Numerics

The new values match the pattern #5563 described for A10G. The early steps stay
bitwise equal, and the first changed step is 3–5, with drift around 1e-6 relative:

File First changed step Steps 1..N-1
llama3_pp.txt 5 (grad_norm) bitwise equal
gpt_oss_pp.txt 3 (grad_norm) bitwise equal
deepseek_v3_cp_pp.txt 4 (grad_norm) bitwise equal

The MI350X runner is reproducible. Every main push from 485c065 through
6e5974a (about 30 runs, several PyTorch nightlies) printed bitwise-identical
baseline values for all three configs.

One value to look at: in gpt_oss_pp.txt, step 9 grad_norm goes from 1.466 to 2.028.
It is deterministic across those runs. The step 9 loss is essentially unchanged
(3.957991 vs 3.958083), and step 10 grad_norm goes back to 1.444. That points to
a one-step MoE spike on this tiny debug model, not a systematic gradient-scale
change: a doubled head gradient would raise every step.

Testing

None run locally (no MI350X). The ROCm models job on this PR should pass with
the refreshed files (ciflow/rocm).

… order

#5563 changed the PP head gradient reduction from RS(g0) + RS(g1) + ... to
RS(g0 + g1 + ...) and regenerated only the A10G goldens. The MI350X copies of
llama3_pp, gpt_oss_pp and deepseek_v3_cp_pp have failed the ROCm models job on
every main push since. Values are copied from the job's "Baseline metrics in
import file format" output, identical across runs at 485c065, 6e5974a and
every main push in between.
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Nov 8, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 8, 2026
@tianyu-l
tianyu-l merged commit 6062827 into main Nov 8, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants