Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
4f6f4967
Commit
4f6f4967
authored
Feb 23, 2023
by
Woosuk Kwon
Browse files
Add get_block_table
parent
331fa0b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cacheflow/master/block_manager.py
cacheflow/master/block_manager.py
+4
-0
No files found.
cacheflow/master/block_manager.py
View file @
4f6f4967
...
...
@@ -228,3 +228,7 @@ class BlockSpaceManager:
for
block_table
in
self
.
block_tables
.
values
():
self
.
_free_block_table
(
block_table
)
self
.
block_tables
.
clear
()
def
get_block_table
(
self
,
seq
:
Sequence
)
->
List
[
int
]:
block_table
=
self
.
block_tables
[
seq
.
seq_id
]
return
[
block
.
block_number
for
block
in
block_table
]
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