Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions vllm/v1/attention/backends/mla/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,19 @@ def __init__(
self.dcp_world_size = 1
self.dcp_rank = 0

if (
self.dcp_world_size > 1
and self.__class__.reorder_batch_threshold > 1
and self.__class__.__name__ != "FlashAttnMLAMetadataBuilder"
):
logger.warning_once(
"DCP is enabled but not FlashAttnMLA is used. "
"Set query_len_support back to SINGLE_ONLY "
"and reorder_batch_threshold back to 1."
)
self.__class__.query_len_support = QueryLenSupport.SINGLE_ONLY
self.__class__.reorder_batch_threshold = 1

# Don't try to access the runner on AMD
if self.aot_schedule:
self.page_size = self.kv_cache_spec.block_size
Expand Down