transformers
🚨 fix + tests dense & MoE TP all reduce (decoder only)
#43722
Merged

🚨 fix + tests dense & MoE TP all reduce (decoder only) #43722

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

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone