mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-25 00:29:13 +08:00
yapf
Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
parent
1aaced5830
commit
8a4180c8b6
@ -93,8 +93,8 @@ class BlockTable:
|
||||
# Copy the entire block table to the GPU.
|
||||
# NOTE(woosuk): This can be a performance bottleneck when the block
|
||||
# table is large.
|
||||
self.block_table[:num_reqs].copy_(
|
||||
self.block_table_cpu[:num_reqs], non_blocking=True)
|
||||
self.block_table[:num_reqs].copy_(self.block_table_cpu[:num_reqs],
|
||||
non_blocking=True)
|
||||
|
||||
def clear(self) -> None:
|
||||
self.block_table.fill_(0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user