[Quant] Fuse all-reduce RMSNorm with packed FP8 - #51942
Draft
WoosukKwon wants to merge 1 commit into
Draft
WoosukKwon wants to merge 1 commit into
WoosukKwon wants to merge 1 commit into
Conversation
Add the FlashInfer packed group-FP8 collective epilogue and return a reusable quantized activation to eager model paths. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
This was referenced Aug 12, 2026
Contributor
|
This pull request has merge conflicts that must be resolved before it can be |
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
Expose FlashInfer's all-reduce + residual + RMSNorm + packed per-group FP8
epilogue to eager model paths.
The helper returns both the normalized BF16 tensor and a compatible
QuantizedActivation, allowing an upstream model integration to skip aseparate DeepGEMM quantization kernel. It falls back to the existing
all-reduce/RMSNorm path when the pattern, topology, scale format, or consumer
contract is unsupported.
This is an independent primitive extracted from #51936. It does not change a
specific model and does not depend on #51939 or #51941; the test uses the public
consumer contract directly.
Duplicate-work check
No issue number was provided. I searched open PRs for
FlashInfer allreduce RMSNorm packed FP8andallreduce RMSNorm FP8 quant. #42230 implements aseparate SymmetricMemory Triton collective, #45364 covers Llama RMSNorm-to-quant
without all-reduce, and #45770 fixes mixed norm-weight dtypes. None expose this
FlashInfer packed UE8M0 epilogue.
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.