Repository navigation
add rope/rotate_activation/fp4_quant_inplace fused kernel for dsv4 - #3035
Merged
Merged
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new DSV4 HIP/JIT module that fuses Hadamard rotation, optional RoPE, and FP4 quantize/dequantize paths into new aiter.ops.quant entry points.
Changes:
- Adds new C++/HIP kernels and pybind bindings for rotate-only, rotate+FP4, RoPE+rotate, and RoPE+rotate+FP4 paths.
- Extends OPUS helper utilities and JIT config so the new module can quantize/dequantize FP4 data and be built on demand.
- Adds a new
op_testsscript with torch reference implementations and benchmark coverage for the quantized paths.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
op_tests/test_rotate_fp4quant.py |
Adds a benchmark/reference script for the new fused rotate+FP4 kernels. |
csrc/pybind/dsv4_rotate_quant_pybind.cu |
Registers the new DSV4 rotate/quant APIs with pybind. |
csrc/kernels/dsv4_rotate_quant.cu |
Implements the new HIP kernels for rotate, RoPE+rotate, and FP4 quantized variants. |
csrc/include/rocm_ops.hpp |
Adds the pybind macro exposing the new module functions. |
csrc/include/dsv4_rotate_quant.h |
Declares the new kernel entry points. |
csrc/include/aiter_opus_plus.h |
Adds FP4 dequant/scaled-cast helper overloads used by the new kernels. |
aiter/ops/quant.py |
Exposes Python compile_ops wrappers and docstrings for the new APIs. |
aiter/jit/optCompilerConfig.json |
Registers module_dsv4_rotate_quant for JIT compilation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
valarLip
approved these changes
May 6, 2026
Liang-jianhao97
pushed a commit
that referenced
this pull request
May 7, 2026
…3035) * add rotate_fp4quant_inplace * add rope_rotate_activation_fp4quant_inplace * optimize performance
5 of 10 tasks
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