Repository navigation
[npu] decoding procedure optimization on qwen3.5/3.6 - #35958
Merged
Merged
Conversation
MatsueYu
force-pushed
the
feature/npu-perf-opt
branch
3 times, most recently
from
August 24, 2026 03:03
fe02a6a to
3670e5d
Compare
MatsueYu
force-pushed
the
feature/npu-perf-opt
branch
2 times, most recently
from
August 25, 2026 12:23
cde18c9 to
749daff
Compare
MatsueYu
marked this pull request as ready for review
August 25, 2026 12:25
MatsueYu
requested review from
Fridge003,
Ying1123,
hnyls2002,
iforgetmyname,
ispobock,
merrymercy,
ping1jing2,
whybeyoung and
xiezhq-hermann
as code owners
August 25, 2026 12:25
Contributor
Author
|
/tag-and-rerun-ci |
Contributor
Author
|
/tag-run-ci-label |
MatsueYu
force-pushed
the
feature/npu-perf-opt
branch
from
August 27, 2026 06:38
cc7ef35 to
584adc8
Compare
MatsueYu
force-pushed
the
feature/npu-perf-opt
branch
2 times, most recently
from
September 8, 2026 07:36
408ff0c to
eeaf643
Compare
MatsueYu
requested review from
HaiShaw,
Qiaolin-Yu and
hebiao064
as code owners
September 8, 2026 07:36
…sigmoid-mul, fused GDN decode update, fused qkvzba split
MatsueYu
force-pushed
the
feature/npu-perf-opt
branch
from
September 8, 2026 07:39
eeaf643 to
85a3b48
Compare
MatsueYu
commented
Sep 15, 2026
Collaborator
|
/tag-and-rerun-ci |
realray808
pushed a commit
to Ascend/sglang
that referenced
this pull request
Sep 17, 2026
Collaborator
|
/rerun-failed-ci |
Collaborator
|
/rerun-failed-ci |
sglang-npu-bot
approved these changes
Sep 18, 2026
Collaborator
|
/rerun-failed-ci |
…3. remove requirement check of sigmoid-mul
MatsueYu
requested review from
hanming-lu,
yizhang2077 and
yuan-luo
as code owners
September 20, 2026 08:17
Collaborator
|
/rerun-failed-ci |
iforgetmyname
approved these changes
Sep 21, 2026
Collaborator
|
/rerun-failed-ci |
Collaborator
|
/rerun-failed-ci |
1 similar comment
Collaborator
|
/rerun-failed-ci |
This was referenced Sep 23, 2026
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.
Notice: Please ensure sgl-project/sgl-kernel-npu#740 is applied to your sgl-kernel-npu.
Motivation
This commit is mainly about optimization on decoding procedure of qwen3.5 35b on npu, including
Modifications and usage
self.num_v_heads // self.num_k_heads in _GDN_FUSED_QKVZBA_RATIOSsatisfies, triton kernelfused_qkvzba_split_reshape_cat_contiguouswill be used to split and arrange qkvzba matrices, instead of the fallbackview/slice/reshape/catprocedure. Only in models using qwen3_5.pyAccuracy Tests
we test the performance on Qwen3.6 35B A3B, with tp4 dp4 dpa ep4
Speed Tests and Profiling
throughput and topk
tp4 dp4 dpa ep4, 2k/32k
profiling
GDN_update decode optimization
fused_split_qkvzba optimization
fused sigmoid multiplication
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciConversation Answer:
Radix Cache testing

There is no accuracy loss if radixcache is turned on
CI States
Latest PR Test (Base): 🚫 Run #35730090468
Latest PR Test (Extra): ❌ Run #35730089901
Latest PR Test (AMD ROCm 10): ❌ Run #35730090386