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
0e5d399a
Commit
0e5d399a
authored
Aug 01, 2025
by
王敏
Browse files
[fix]避免mla中cudagraph的适配影响非并行解码的逻辑
parent
fe393be8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/v1/attention/backends/mla/common.py
vllm/v1/attention/backends/mla/common.py
+2
-1
No files found.
vllm/v1/attention/backends/mla/common.py
View file @
0e5d399a
...
@@ -690,7 +690,8 @@ class MLACommonMetadataBuilder(AttentionMetadataBuilder[M]):
...
@@ -690,7 +690,8 @@ class MLACommonMetadataBuilder(AttentionMetadataBuilder[M]):
def
can_run_in_cudagraph
(
def
can_run_in_cudagraph
(
self
,
common_attn_metadata
:
CommonAttentionMetadata
)
->
bool
:
self
,
common_attn_metadata
:
CommonAttentionMetadata
)
->
bool
:
#return common_attn_metadata.max_query_len == 1
if
not
self
.
use_spec_decode
:
return
common_attn_metadata
.
max_query_len
==
1
return
self
.
_num_prefills
==
0
return
self
.
_num_prefills
==
0
...
...
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