Skip to content

Commit 9111a91

Browse files
committed
up
Signed-off-by: Rui Qiao <[email protected]>
1 parent c710306 commit 9111a91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vllm/v1/engine/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,11 @@ def _initialize_kv_caches(self,
7979

8080
# Get the kv cache tensor size
8181
kv_cache_configs = []
82-
num_gpu_blocks = None
8382
for kv_cache_spec in kv_cache_specs:
8483
kv_cache_config = get_kv_cache_config(vllm_config, kv_cache_spec,
8584
available_gpu_memory)
8685
kv_cache_configs.append(kv_cache_config)
87-
assert len(set(config.num_blocks for config in kv_cache_configs)) == 1,
86+
assert len(set(config.num_blocks for config in kv_cache_configs)) == 1, \
8887
f"num_gpu_blocks need to be the same across workers: {num_gpu_blocks} != {kv_cache_config.num_blocks}"
8988
num_gpu_blocks = kv_cache_configs[0].num_blocks
9089
num_cpu_blocks = 0

0 commit comments

Comments
 (0)