Repository navigation
DeepGEMM BF16 + mixed FP8/FP4 + MegaMoE + refactor #45634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
164 commits
Select commit
Hold shift + click to select a range
94a2786
init
IlyasMoutawwakil 8fc43d7
Merge branch 'main' into deepgemm
IlyasMoutawwakil 357a035
style
IlyasMoutawwakil 741b5eb
full support
IlyasMoutawwakil 9fc3662
support EP better using offsets !
IlyasMoutawwakil 84552ae
comments
IlyasMoutawwakil 1d9f319
get rid of neutralize_ep_sentinels
IlyasMoutawwakil 9b86043
remove deepgemm stuff
IlyasMoutawwakil 8a3f88b
Merge branch 'main' into deepgemm
IlyasMoutawwakil 996d67d
fix
IlyasMoutawwakil d033a83
prefix
IlyasMoutawwakil e15cfe6
move
IlyasMoutawwakil 10b6d90
fix
IlyasMoutawwakil d4a6b30
remove comment
IlyasMoutawwakil 1d6054f
fix unintilized outputs leaking
IlyasMoutawwakil 137393c
revert unnecessary changes
IlyasMoutawwakil 774f901
more unnecessary changes
IlyasMoutawwakil 81230fe
revert downcast
IlyasMoutawwakil 9f2ff08
keep it simple
IlyasMoutawwakil c55b7b7
guard deepgemm cuda version
IlyasMoutawwakil 20858db
fix style
IlyasMoutawwakil bfea94f
update
IlyasMoutawwakil eada47e
add deepgemm testing
IlyasMoutawwakil 89d2f0b
moe sentinel support
IlyasMoutawwakil ef72b0e
Merge branch 'main' into deepgemm
IlyasMoutawwakil 60db1ca
fix
IlyasMoutawwakil e732af1
Merge branch 'main' into deepgemm
IlyasMoutawwakil 68b7b0f
compilable sonicmoe
IlyasMoutawwakil faaa7aa
mega moe kernel support attempt
IlyasMoutawwakil b502cd6
use package for now
IlyasMoutawwakil cc753ca
Merge branch 'deepgemm' into deepgemm-isolation
IlyasMoutawwakil 1c17452
skip ep router and experts pre/post processing
IlyasMoutawwakil 5a8ceae
simpler
IlyasMoutawwakil a05aa39
fix
IlyasMoutawwakil 854f4fb
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil 053c9df
fix
IlyasMoutawwakil 80a6fe5
fix
IlyasMoutawwakil ad8226c
dtensor support
IlyasMoutawwakil a663f4d
more dtensor
IlyasMoutawwakil 74c3f2e
simpler
IlyasMoutawwakil d3cae33
remove comment
IlyasMoutawwakil c1bfa0f
Merge branch 'deepgemm' into deepgemm-isolation
IlyasMoutawwakil 6c43611
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil 0528e0e
revert
IlyasMoutawwakil 2bfd029
bc order
IlyasMoutawwakil 368db00
revert extra indent
IlyasMoutawwakil 28fbb84
revert unnecessary change
IlyasMoutawwakil 6ef27ab
update
IlyasMoutawwakil e436b77
less defensive
IlyasMoutawwakil 8e8f0ee
allow all kernels
IlyasMoutawwakil c494e35
alow all kernels
IlyasMoutawwakil 03b0442
hub only
IlyasMoutawwakil 527d8b4
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil 2e51b3c
fix
IlyasMoutawwakil 82c5fb5
fix
IlyasMoutawwakil 99fdf71
test
IlyasMoutawwakil 21398a8
test
IlyasMoutawwakil f21db7c
sync
IlyasMoutawwakil 1fe3768
check nvcc
IlyasMoutawwakil bbfda35
probe
IlyasMoutawwakil 68a373c
fix
IlyasMoutawwakil 825f6d4
test psum
IlyasMoutawwakil 028a39f
test
IlyasMoutawwakil ee173a5
test
IlyasMoutawwakil 900e984
probe
IlyasMoutawwakil 09a711f
fix
IlyasMoutawwakil a0d4940
test
IlyasMoutawwakil 653b7b3
nan issue
IlyasMoutawwakil ed8af6b
repro
IlyasMoutawwakil fb8d338
repro
IlyasMoutawwakil 562eb51
fix
IlyasMoutawwakil 481e5e6
simplifications
IlyasMoutawwakil d3dbd32
fix
IlyasMoutawwakil 9f168ff
fix
IlyasMoutawwakil 7274c22
fix
IlyasMoutawwakil a800b8c
fix
IlyasMoutawwakil 804c988
fix
IlyasMoutawwakil 7f36562
fix
IlyasMoutawwakil 6df9f47
fix
IlyasMoutawwakil c3432c9
empty
IlyasMoutawwakil 77f09fe
simplify
IlyasMoutawwakil 7dfbedd
test deepseek
IlyasMoutawwakil 689cc29
dsv4 only
IlyasMoutawwakil 8de089c
download dsv4
IlyasMoutawwakil cb4d6f9
fix test
IlyasMoutawwakil 389eee8
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil 8f29ed6
push
IlyasMoutawwakil 946e200
test
IlyasMoutawwakil 6619647
fix
IlyasMoutawwakil 913339a
fix ep plan
IlyasMoutawwakil 7cfc2b2
fix attempt
IlyasMoutawwakil 4c12f6e
debug
IlyasMoutawwakil 92e6337
attempt
IlyasMoutawwakil a9997f5
debug
IlyasMoutawwakil 197a8f6
fixes in modeling
IlyasMoutawwakil 30d0780
more modeling changes
IlyasMoutawwakil 3b1c470
more modeling changes
IlyasMoutawwakil 51a9425
initial megamoe works but wrong output, deepgemm fully functional
IlyasMoutawwakil a4130db
mega moe works !
IlyasMoutawwakil b140f7c
simplification
IlyasMoutawwakil 9ff656b
comments
IlyasMoutawwakil b5b741e
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil 1231258
fix merge
IlyasMoutawwakil a8cc32a
fix rank divergence
IlyasMoutawwakil c6486cb
use _keep_in_fp32_modules
IlyasMoutawwakil bd68b6f
simplify quantizer
IlyasMoutawwakil 8630f9d
introduce indexerscorer
IlyasMoutawwakil f3b933f
remove testing file
IlyasMoutawwakil 029a4c9
style
IlyasMoutawwakil 85b5768
weight rename for scorer
IlyasMoutawwakil 7f19516
style
IlyasMoutawwakil e395e4c
address review comments
IlyasMoutawwakil 1b94261
style
IlyasMoutawwakil af51a6e
align with laguna
IlyasMoutawwakil ca934bf
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil f18ab28
stale comments and styling
IlyasMoutawwakil 26f3ba7
use grouped finegrained fp8 for grouped linear
IlyasMoutawwakil 4039ed6
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil 9f2c97b
comments and docs
IlyasMoutawwakil 8dc75bd
Revert "[DeepSeek V4] Fix MoE converter substring-matching FP8 scale …
ArthurZucker 57081cc
Merge remote-tracking branch 'origin/main' into deepgemm-isolation
IlyasMoutawwakil 78fcee6
fix quantizer and use upstream deepgemm
IlyasMoutawwakil 2e4203f
remove force al kernels
IlyasMoutawwakil 5f9e5cd
[deepseek_v4] fix FP8 save-side substring match + fp32 gate through s…
ArthurZucker afd1b70
always floats scal inv with triton
IlyasMoutawwakil 619b5e9
minimal changes i quantizer
IlyasMoutawwakil 3e76df5
force stable abi build for now
IlyasMoutawwakil f0e2859
support transposed
IlyasMoutawwakil d0c4a6d
fix yarn
IlyasMoutawwakil c1adcd7
unnecessary change
IlyasMoutawwakil 143835f
add flash base test and fix the incorrect and crash issue during enab…
sywangyi b47b30f
merge
IlyasMoutawwakil 8bd9619
better errors across deepgemm
IlyasMoutawwakil 751c8b5
more better errors for deepgemm
IlyasMoutawwakil 70c7c3b
ep tests
IlyasMoutawwakil 464512e
Apply suggestions from code review
ArthurZucker d6fd64d
scope supports_round_trip to quantization ops only
ArthurZucker 6e17509
Apply suggestions from code review
ArthurZucker 3259618
Update src/transformers/core_model_loading.py
ArthurZucker 2c06aef
style: ruff format
ArthurZucker 7dfe6bd
custom ep/tp plan for megamoe
IlyasMoutawwakil 1889163
process megamoe after weight loading
IlyasMoutawwakil 46dc289
fix megamoe process
IlyasMoutawwakil e9ccaa0
up
ArthurZucker 7d74684
the actual fix???
ArthurZucker 87d2ee9
up
ArthurZucker 7be266b
nit comment for futur
ArthurZucker 5e102f1
style: drop unused exception variable in Fp8Dequantize._dequantize_one
ArthurZucker 8631e6f
up
ArthurZucker b05bda4
style: apply make fix-repo docstring formatting
ArthurZucker 7481aa6
Merge pr-46265 into deepgemm-isolation, drop redundant scale-merge wo…
IlyasMoutawwakil f769847
simplify after merge
IlyasMoutawwakil 2b8bba0
review comments
IlyasMoutawwakil beac5f2
Merge branch 'main' into deepgemm-isolation
IlyasMoutawwakil f72bc20
revert unncessary
IlyasMoutawwakil b5f2d45
avoid name contraction
IlyasMoutawwakil 014707d
fixes
IlyasMoutawwakil 2a77aa7
dynamic tp/ep plan swap
IlyasMoutawwakil 6922e3a
fix deepgemm single error and device assertion docs
IlyasMoutawwakil 7471109
properly support bias in grouped linear
IlyasMoutawwakil b63ce4f
simplify
IlyasMoutawwakil c12e892
fix dist error handling and min cuda compatbility
IlyasMoutawwakil 1ec0147
fix least cuda compat
IlyasMoutawwakil 4fd793d
get alignment from deepgemm and cache it
IlyasMoutawwakil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.