Skip to content

Commit 334fe90

Browse files
committed
[Style] Collapse kv cache coordinator MTP guard to one line
ruff format collapses the multi-line condition in the multi-module MTP guard since it fits within the 120-char line length. Fixes the pre-commit ruff-format hook and the ci-gate it gates. Signed-off-by: liaoqidan <1107297340@qq.com>
1 parent d5324ad commit 334fe90

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

vllm_ascend/patch/platform/patch_kv_cache_coordinator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,7 @@ def __init__(
138138
# Multi-module MTP with prefix caching requires the scheduler block to
139139
# hold the whole prefill lookahead, mirroring the upstream coordinator
140140
# contract from vllm-project/vllm#50062.
141-
if (
142-
enable_caching
143-
and self.eagle_group_ids
144-
and scheduler_block_size < num_prefill_lookahead
145-
):
141+
if enable_caching and self.eagle_group_ids and scheduler_block_size < num_prefill_lookahead:
146142
raise ValueError(
147143
"Multi-module MTP with prefix caching requires scheduler_block_size"
148144
f" (={scheduler_block_size}) >= num_speculative_tokens"

0 commit comments

Comments
 (0)