Repository navigation
[Common] Add gated MXFP8 CuTeDSL kernel - #3840
Merged
Merged
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>
for more information, see https://pre-commit.ci
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Conflicts arose because the base branch was squash-merged as NVIDIA#3642. Resolved by 3-way merging against the pre-gated tip (bfdb240) instead of the stale fork point. CuTeDSL/__init__.py: keep the entrypoint loop and register get_mxfp8_requantization_function from NVIDIA#3560 in it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
for more information, see https://pre-commit.ci
Contributor
[Medium impact] The PR appears safe to merge; no actionable issue was established. SummaryAdds CuTeDSL MXFP8 gated activation kernels for forward and backward calls.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Gated MXFP8 call] --> B{CuTeDSL enabled and supported?}
B -->|No| C[CUDA kernel]
B -->|Yes| D[Get or compile CuTeDSL kernel]
D --> E{Kernel available?}
E -->|No| C
E -->|Yes| F[Load activation and gate tiles]
F --> G[Compute gated output or gradients]
G --> H[Quantize and write data and scales]
Reviews (11) · Last reviewed commit: "Merge branch 'main' into gated_mxfp8_cut..." · Reviewed by Greptile |
8 of 13 tasks
maybe_warn_cutedsl_not_chosen was renamed to report_cutedsl_not_chosen in NVIDIA#3746, so this file no longer compiled with NVTE_WITH_CUTEDSL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
ptrendx
previously approved these changes
Nov 11, 2026
Member
|
/te-ci |
8 of 13 tasks
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
kainzhong
force-pushed
the
gated_mxfp8_cutedsl
branch
from
November 13, 2026 22:36
18b020d to
99feed4
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kaining Zhong <kainingz@nvidia.com> # Conflicts: # tests/pytorch/mxfp8/test_mxfp8_cutedsl_backend.py # transformer_engine/common/CuTeDSL/__init__.py
for more information, see https://pre-commit.ci
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
for more information, see https://pre-commit.ci
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
Collaborator
Author
|
/te-ci |
kainzhong
added a commit
to kainzhong/TransformerEngine
that referenced
this pull request
Nov 17, 2026
Main's NVIDIA#3840 drops the SWIZZLE flag from the shared colwise tile functions: the scale view slices as scales[((None, None), tile)], whose nested column mode makes (0, tidx) land on the swizzled slot. Keep ZERO_OOB_SCALES on top of the new (0, tidx) stores, register the grouped entrypoint in main's registration loop, and move the grouped general kernel to the same convention (no SWIZZLE / WITH_GEMM_SWIZZLED_SCALES arguments, unflattened scale slices). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
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 CuTeDSL port of CUDA's MXFP8 gated quantization kernel
Type of change
Changes
Checklist: