Skip to content

[MoE] fix MoE state dict convert fqn names - #3626

Merged
wwwjn merged 1 commit into
mainfrom
fix-state-dict
Jun 10, 2026
Merged

wwwjn merged 1 commit into
mainfrom
fix-state-dict

Conversation

@wwwjn

@wwwjn wwwjn commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

as titled. Previously these mismatched fields are silently dropped

Verified using Qwen3-30B-A3B models

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 10, 2026
@wwwjn
wwwjn merged commit 2816b97 into main Jun 10, 2026
28 of 32 checks passed
saforem2 added a commit to saforem2/torchtitan that referenced this pull request Jun 12, 2026
PR pytorch#3626 ([MoE] fix MoE state dict convert fqn names) updated
deepseek_v3/state_dict_adapter.py's HF→torchtitan mapping for routed
expert weights to use the Shazeer shape-suffix names that the
GroupedExperts params have used since PR pytorch#3425 (41st sync):

  w1 → w1_EFD,  w2 → w2_EDF,  w3 → w3_EFD

ezpz/moe's state_dict_adapter mirrored the old un-suffixed surface;
replay the same 3-key rename here so HF↔torchtitan conversions match
the actual on-disk param names.
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