Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
add1b9d3
Unverified
Commit
add1b9d3
authored
Dec 14, 2025
by
drslark
Committed by
GitHub
Dec 14, 2025
Browse files
[main][BugFix] Fixed an accuracy bug of Qwen3-next-MTP when batched inferring (#30632)
Signed-off-by:
drslark
<
slarksblood@qq.com
>
parent
dcb31196
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/v1/attention/backends/gdn_attn.py
vllm/v1/attention/backends/gdn_attn.py
+1
-1
No files found.
vllm/v1/attention/backends/gdn_attn.py
View file @
add1b9d3
...
@@ -211,7 +211,7 @@ class GDNAttentionMetadataBuilder(AttentionMetadataBuilder[GDNAttentionMetadata]
...
@@ -211,7 +211,7 @@ class GDNAttentionMetadataBuilder(AttentionMetadataBuilder[GDNAttentionMetadata]
spec_token_masks
=
torch
.
repeat_interleave
(
spec_token_masks
=
torch
.
repeat_interleave
(
spec_sequence_masks
,
query_lens
spec_sequence_masks
,
query_lens
)
)
index
=
torch
.
argsort
(
spec_token_masks
)
index
=
torch
.
argsort
(
spec_token_masks
,
stable
=
True
)
num_non_spec_tokens
=
num_prefill_tokens
+
num_decode_tokens
num_non_spec_tokens
=
num_prefill_tokens
+
num_decode_tokens
non_spec_token_indx
=
index
[:
num_non_spec_tokens
]
non_spec_token_indx
=
index
[:
num_non_spec_tokens
]
spec_token_indx
=
index
[
num_non_spec_tokens
:]
spec_token_indx
=
index
[
num_non_spec_tokens
:]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment