[Common] Let MXFP8 quantization always reduce dbias in colwise - #3439
Open
kainzhong wants to merge 2 commits into
Open
[Common] Let MXFP8 quantization always reduce dbias in colwise#3439kainzhong wants to merge 2 commits into
kainzhong wants to merge 2 commits into
Conversation
Signed-off-by: Kaining Zhong <[email protected]>
Collaborator
Author
|
Contributor
Greptile SummaryThe PR moves most fused MXFP8 dbias reductions to the columnwise traversal while retaining the rowwise path for the FP32 activation case.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[MXFP8 quantization with fused dbias] --> B{Columnwise scaling enabled?}
B -->|Yes| C[Columnwise quantization and dbias reduction]
B -->|No| D{FP32 input with activation?}
D -->|Yes| E[Rowwise quantization and dbias reduction]
D -->|No| F[Columnwise dbias-only pass]
F --> G[Cache fused activation when needed]
G --> H[Rowwise quantization consumes cache]
C --> I[Write partial dbias workspace]
E --> I
F --> I
Reviews (2): Last reviewed commit: "fix" | Re-trigger Greptile |
kainzhong
marked this pull request as draft
August 28, 2026 21:17
Signed-off-by: Kaining Zhong <[email protected]>
kainzhong
force-pushed
the
mxfp8_improve_dbias
branch
from
August 28, 2026 23:48
8fcac77 to
eb3f010
Compare
kainzhong
marked this pull request as ready for review
August 28, 2026 23:51
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
This PR improve MXFP8 kernel's performance for DBIAS reduction by disabling row-wise DBIAS reduction and letting column-wise do it instead. By doing this we can eliminate the row-wise reduction register array and skip the thread data exchange where each thread owns a column instead of the row it had after the row-wise quantization, and reduce this column fragment and write the result in the workspace buffer.
The only exception is when we have FP32+DBIAS+DACT, where registers are no longer bottleneck, so this optimization's cost (extra SMEM traffic when we cache activations in the column-wise reduction only pass) is more than its gain (register save doesn't alleviate the bottleneck) so we disable it for this case only.
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: