Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
2f192835
Unverified
Commit
2f192835
authored
Apr 06, 2024
by
youkaichao
Committed by
GitHub
Apr 06, 2024
Browse files
[Core] latency optimization (#3890)
parent
95baec82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/core/block_manager_v1.py
vllm/core/block_manager_v1.py
+1
-1
No files found.
vllm/core/block_manager_v1.py
View file @
2f192835
...
@@ -328,7 +328,7 @@ class BlockSpaceManagerV1(BlockSpaceManager):
...
@@ -328,7 +328,7 @@ class BlockSpaceManagerV1(BlockSpaceManager):
self
,
self
,
seq
:
Sequence
,
seq
:
Sequence
,
)
->
bool
:
)
->
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
return
token_ids_len
>
0
and
token_ids_len
%
seq
.
block_size
==
0
def
_maybe_promote_last_block
(
def
_maybe_promote_last_block
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment