[Quant] Let DeepGEMM consume prequantized activations - #51939
Draft
WoosukKwon wants to merge 1 commit into
Draft
WoosukKwon wants to merge 1 commit into
WoosukKwon wants to merge 1 commit into
Conversation
Advertise the dynamic block-FP8 input contract and bypass duplicate activation quantization in block-scaled DeepGEMM linear kernels. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
This was referenced Aug 12, 2026
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.
Purpose
Let block-scaled DeepGEMM linear kernels consume a compatible
QuantizedActivationproduced upstream instead of quantizing the same BF16activation again.
The kernel now advertises its dynamic 1x128 FP8 input contract, preserves the
original output shape, and trims only the logical rows from compiler-padded
packed UE8M0 scale storage at the custom-op boundary.
This is an independent reusable prerequisite extracted from #51936; it does not
include MoE, all-reduce, model, or MTP changes.
Duplicate-work check
No issue number was provided. I searched open PRs for
DeepGEMM prequantized activation. The only exact match was the superseded draft #51936. #49828 addsa standalone SiLU/multiply dynamic per-token CUDA kernel and does not add this
block-scaled linear input contract.
Tests
AI assistance disclosure
This change was developed with OpenAI Codex assistance. This is a draft PR;
the human submitter must review every changed line and confirm they understand
and can defend the change before marking it ready.