Skip to content

fix loss parallel parity test, spmd_types 0.2.1 - #3560

Merged
pianpwk merged 1 commit into
mainfrom
temp/loss-parity-spmd-types-021
Jun 6, 2026
Merged

pianpwk merged 1 commit into
mainfrom
temp/loss-parity-spmd-types-021

Conversation

@pianpwk

@pianpwk pianpwk commented Jun 5, 2026 •

Copy link
Copy Markdown
Contributor

well this was stupid

(fwd was wrapped, interestingly GPU still passed)

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 5, 2026

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

potentially unblock CI fail on main, confirm cpu integration test is clean first and then land

@pianpwk
pianpwk marked this pull request as ready for review June 5, 2026 23:51
@pianpwk
pianpwk requested review from fegin, tianyu-l and wwwjn as code owners June 5, 2026 23:51
Comment thread tests/unit_tests/test_loss.py Outdated
Comment on lines +394 to +396
torch.testing.assert_close(
local_grad_dtensor.full_tensor(),
logits_dtensor.grad.full_tensor(),

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.

this doesn't smell right

@pianpwk
pianpwk force-pushed the temp/loss-parity-spmd-types-021 branch from ceccb38 to 6fe6b6a Compare June 6, 2026 06:59
@pianpwk pianpwk changed the title Relax loss parallel parity test, spmd_types 0.2.1 fix loss parallel parity test, spmd_types 0.2.1 Jun 6, 2026
@pianpwk
pianpwk merged commit c0428bb into main Jun 6, 2026
24 checks passed
saforem2 added a commit to saforem2/torchtitan that referenced this pull request Jun 7, 2026
…tor still TODO

Documents the 34-commit pull from upstream/main (27aa490..641b5f6,
merge commit fb1c5a3, sitting in worktree ezpz-46th-47th-sync).
Two structural refactors hit ezpz:

  - PR pytorch#3458 (RoPE refactor): REPLAYED in commit 02dd1e7, verified
    by importing + building all agpt + moe flavors under the torch
    2.13 venv. Numerics smoke against baselines still pending.
  - PR pytorch#3269 (mixed-optimizer refactor): NOT YET STARTED. Affects
    OptimizersContainer.Config + 8 custom container subclasses in
    optimizer/containers.py + ~13 callsites in agpt/moe/competition
    config registries.

Also documents that spmd_types==0.2.1 was installed into .venv (new
upstream runtime dep from PR pytorch#3466/pytorch#3467/pytorch#3560) and notes the open
follow-ups (replay PR pytorch#3269, smoke against baselines, audit RL).

Doesn't update upstream-sync.md's "next-sync" reminder banner —
this sync isn't complete yet (ezpz branch is not on the worktree
HEAD).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu 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.

3 participants