Skip to content

[spmd_types] decoder sharding in spmd.* - #3643

Merged
pianpwk merged 2 commits into
mainfrom
gh/pianpwk/34/head
Jun 12, 2026
Merged

pianpwk merged 2 commits into
mainfrom
gh/pianpwk/34/head

Conversation

@pianpwk

@pianpwk pianpwk commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

pianpwk added 2 commits June 11, 2026 19:00
[ghstack-poisoned]
[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 12, 2026
@pianpwk
pianpwk changed the base branch from gh/pianpwk/34/base to main June 12, 2026 02:01
@pianpwk pianpwk changed the title Add SPMD decoder sharding config [spmd_types] decoder sharding in spmd.* Jun 12, 2026
@pianpwk
pianpwk merged commit eecdf50 into main Jun 12, 2026
10 of 11 checks passed
saforem2 added a commit to saforem2/torchtitan that referenced this pull request Jun 12, 2026
PR pytorch#3643 ([spmd_types] decoder sharding in spmd.*) changed
llama3/sharding.py's non-SP attn_x_layout from
dense_activation_placement(tp=spmd.R) to (tp=spmd.I). The Replicate
variant forced a redundant all-reduce that's a no-op in eager but
trips up the new spmd type-checking; Identity correctly says
"already in the right shape, no reshard needed".

ezpz/agpt mirrors the same attn_x_layout construction, so replay the
same one-line change here.
saforem2 added a commit to saforem2/torchtitan that referenced this pull request Jun 12, 2026
…ited

Documents the 52nd sync (a977676..1cc10d1). Per-commit impact
table, replay writeups for the two MoE/sharding changes (PR pytorch#3626
expert FQN rename; PR pytorch#3643 spmd.R→I), and an "Inherited" note for
PR pytorch#3619 (virtual padding for SP token dispatcher) — it lives in
common/token_dispatcher.py which ezpz/moe re-imports, but our PR-14
fork redefines dispatch/combine so the fix doesn't auto-propagate.
Filed as future work for when we enable SP on ezpz/moe.

Smoke verification deferred until merge candidate is ready.
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.

2 participants