mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-20 20:39:11 +08:00
[Core] latency optimization (#3890)
This commit is contained in:
parent
95baec828f
commit
2f19283549
@ -328,7 +328,7 @@ class BlockSpaceManagerV1(BlockSpaceManager):
|
||||
self,
|
||||
seq: Sequence,
|
||||
) -> bool:
|
||||
token_ids_len = len(seq.data.get_token_ids())
|
||||
token_ids_len = seq.data.get_len()
|
||||
return token_ids_len > 0 and token_ids_len % seq.block_size == 0
|
||||
|
||||
def _maybe_promote_last_block(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user