Skip to content

[CI] Regenerate loss baselines for FSDP+CP/EP flavors after PyTorch nightly bump - #5048

Merged
tianyu-l merged 1 commit into
pytorch:mainfrom
rishisinhanj:fix-fsdp2-grad-upcast-drift-oct2
Oct 5, 2026
Merged

tianyu-l merged 1 commit into
pytorch:mainfrom
rishisinhanj:fix-fsdp2-grad-upcast-drift-oct2

Conversation

@rishisinhanj

@rishisinhanj rishisinhanj commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Since Friday, all these tests have been failing on CUDA and ROCm:
llama3_fsdp+tp+cp, llama3_fsdp+tp+cp+region_ac,
gpt_oss_fsdp+tp+ep, and qwen3_moe_fsdp+tp+cp+ep_param_groups

it is likely from upstream: pytorch/pytorch#198668, which changes how FSDP2
accumulates gradients for params that get multiple contributions per
backward.

This PR regenerates the 3 affected loss files on ROCm from a current
CI run on main (commit e3929368edd2).

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 4, 2026
…orch nightly bump

Since 2026-10-02, llama3_fsdp+tp+cp, llama3_fsdp+tp+cp+region_ac,
gpt_oss_fsdp+tp+ep, and qwen3_moe_fsdp+tp+cp+ep_param_groups have been
failing their loss-parity check (--assert-equal) on ROCm, at step 2
instead of step 1. No torchtitan commit explains it: the same SHA
(6f716fe) passed CI at 08:57Z and failed at 12:16Z with nothing else
changed. Both CI workflows install torch unpinned, and the resolved
wheel moved from dev20261001 to dev20261002 in that window.

Likely cause upstream: pytorch/pytorch#198668, which changes how FSDP2
accumulates gradients for params that get multiple contributions per
backward (CP ring-attention, EP expert FFNs, activation-checkpoint
recompute) - exactly the flavors affected here.

Regenerates the 3 affected mi350x loss files (llama3, gpt_oss, qwen3)
from a current ROCm CI run on main (commit e392936, run 37166905940).
@rishisinhanj
rishisinhanj force-pushed the fix-fsdp2-grad-upcast-drift-oct2 branch from be5eb8c to e215fc7 Compare October 5, 2026 02:02
@rishisinhanj

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "ciflow/rocm" "module: rocm" "ciflow/fake-pg"

@pytorch-bot

pytorch-bot Bot commented Oct 5, 2026

Copy link
Copy Markdown

The ciflow label(s) ciflow/rocm, ciflow/fake-pg will be added, but CI won't be triggered until the workflows are approved (scroll to the bottom of this page).

Please ping one of the reviewers if you do not have access to approve and run workflows.

@pytorch-bot pytorch-bot Bot added ciflow/fake-pg Run 1-GPU Fake PG integration tests ciflow/rocm module: rocm labels Oct 5, 2026
@pytorch-bot

pytorch-bot Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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

@pytorch-bot

pytorch-bot Bot commented Oct 5, 2026

Copy link
Copy Markdown

The following ciflow label(s) have been added but CI has not been triggered yet because the workflows are awaiting approval:

  • ciflow/rocm
  • ciflow/fake-pg

Once a maintainer approves the workflows (scroll to the bottom of the PR page), the corresponding CI jobs will be triggered automatically. Please ping one of the reviewers if you do not have access to approve and run workflows.

@rishisinhanj
rishisinhanj marked this pull request as ready for review October 5, 2026 02:17
@tianyu-l
tianyu-l merged commit 45c6f39 into pytorch:main Oct 5, 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. module: rocm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants