transformers
🚨 fix + tests dense & MoE TP all reduce (decoder only)
#43722
Merged
Go
Login via GitHub
Home
FAQ
Install
Login
via GitHub
Overview
Commits
188
Changes
View On
GitHub
🚨 fix + tests dense & MoE TP all reduce (decoder only)
#43722
3outeille
merged 188 commits into
main
from
fix-moe-ep
introducing test tensor parallel mixing to catch TP related error
9152e868
Remove test file for tensor parallel functionality
3234776f
Refactor dense and MoE test scripts for parallel execution and improv…
1c2684c8
Cyrilvallez
commented on 2026-02-04
restore
ec2ed1db
add all reduce for ep
33ca3308
fix init and bias sharding
e545ac1f
fix finalize weight init
fa78068d
add full stacktracing
6e4d2343
fix
05fc1fa2
add report to run tests
ac291e8f
okay big improvement here
819698c6
3outeille
changed the base branch from
main
to
fix-ep
295 days ago
3outeille
changed the title
EP all reduce
tests EP all reduce
295 days ago
the only case shard index should be used is when we are acctually col…
d99f8340
more fixes
f0d0de12
fix EP forward gpt oss
c5cbdc80
add test that trigger the weight converter or only dynamoc loading
381d773b
Merge branch 'fix-ep' into fix-moe-ep
b8901a85
Update test scripts to use new tensor parallel test keyword
73851ae8
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
a2aa66a3
cleaning + find_port + remove comments
1dca5f99
revert some shit
94d676cd
when you are stupid sometimes you really need a brain :) :) :) :)
959b46f7
fix TP
01c5774d
3outeille
changed the title
tests EP all reduce
tests EP all reduce (decoder only)
295 days ago
Ok GPT oss is fixed now
9dbb634c
try to fix perms
83742984
test only causal llm
989bd9a0
attempt to fix
8e46655c
Merge branch 'fix-ep' into fix-moe-ep
ce256ae3
am I a doomer and AI is not that bad?
104f80d3
fix
14dca0c1
it "passes" but the output is shit
3600fbe4
Merge branch 'fix-ep' of github.com:huggingface/transformers into fix-ep
fabde8a2
style my man
20dee9a8
Merge PR #43730 (fix-ep) into fix-moe-ep
73e77fbd
outputs are gonna be giberish but at least the forward pass "works"
0b95c643
Merge branch 'main' of github.com:huggingface/transformers into fix-ep
9137fa25
dtyle
646cbe38
fix mixtral
4b32a6b2
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
7253e802
okay shape fixes
14607626
Merge branch 'pr-43730-latest' into fix-moe-ep
2c4143ab
tensor idx is only for groupped gemm / EP
f7893956
fix gate_up shard
8b4ed7bd
3outeille
marked this pull request as ready for review
294 days ago
Merge branch 'fix-ep' into fix-moe-ep
4d2878ac
fix :)
d8cd5339
Merge branch 'pr-43730' into fix-moe-ep
b5fa9320
ArthurZucker
commented on 2026-02-05
revert some EP changes that are breaking other stuff
76c904cf
style
cfd92d79
fix solar open tp
f6732076
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
61840910
Merge branch 'fix-ep' into fix-moe-ep
cdf2f50d
Base automatically changed from
fix-ep
to
main
294 days ago
trigger test on deepseek v3
a6d4a322
fix glm4_moe tp
46f61ad2
fix glm4 moe lite tensor parallel
2ac7fed2
fix longcat and glm4_moe_lite by all reducing gradients of k_rot
e5fa6fee
3outeille
commented on 2026-02-07
fix ernie4_5_moe
7c9f0d82
fix qwen3 by all reduce grads of q_norm
9975163a
fix deepseek v3 tp (need a constant dropout other different RNG + all…
8ff9475e
Rename ReplicatedInTP to ReplicatedWithGradAllReduce and update refer…
65815b60
fix minimax_m2
fe2aa690
fix deepseek v2 for TP
0b2e0e4b
fix minimax
0be8add8
fix qwen3_next for TP
1d3457b4
fix dots1 tp
70159123
fix flex_olmo TP
a2e2baca
fix qwen3 tp dense
d376210b
fix exaone4 tp
383ce331
fix gemma3 tp
782b3661
fix apterus TP
3ac4b4f5
fix seed_oss tp by setting 0 to dropout
577aa2d0
fix gemma3n for TP
c5cb2692
dropout set to 0 for test + gradient slicing depending on fused weigh…
ba233daa
Merge branch 'main' of https://github.com/huggingface/transformers in…
ec75498d
make fixup + glm4 important fix on tp plan to avoid assigning wrong T…
782274d5
3outeille
changed the title
tests EP all reduce (decoder only)
fix + tests EP all reduce (decoder only)
291 days ago
linting
4940a911
remove shell scripts
2976144c
make test tensor parallel triggering the CI
c1084aea
fix ci
c0bd345b
fix ci
f18c79c2
mark it as ep_plan
fef43aa0
add @require_torch_multi_accelerator
205f43c2
Merge branch 'main' into fix-moe-ep
9b844f95
fix CI
36ffe3f1
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
bf86273a
ArthurZucker
commented on 2026-02-09
Merge branch 'main' into fix-moe-ep
a126ea7b
undo pr merge tensor parallel
cc6f26b8
revert core model loading file
41223d1c
revert modeling_utils file
9210a863
small fix in modeling_utils
bac58b36
Update tensor parallel test configurations to enable tests by default…
362ebe6d
linting
5b43d0d9
Reorganize imports in modeling_utils.py to maintain consistency
f997d96c
fix qwen3_5_moe tp
0c86c2a9
Merge branch 'main' into fix-moe-ep
8f840b47
fix glm moe dsa tp
0b40acb1
Merge branch 'main' into fix-moe-ep
e2b1eeb1
fix qwen3_5 tp
4ba8784f
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
a4b65a0c
Add training_overfit_steps parameter to Gemma3nTextModelTest
4c2dfb0d
3outeille
force pushed
from
3275c31d
to
d2fcc1cb
289 days ago
fix 16 bits alignment
7f7c3cfb
3outeille
force pushed
from
d2fcc1cb
to
7f7c3cfb
289 days ago
Add WeightConverter for gate_up_proj and down_proj with 16 bytes alig…
50c946da
Merge branch 'main' into fix-moe-ep
274f6431
Add solar_open mapping with WeightConverter for gate_up_proj and down…
51c2c833
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
983a3f66
Merge branch 'main' into fix-moe-ep
78dd9e8f
Update hub metadata (#43892)
fb818436
Add MlaKvAProjParallel layer for MLA attention and update TP plans
f5ca7228
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
4f04c56b
Merge branch 'main' into fix-moe-ep
662824bf
Merge branch 'main' into fix-moe-ep
edd81d90
fix doc
9ad50c03
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
899238b1
force 16 Bytes Alignment
14d0ecce
Merge branch 'main' into fix-moe-ep
00ba8e89
fix slice tensor
33a9567d
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
f5136fde
Merge branch 'main' into fix-moe-ep
af49ad0b
more doc
7eb32634
better abstraction for zero experts
6d81f36f
linting
cb9035e0
3outeille
changed the title
fix + tests EP all reduce (decoder only)
fix + tests dense + MoE TP all reduce (decoder only)
288 days ago
3outeille
requested a review
from
Cyrilvallez
288 days ago
3outeille
requested a review
from
ArthurZucker
288 days ago
3outeille
changed the title
fix + tests dense + MoE TP all reduce (decoder only)
fix + tests dense & MoE TP all reduce (decoder only)
288 days ago
refactor
abdc144e
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
afa28124
redudancy in tests
084269a2
simplify
ea0abf80
Merge branch 'main' into fix-moe-ep
d01896e3
Merge branch 'main' into fix-moe-ep
0db56c83
ArthurZucker
commented on 2026-02-12
Merge branch 'main' into fix-moe-ep
1662b5b2
revert
c038773d
Merge branch 'main' into fix-moe-ep
59e98604
Merge branch 'main' into fix-moe-ep
3cde5991
Merge branch 'main' into fix-moe-ep
2b5d9520
fix gemma2
df5f993b
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
db23a994
fix
c97dd509
3outeille
force pushed
from
b4920737
to
c97dd509
287 days ago
make tests work only on CPU
95619cd4
linting
d0d351cb
skip tests for run_slow
550b1428
3outeille
requested a review
from
ArthurZucker
287 days ago
Merge branch 'main' into fix-moe-ep
4d0e21dd
huggingface
deleted a comment from
github-actions
on 2026-02-13
ArthurZucker
commented on 2026-02-17
cleaning
29316807
cleaning
5ce65f0e
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
81530842
enhance doc on dynamic weight loading
679beab5
add config instead of model for tp
ef565c2e
more doc to tensor parallel for MlaKvAProjParallel
98bdba65
Merge branch 'main' into fix-moe-ep
cc6fb293
use -1 instead of self.num_heads, this way when TP is used, it can in…
07ee05b6
Merge branch 'main' into fix-moe-ep
4d831d3f
fix modular glm_moe_dsa
a19c9222
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
4d1f1cda
Merge branch 'main' into fix-moe-ep
467d9788
Merge branch 'main' into fix-moe-ep
6c8be213
Merge branch 'main' into fix-moe-ep
8cb24c18
Merge branch 'main' of https://github.com/huggingface/transformers in…
5f750aab
collect all gradient failure tests before stopping at first one
1963db33
Merge branch 'main' into fix-moe-ep
9330ee83
ArthurZucker
commented on 2026-02-25
Merge branch 'main' into fix-moe-ep
b0eba09a
generate more max new tokens for tensor parallel test as models are s…
adab8093
Merge branch 'main' into fix-moe-ep
f8a23c8c
compare generated tokens for tensor parallel tests
27b16f63
use attr config as much as possible
4b2e7248
ArthurZucker
commented on 2026-03-02
Merge branch 'main' into fix-moe-ep
c0b04fca
add TP + quantized tests
90b70778
raise error if attr does not exist to say add it to the auto mapping
773af8e2
update doc
be0b7322
install torchao for tp + quantization tests
d577c4e7
Merge branch 'main' into fix-moe-ep
c081a8b6
update doc
bd96ba8b
update doc
4bfbd701
update doc
aff64dbb
Merge branch 'main' into fix-moe-ep
4fde282c
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
7825c9f4
update doc
39fbbafb
udapte doc
9215cacb
update doc
6a803906
Merge branch 'main' into fix-moe-ep
3cdbf543
partially fix tp + quantization generation
f7b9aa5f
partially fix tp + quantize
b2fc24f7
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
6863072c
skipping some tp + quantized test for now
2c43f852
guard torchao import for test_training_ci
df40b739
Merge branch 'main' into fix-moe-ep
0bb98fef
ArthurZucker
approved these changes on 2026-03-03
ArthurZucker
changed the title
fix + tests dense & MoE TP all reduce (decoder only)
🚨 fix + tests dense & MoE TP all reduce (decoder only)
268 days ago
Update src/transformers/models/longcat_flash/modular_longcat_flash.py
575fdbd0
Merge branch 'main' into fix-moe-ep
3e8e408b
move file
5f386424
Merge branch 'main' into fix-moe-ep
c3e9f10e
Merge branch 'fix-moe-ep' of https://github.com/huggingface/transform…
41e23738
fix linting
1de9baa4
fix linting
de6d9aae
fix port conflict in test
ebc29a8e
3outeille
enabled auto-merge (squash)
267 days ago
disabled auto-merge
267 days ago
Manually disabled by user
3outeille
merged
f49c720f
into main
267 days ago
3outeille
deleted the fix-moe-ep branch
267 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
ArthurZucker
SunMarc
Cyrilvallez
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Login to write a write a comment.
Login via GitHub