-
Notifications
You must be signed in to change notification settings - Fork 333
[Enhancement] Add a MXFP4 grouped GEMM example for FusedMoE #811
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
19 commits
Select commit
Hold shift + click to select a range
c7102fb
[Enhancement] Enhance dequantization examples and utilities
Rachmanino a2c294d
fix typos in docstrings
Rachmanino 03a34e9
remove redundant code
Rachmanino c8077d1
[Format] Unreproducible debug with T.print
tzj-fxz 9fb4c3d
[BugFix] Correct dtype in ref dequantize; larger data distribution
tzj-fxz 8a5862e
[Format]
tzj-fxz c610901
[Refactor] Clean up and optimize example_dequant_groupgemm_bf16_mxfp4…
Rachmanino 93a8b60
[Refactor] Update import path in example_dequant_gemm_fine_grained.py
Rachmanino f51f7bf
lint
Rachmanino 6eecc9d
rename and add test
Rachmanino 7717d16
Merge branch 'main' into main
Rachmanino a1ec372
lint
Rachmanino 77f05ee
[Feature] Enhance autotuning and configuration generation in example_…
Rachmanino a3ca871
Merge branch 'main' into main
Rachmanino be2f79a
lint
Rachmanino 53cb9ba
fix typo
Rachmanino eaee83c
fix typo and lint
Rachmanino 1b85cb6
make ci format check happy
Rachmanino 4eeaf53
fix ci
Rachmanino 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
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
511 changes: 511 additions & 0 deletions
511
examples/dequantize_gemm/example_dequant_groupedgemm_bf16_mxfp4_hopper.py
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Return dtype likely float32; violates docstring contract (bf16 expected)
Multiplying a bf16 tensor by a float literal promotes to float32 in PyTorch; the function then returns f32.
Apply:
📝 Committable suggestion
🤖 Prompt for AI Agents