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
9095cbbf
Unverified
Commit
9095cbbf
authored
Mar 10, 2026
by
Matthew Bonanni
Committed by
GitHub
Mar 10, 2026
Browse files
[Bugfix][Sparse MLA] report indexer CG support properly (#36519)
Signed-off-by:
Matthew Bonanni
<
mbonanni@redhat.com
>
parent
721ae79f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
vllm/v1/attention/backends/mla/indexer.py
vllm/v1/attention/backends/mla/indexer.py
+15
-3
No files found.
vllm/v1/attention/backends/mla/indexer.py
View file @
9095cbbf
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
from
dataclasses
import
dataclass
from
typing
import
ClassVar
import
torch
...
...
@@ -25,6 +24,7 @@ from vllm.v1.attention.backends.utils import (
split_decodes_and_prefills
,
split_prefill_chunks
,
)
from
vllm.v1.kv_cache_interface
import
AttentionSpec
from
vllm.v1.worker.cp_utils
import
get_total_cp_world_size
logger
=
init_logger
(
__name__
)
...
...
@@ -202,10 +202,22 @@ def get_max_prefill_buffer_size(vllm_config: VllmConfig):
class
DeepseekV32IndexerMetadataBuilder
(
AttentionMetadataBuilder
):
_cudagraph_support
:
ClassVar
[
AttentionCGSupport
]
=
AttentionCGSupport
.
UNIFORM_BATCH
reorder_batch_threshold
:
int
=
1
@
classmethod
def
get_cudagraph_support
(
cls
,
vllm_config
:
VllmConfig
,
kv_cache_spec
:
AttentionSpec
,
)
->
AttentionCGSupport
:
if
not
is_deep_gemm_supported
():
logger
.
warning_once
(
"DeepGEMM is not available. Disabling CUDA graph support "
"for sparse attention indexer. This may reduce performance."
,
)
return
AttentionCGSupport
.
NEVER
return
AttentionCGSupport
.
UNIFORM_BATCH
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
scheduler_config
=
self
.
vllm_config
.
scheduler_config
...
...
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