Single group mxfp8 grouped mlp - #3267
Open
sraman-rgb wants to merge 12 commits into
Open
Conversation
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
for more information, see https://pre-commit.ci
Contributor
Greptile SummaryThe PR adds optimized single-group MXFP8 grouped-MLP execution.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Sequence DiagramsequenceDiagram
participant Caller
participant GroupedMLP
participant Quantizer
participant Kernel
Caller->>GroupedMLP: forward(input, one split)
GroupedMLP->>GroupedMLP: prepare single-group metadata
GroupedMLP->>Quantizer: quantize MXFP8 activations
Quantizer-->>GroupedMLP: grouped quantized storage
GroupedMLP->>Kernel: fused FC1 and activation
Kernel-->>GroupedMLP: quantized activation
GroupedMLP->>Kernel: dense single-group FC2 GEMM
Kernel-->>Caller: output
Caller->>GroupedMLP: backward(grad_output)
GroupedMLP->>Kernel: dactivation, dgrad, and wgrad
Kernel-->>Caller: input and parameter gradients
Reviews (5): Last reviewed commit: "Support older cuDNN grouped MLP APIs" | Re-trigger Greptile |
timmoon10
reviewed
Jul 27, 2026
timmoon10
left a comment
Member
There was a problem hiding this comment.
Mostly fine as a hacky expedient. Remember that the single-group approach is a dead end and we should not put much more effort into it. The right approach is to implement a dense MLP fused op.
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
Co-authored-by: Tim Moon <4406448+timmoon10@users.noreply.github.com> Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@nvidia.com>
for more information, see https://pre-commit.ci
Signed-off-by: Siddhartha Raman Sundara Raman <sraman@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
Please include a brief summary of the changes, relevant motivation and context.
Fixes # (issue)
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: