use cute-dsl to speedup mxfp QDQ - #2548
Open
xin3he wants to merge 2 commits into
Open
Conversation
Qwen3.6-35B-A3B MXFP4-mixed Avg generation throughput: 2672.3 tokens/s -> 4137.6 tokens/s Signed-off-by: Xin He <xin3.he@intel.com>
for more information, see https://pre-commit.ci
yiliu30
approved these changes
Aug 10, 2026
yiliu30
left a comment
Contributor
There was a problem hiding this comment.
Overall, LGTM! Could you also attach the GSM8K accuracy comparison between the CuTe and reference kernels for completeness? Thanks!
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.
VLLM_QDQ_CUTE=1 Qwen3.6-35B-A3B MXFP4-mixed
Avg generation throughput: 2672.3 tokens/s -> 4137.6 tokens/s
Type of Change
feature
Description
This pull request adds a high-performance fused CuTe backend for MXFP4 and MXFP8 QDQ in the
vllm-qdq-plugin, with full runtime selection, validation, and CUDA Graph support. The implementation includes new CuTe DSL kernels, integration into the QDQ API, and extensive documentation and benchmarking tools for users and developers.CuTe QDQ Backend Integration:
src/vllm_qdq_plugin/qdq/cute_kernels.py[1]src/vllm_qdq_plugin/qdq/cute.py[2]mxfp4_qdqandmxfp8_qdqtransparently use the CuTe backend if enabled via theVLLM_QDQ_CUTEenvironment variable. (src/vllm_qdq_plugin/qdq/mxfp4.py[1] [2]src/vllm_qdq_plugin/qdq/mxfp8.py[3] [4]VLLM_QDQ_CUTEenvironment variable for configuration and validation. (src/vllm_qdq_plugin/envs.pybenchmark/vllm-qdq-plugin/src/vllm_qdq_plugin/envs.pyR75)Developer and User Tooling:
scripts/verify_cute_dsl.py) and to benchmark/validate the CuTe QDQ kernels against the reference implementation, reporting accuracy and speedup (scripts/bench_qdq_cute.py). [1] [2]Documentation Updates:
README.md[1] [2] [3] [4]Internal Refactoring:
src/vllm_qdq_plugin/qdq/mxfp4.py[1] [2]src/vllm_qdq_plugin/qdq/mxfp8.py[3] [4] [5] [6]This update provides a significant speedup for QDQ on supported GPUs and enables advanced CUDA features, while maintaining correctness and fallback safety.
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed