Commit 8edcabc7 authored by Woosuk Kwon's avatar Woosuk Kwon
Browse files

Add warning

parent 2f4887de
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment