transformers
Enable FSDP2 + expert parallelism via a 2-D (fsdp, tp) device mesh
#48516
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
26
Changes
View On
GitHub
Enable FSDP2 + expert parallelism via a 2-D (fsdp, tp) device mesh
#48516
qgallouedec
merged 26 commits into
main
from
fsdp2-ep-2d-mesh
qgallouedec
force pushed
from
393af534
to
d226b020
14 days ago
qgallouedec
force pushed
from
d226b020
to
680e1ff1
11 days ago
qgallouedec
force pushed
from
680e1ff1
to
d9394c9e
11 days ago
Fix NaN gradients in expert-parallel training: mask uninitialized gro…
8af1a002
Fix wrong gradients for all non-expert parameters in expert-parallel …
1f0b7bf6
Trim comments
4636d425
Gate the router-score backward all-reduce on grad mode; drop the post…
89fa55ca
Fix expert parallelism through Trainer (#48208)
96769d99
Enable FSDP2 + expert parallelism via a 2-D (fsdp, tp) device mesh
c74c1228
Gather the sharded state dict through the model's own save helpers
1c66acbc
Document combining expert parallelism with FSDP2
38aefbf2
Address review: drop the dead expert-gradient sync, torch-native mixe…
e72b117d
Give each device mesh its own optimizer param group instead of steppi…
449acd21
Test the 2-D mesh with a batch split across the fsdp ranks and compar…
9d17bd7a
Refresh the throughput table
6f2d9c4b
Cosmetic: docstring layout, comment placement, doc link
3a8da119
qgallouedec
force pushed
from
d9394c9e
to
3a8da119
10 days ago
Base automatically changed from
fix-ep-training-gradients
to
main
10 days ago
Merge remote-tracking branch 'upstream/main' into fsdp2-ep-2d-mesh
0e21b598
stevhliu
approved these changes on 2026-09-08
Merge branch 'main' into fsdp2-ep-2d-mesh
35ed430b
Update docs/source/en/expert_parallelism.md
75fff716
Update docs/source/en/expert_parallelism.md
acba6bc9
Update docs/source/en/expert_parallelism.md
69668c3c
Update docs/source/en/expert_parallelism.md
9cfb2d3b
Merge branch 'main' into fsdp2-ep-2d-mesh
2884e2f1
Merge branch 'main' into fsdp2-ep-2d-mesh
1be3a7f5
Merge branch 'main' into fsdp2-ep-2d-mesh
a6f5824a
3outeille
commented on 2026-09-11
3outeille
commented on 2026-09-11
Merge branch 'main' into fsdp2-ep-2d-mesh
cb02b27f
Merge remote-tracking branch 'upstream/main' into fsdp2-ep-2d-mesh
79988c35
Drop the comment on the parallel sizes
51207488
Trim the parallelism config comment
0147840f
3outeille
approved these changes on 2026-09-12
qgallouedec
enabled auto-merge
6 days ago
qgallouedec
merged
415e6d2f
into main
6 days ago
qgallouedec
deleted the fsdp2-ep-2d-mesh branch
6 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
3outeille
stevhliu
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Login to write a write a comment.
Login via GitHub