Skip to content

Commit 2a484cb

Browse files
sroy745comaniac
andauthored
Update vllm/core/block_manager_v2.py
Co-authored-by: Cody Yu <hao.yu.cody@gmail.com>
1 parent 3296228 commit 2a484cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/core/block_manager_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def _allocate_sequence(self, seq: Sequence) -> BlockTable:
151151
block_allocator=self.block_allocator,
152152
max_block_sliding_window=self.max_block_sliding_window,
153153
)
154-
if (len(seq.get_token_ids()) > 0):
154+
if seq.get_token_ids():
155155
# Add blocks to the block table only if the sequence is non empty.
156156
block_table.allocate(seq.get_token_ids())
157157

0 commit comments

Comments
 (0)