Repository navigation
Fuse gated rmsnorm + group_quant for qwen3next and qwen3.5 - #2499
Merged
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
1 task
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a new fused HIP kernel and JIT binding for “gated RMSNorm + FP8 (per-128) group quantization” intended for Qwen-family model shapes (head_dim=128, group_size=128), along with a new operator test and JIT compile configuration.
Changes:
- Add fused HIP kernel implementation for gated RMSNorm + FP8 group quantization with optional transposed scale storage.
- Add Python JIT stub/binding and corresponding JIT compile module configuration.
- Add a new op test script comparing the fused kernel vs existing per-group quantization.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| op_tests/test_gated_rmsnorm_fp8_group_quant.py | New validation/perf test comparing fused kernel vs reference quant path. |
| csrc/pybind/gated_rmsnorm_quant_pybind.cu | New pybind module entrypoint for the JIT extension. |
| csrc/kernels/gated_rmsnorm_quant_kernels.cu | New fused HIP kernel + C++ launcher + Python-exposed entrypoint. |
| aiter/ops/gated_rmsnorm_fp8_group_quant.py | New compile_ops Python stub for calling the JIT-compiled kernel. |
| aiter/jit/optCompilerConfig.json | Registers the new JIT module sources/includes/flags. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
wuhuikx
previously approved these changes
Apr 3, 2026
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
remove large case Co-authored-by: Copilot <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
Signed-off-by: ganyi <[email protected]>
ganyi1996ppo
force-pushed
the
ganyi/gated_rmsnorm_quant
branch
from
April 9, 2026 03:18
f3388ff to
50e5faa
Compare
valarLip
approved these changes
Apr 9, 2026
Closed
3 tasks
sunway513
pushed a commit
that referenced
this pull request
Apr 21, 2026
* fuse gated_rmsnorm_quant Signed-off-by: ganyi <[email protected]> * format Signed-off-by: ganyi <[email protected]> * add header file Signed-off-by: ganyi <[email protected]> * transpose scale as template param Signed-off-by: ganyi <[email protected]> * use opus for dtype max Signed-off-by: ganyi <[email protected]> * Apply suggestion from @Copilot remove large case Co-authored-by: Copilot <[email protected]> * fix test Signed-off-by: ganyi <[email protected]> * add md summary Signed-off-by: ganyi <[email protected]> * fix ruff Signed-off-by: ganyi <[email protected]> * fix ut Signed-off-by: ganyi <[email protected]> * replace ck to opus Signed-off-by: ganyi <[email protected]> * remove all ck related code Signed-off-by: ganyi <[email protected]> --------- Signed-off-by: ganyi <[email protected]> Co-authored-by: Copilot <[email protected]>
Liang-jianhao97
pushed a commit
that referenced
this pull request
Apr 30, 2026
* fuse gated_rmsnorm_quant Signed-off-by: ganyi <[email protected]> * format Signed-off-by: ganyi <[email protected]> * add header file Signed-off-by: ganyi <[email protected]> * transpose scale as template param Signed-off-by: ganyi <[email protected]> * use opus for dtype max Signed-off-by: ganyi <[email protected]> * Apply suggestion from @Copilot remove large case Co-authored-by: Copilot <[email protected]> * fix test Signed-off-by: ganyi <[email protected]> * add md summary Signed-off-by: ganyi <[email protected]> * fix ruff Signed-off-by: ganyi <[email protected]> * fix ut Signed-off-by: ganyi <[email protected]> * replace ck to opus Signed-off-by: ganyi <[email protected]> * remove all ck related code Signed-off-by: ganyi <[email protected]> --------- Signed-off-by: ganyi <[email protected]> Co-authored-by: Copilot <[email protected]>
1 task
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.
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist