Skip to content

[Perf] flashinfer gdn decode kernel intergration#35292

Draft
ZJY0516 wants to merge 5 commits intovllm-project:mainfrom
ZJY0516:gdn_decode
Draft

[Perf] flashinfer gdn decode kernel intergration#35292
ZJY0516 wants to merge 5 commits intovllm-project:mainfrom
ZJY0516:gdn_decode

Conversation

@ZJY0516
Copy link
Member

@ZJY0516 ZJY0516 commented Feb 25, 2026

Purpose

Do not review it

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
@mergify mergify bot added the qwen Related to Qwen models label Feb 25, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces performance optimizations for the Qwen3-Next model by integrating FlashInfer kernels for Gated Delta Net (GDN) decode and Multi-Token Processing (MTP). The changes are well-structured, adding new optimized code paths while retaining the existing implementations as fallbacks. This ensures correctness and compatibility on hardware that does not support the new kernels. The logic for selecting the appropriate kernel based on hardware capabilities and input shapes appears to be correct. The state management for speculative decoding with the new MTP kernel is also handled properly. Overall, the changes are a solid performance enhancement, and I have no high or critical severity concerns.

Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
@JaheimLee
Copy link

Hi, does this support full cuda graph? PIECEWISE mode is slow.

@ZJY0516
Copy link
Member Author

ZJY0516 commented Feb 27, 2026

Hi, does this support full cuda graph? PIECEWISE mode is slow.

decode should support full cuda graph

@ZJY0516
Copy link
Member Author

ZJY0516 commented Mar 4, 2026

@vadiklyutiy vadiklyutiy moved this to In progress in Qwen3.5 Mar 5, 2026
ZJY0516 added 2 commits March 9, 2026 13:32
Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
@mergify
Copy link

mergify bot commented Mar 9, 2026

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @ZJY0516.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Mar 9, 2026
@ZJY0516 ZJY0516 changed the title [Perf] Optimize gdn decode and mtp [Perf] flashinfer gdn decode kernel intergration Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase qwen Related to Qwen models

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

3 participants