Small AutoGPTQ fix
This commit is contained in:
parent
c2d2ef7c13
commit
fb6a00f4e5
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@ def load_quantized(model_name):
|
||||||
logger.warning(f'More than one {ext} model has been found. The last one will be selected. It could be wrong.')
|
logger.warning(f'More than one {ext} model has been found. The last one will be selected. It could be wrong.')
|
||||||
|
|
||||||
pt_path = found[-1]
|
pt_path = found[-1]
|
||||||
|
if ext == '.safetensors':
|
||||||
|
use_safetensors = True
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
if pt_path is None:
|
if pt_path is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue