Repository navigation
Conversation
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
kainzhong
force-pushed
the
more_cutedsl_mxfp8_specialized
branch
from
October 12, 2026 18:45
4b9ef6b to
ef9877d
Compare
for more information, see https://pre-commit.ci
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
kainzhong
marked this pull request as ready for review
October 12, 2026 20:24
Contributor
[Medium impact] The PR appears safe to merge; no new blocking issue was found. SummaryAdds BF16 register-based MXFP8 kernels and splits the existing kernels into separate files.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[MXFP8 call] --> B{Eligible specialized kernel?}
B -->|BF16 rowwise| C[Two-lane register kernel]
B -->|BF16 columnwise or both| D[Bidimensional register kernel]
B -->|Other supported plain casts| E[Existing specialized kernels]
B -->|No| F[General shared-memory kernel]
C --> G[FP8 data and block scales]
D --> G
E --> G
F --> G
Reviews (15) · Last reviewed commit: "can always use static tile num" · Reviewed by Greptile |
kainzhong
force-pushed
the
more_cutedsl_mxfp8_specialized
branch
from
October 12, 2026 21:05
113f73a to
cae94f5
Compare
kainzhong
force-pushed
the
more_cutedsl_mxfp8_specialized
branch
from
October 12, 2026 21:11
0a9824e to
f67b1e5
Compare
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
kainzhong
force-pushed
the
more_cutedsl_mxfp8_specialized
branch
from
October 15, 2026 20:29
ba1f62d to
5c3465a
Compare
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
kainzhong
force-pushed
the
more_cutedsl_mxfp8_specialized
branch
from
October 15, 2026 23:58
3a80e08 to
dba8dbf
Compare
kainzhong
force-pushed
the
more_cutedsl_mxfp8_specialized
branch
from
October 17, 2026 02:13
ff45b46 to
287505f
Compare
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Add specialized MXFP8 CuTeDSL quantization kernels ported from #3459
And also some refactoring of the existing kernel -- so
quantize_mxfp8.pybecomesquantize_mxfp8_common.py: kernel config, signature, dispatching and registerationquantize_mxfp8_g2s_general.py: the same general MXFP8 kernel that handles all casesquantize_mxfp8_g2r_rowwise_1lane.py: the same old rowwise specialized kernelquantize_mxfp8_g2s_bidim.py: the same old bidim specialized kernelg2sandg2rmean the kernel uses SMEM / RMEM to quantizeNote: CuTeDSL cannot exactly mirror CUDA's implementation due to a bug in cutlass: NVIDIA/cutlass#3726
Type of change
Changes
Difference with the CUDA path:
Benchmark result (full sweep on the tip of this branch including things that aren't changed by this PR):
https://claude.ai/artifact/GsCNMy9S4YTxHnR7W3b1Vo?sk=DtZFlcQxJpBxCOlmq-W8_A
Or download it as a static HTML:
Quantization Benchmark .html
To examine which kernel is dispatched, expand "Data table" and you can see kernel names
Checklist: