transformers
[`distributed`] Add expert-parallel token dispatch, default for Qwen3 MoE
#48865
Merged

[`distributed`] Add expert-parallel token dispatch, default for Qwen3 MoE #48865

3outeille merged 103 commits into main from ep-dispatch
3outeille
3outeille 3outeille changed the title Add expert-parallel token dispatch, default for Qwen3 MoE (EP part 3) [`distributed`] Add expert-parallel token dispatch, default for Qwen3 MoE 67 days ago
3outeille 3outeille changed the base branch from ep-plans to fix-48792-tied-embeddings 67 days ago
HuggingFaceDocBuilderDev
3outeille 3outeille marked this pull request as ready for review 65 days ago
github-actions github-actions requested a review from ArthurZucker ArthurZucker 65 days ago
github-actions github-actions requested a review from Rocketknight1 Rocketknight1 65 days ago
3outeille 3outeille force pushed from 50ea6839 to 0396e7f6 65 days ago
3outeille 3outeille removed review request from Rocketknight1 Rocketknight1 65 days ago
3outeille 3outeille force pushed from 0396e7f6 to 5059e3eb 65 days ago
3outeille 3outeille force pushed from 4685bfe2 to c3812169 64 days ago
3outeille 3outeille force pushed from 15c3d8ef to f9cb9df1 64 days ago
3outeille 3outeille force pushed from 1ff56da9 to aa9bd08d 61 days ago
3outeille 3outeille force pushed from 0bdc35f5 to 9639f252 55 days ago
3outeille 3outeille force pushed from 9639f252 to 87c3cb34 55 days ago
3outeille 3outeille force pushed from 87c3cb34 to 35d66ce2 55 days ago
3outeille 3outeille force pushed from 8a2409de to 6fe7b786 55 days ago
3outeille 3outeille force pushed from 1565cbff to 15e2be1a 54 days ago
ArthurZucker
ArthurZucker commented on 2026-09-30
3outeille 3outeille force pushed from 15e2be1a to e3c8fbb8 53 days ago
3outeille 3outeille force pushed from e3c8fbb8 to e3b504d6 53 days ago
3outeille 3outeille force pushed from e3b504d6 to 7b2745f8 53 days ago
3outeille
Base automatically changed from fix-48792-tied-embeddings to ep-plans 53 days ago
3outeille 3outeille force pushed from 2ead7686 to 7cada848 53 days ago
3outeille Add dense and expert device mesh views with a MeshManager
eecb6a8a
3outeille cleaning
29f51267
3outeille clean
40745266
3outeille update
578af0e7
3outeille clean doc
083e2532
3outeille Use ep_size in the Kimi K2.5 expert parallel example
2e682969
3outeille Enable expert parallelism in the Mega MoE example
29eb5a36
3outeille warn once
d6090dfd
3outeille Add dense and expert device mesh views with a MeshManager
76ff6f0e
3outeille cleaning
9a1b525f
3outeille update
ce8657f9
3outeille clean doc
ea3aacba
3outeille Update src/transformers/distributed/mixin.py
d498e802
3outeille style: ruff import block formatting in distributed config
ce3f5760
3outeille add more comments
f8415e73
3outeille Decouple tp_plan and ep_plan for expert parallelism.
a115da8e
3outeille Match expert paths with a regex and keep only expert rules under toke…
271de167
3outeille revert change on warning
cc5200f9
3outeille Apply suggestion from @ArthurZucker
17f7b659
3outeille cleaning
ef837266
3outeille Fix tied embeddings for models with an EP-only base plan
e7bfac9b
3outeille [distributed] Add expert-parallel token dispatch, default for Qwen3 MoE
4cc84e42
3outeille clean
b756980d
3outeille fix
4d5ef4cf
3outeille make check repo
556f4b9e
3outeille Drop the load-time ep_size == tp_size guard that rejects token dispatch
59578e01
3outeille remove all to all warning by using functional version
16fbcca9
3outeille use ep plan instead of group_gemm is_expert
60fd0822
3outeille use dtensor instead of manuall all_reduce
fc42fb9c
3outeille better comment
1478d288
3outeille [`distributed`]: Fix DeepSeek-V4 tied embeddings with combined TP and…
51472f93
3outeille 3outeille force pushed from cca2d14a to 51472f93 52 days ago
3outeille linting
ea814ebb
3outeille Add dense and expert device mesh views with a MeshManager
925415d4
3outeille cleaning
0c227f1d
3outeille clean
a5958d4e
3outeille update
65719164
3outeille clean doc
90fbd095
3outeille Use ep_size in the Kimi K2.5 expert parallel example
e4561f09
3outeille Enable expert parallelism in the Mega MoE example
7f4951f9
3outeille warn once
e65e3eaf
3outeille Add dense and expert device mesh views with a MeshManager
03af9e8b
3outeille cleaning
69a145b2
3outeille update
caa76409
3outeille clean doc
a3de4dc2
3outeille Update src/transformers/distributed/mixin.py
84cb4bee
3outeille style: ruff import block formatting in distributed config
b5521952
3outeille add more comments
d1cf2079
3outeille Decouple tp_plan and ep_plan for expert parallelism.
4b655fbf
3outeille Match expert paths with a regex and keep only expert rules under toke…
a4f11e3a
3outeille revert change on warning
a5cd182b
3outeille Apply suggestion from @ArthurZucker
3d45692b
3outeille cleaning
04752eb4
3outeille Fix tied embeddings for models with an EP-only base plan
c41435b0
3outeille [distributed] Add expert-parallel token dispatch, default for Qwen3 MoE
8dc8333b
3outeille clean
865d5d96
3outeille fix
cac1b2b0
3outeille make check repo
c59446d9
3outeille Drop the load-time ep_size == tp_size guard that rejects token dispatch
abf336cc
3outeille remove all to all warning by using functional version
6244a1c3
3outeille use ep plan instead of group_gemm is_expert
c72bbf72
3outeille use dtensor instead of manuall all_reduce
c31a1b7a
3outeille better comment
00ee316a
3outeille linting
ec8278e1
3outeille 3outeille force pushed from ea814ebb to ec8278e1 48 days ago
3outeille fix
bcbb851d
3outeille Merge branch 'ep-mesh-infrastructure' of github.com:huggingface/trans…
d51aca88
3outeille Merge branch 'ep-plans' of github.com:huggingface/transformers into e…
448315ed
3outeille revert
877afeea
3outeille Merge branch 'ep-dispatch' of github.com:huggingface/transformers int…
bec5a12b
3outeille Merge branch 'main' into ep-mesh-infrastructure
0ec824f1
3outeille Merge branch 'ep-plans' into ep-dispatch
b20486ce
3outeille Merge branch 'ep-mesh-infrastructure' into ep-plans
c85c8bca
3outeille revert
0d8d4f55
3outeille Merge branch 'ep-plans' into ep-dispatch
c9d64290
3outeille typo
cedde47c
3outeille Merge branch 'main' into ep-mesh-infrastructure
b62bbbcd
3outeille clearer
6a23a306
3outeille Merge branch 'ep-mesh-infrastructure' of github.com:huggingface/trans…
daac87a5
3outeille Merge branch 'main' into ep-mesh-infrastructure
6c73628e
3outeille clean
b4d81b5b
3outeille Merge branch 'ep-mesh-infrastructure' of github.com:huggingface/trans…
e3cc578e
3outeille Merge branch 'ep-mesh-infrastructure' into ep-plans
9bb2518a
3outeille Merge branch 'ep-plans' into ep-dispatch
38704ae8
3outeille cleaning
7b43249c
3outeille cleaning
e0f70125
3outeille Merge branch 'ep-plans' of github.com:huggingface/transformers into e…
926ee709
3outeille Merge branch 'main' into ep-mesh-infrastructure
746b2c53
3outeille Merge branch 'ep-mesh-infrastructure' into ep-plans
0eac0f5c
3outeille Merge branch 'ep-plans' into ep-dispatch
030900b0
3outeille dont torch cat for empty tokens
af793976
3outeille Merge branch 'ep-dispatch' of github.com:huggingface/transformers int…
43a8c2d6
3outeille check code quality
865aa963
ArthurZucker
ArthurZucker approved these changes on 2026-10-06
3outeille Update src/transformers/distributed/utils.py
7b57dd23
3outeille Merge branch 'main' into ep-mesh-infrastructure
ec77a598
3outeille Update src/transformers/distributed/configuration_utils.py
7af3cbc9
3outeille linting
f37bc0f4
3outeille Merge branch 'ep-mesh-infrastructure' of github.com:huggingface/trans…
11f0a3d5
3outeille fix comment
a4d06939
3outeille Merge branch 'ep-mesh-infrastructure' into ep-plans
6a504c18
3outeille Merge branch 'main' into ep-mesh-infrastructure
812c060c
3outeille Merge branch 'ep-plans' into ep-dispatch
13d2fc74
3outeille Merge branch 'ep-mesh-infrastructure' into ep-plans
430bb2e6
3outeille Merge branch 'ep-plans' into ep-dispatch
42d06077
Base automatically changed from ep-plans to main 47 days ago
3outeille Merge branch 'main' into ep-dispatch
ea3a7d55
3outeille 3outeille enabled auto-merge 47 days ago
github-actions
github-actions
3outeille 3outeille merged d28b7937 into main 47 days ago
3outeille 3outeille deleted the ep-dispatch branch 47 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone