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
9e68a682
Commit
9e68a682
authored
Feb 16, 2023
by
Woosuk Kwon
Browse files
Fix return type error
parent
8edcabc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cacheflow/worker/cache_engine.py
cacheflow/worker/cache_engine.py
+2
-2
No files found.
cacheflow/worker/cache_engine.py
View file @
9e68a682
...
...
@@ -42,7 +42,7 @@ class CacheEngine:
# Initialize the events for stream synchronization.
self
.
events
=
[
torch
.
cuda
.
Event
()
for
_
in
range
(
self
.
num_layers
)]
def
get_key_block_shape
(
self
)
->
Tuple
[
int
,
int
,
int
,
int
,
int
]:
def
get_key_block_shape
(
self
)
->
Tuple
[
int
,
int
,
int
,
int
]:
element_size
=
torch
.
tensor
([],
dtype
=
self
.
dtype
).
element_size
()
x
=
16
//
element_size
return
(
...
...
@@ -52,7 +52,7 @@ class CacheEngine:
x
,
)
def
get_value_block_shape
(
self
)
->
Tuple
[
int
,
int
,
int
,
int
]:
def
get_value_block_shape
(
self
)
->
Tuple
[
int
,
int
,
int
]:
return
(
self
.
num_heads
,
self
.
block_size
,
...
...
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