mirror of
https://github.com/wassname/alpaca_convert.git
synced 2026-06-27 17:29:09 +08:00
fix bug
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user