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
8edcabc7
Commit
8edcabc7
authored
Feb 16, 2023
by
Woosuk Kwon
Browse files
Add warning
parent
2f4887de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cacheflow/worker/cache_engine.py
cacheflow/worker/cache_engine.py
+3
-0
No files found.
cacheflow/worker/cache_engine.py
View file @
8edcabc7
...
...
@@ -19,6 +19,9 @@ class CacheEngine:
num_cpu_blocks
:
int
,
dtype
:
torch
.
dtype
,
)
->
None
:
if
head_size
%
16
!=
0
:
raise
ValueError
(
f
'head_size (
{
head_size
}
) must be a multiple of 16.'
)
self
.
worker_id
=
worker_id
self
.
gpu_id
=
gpu_id
self
.
num_layers
=
num_layers
...
...
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