mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
check pv_matmul_dtype = "enabled"
This commit is contained in:
@@ -203,7 +203,7 @@ def quantize_attn(
|
||||
) -> tuple[torch.Tensor]:
|
||||
if matmul_dtype in {"auto", "enabled", "uint8"}:
|
||||
matmul_dtype = "int8"
|
||||
if pv_matmul_dtype == "uint8":
|
||||
if pv_matmul_dtype in {"enabled", "uint8"}:
|
||||
pv_matmul_dtype = "int8"
|
||||
if scale is None:
|
||||
scale = q.shape[-1] ** -0.5
|
||||
|
||||
Reference in New Issue
Block a user