Add warning
This commit is contained in:
parent
2f4887de77
commit
8edcabc737
@ -19,6 +19,9 @@ class CacheEngine:
|
|||||||
num_cpu_blocks: int,
|
num_cpu_blocks: int,
|
||||||
dtype: torch.dtype,
|
dtype: torch.dtype,
|
||||||
) -> None:
|
) -> 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.worker_id = worker_id
|
||||||
self.gpu_id = gpu_id
|
self.gpu_id = gpu_id
|
||||||
self.num_layers = num_layers
|
self.num_layers = num_layers
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user