From d28ee062028ef9368734e15343866e5a565a6602 Mon Sep 17 00:00:00 2001 From: John Smith Date: Wed, 29 Mar 2023 01:25:37 +0800 Subject: [PATCH] fix bug --- matmul_utils_4bit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matmul_utils_4bit.py b/matmul_utils_4bit.py index b476812..3d1d60b 100644 --- a/matmul_utils_4bit.py +++ b/matmul_utils_4bit.py @@ -108,9 +108,9 @@ def matmul4bit(x, qweight, scales, zeros, groupsize=-1): if np.prod(x.shape[:-1]) > auto_switch_thd: output = _matmul4bit_v1_recons(x, qweight, scales, zeros) else: - output = _matmul4bit_v1(x, qweight, scales.float(), zeros) + output = _matmul4bit_v1(x, qweight, scales.float(), zeros.float()) else: - output = _matmul4bit_v1(x, qweight, scales.float(), zeros) + output = _matmul4bit_v1(x, qweight, scales.float(), zeros.float()) else: # use v2 if use_new: