Explorar o código

Fix GPTQ load_quant call on Windows

oobabooga %!s(int64=2) %!d(string=hai) anos
pai
achega
372363bc3d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/quantized_LLaMA.py

+ 1 - 1
modules/quantized_LLaMA.py

@@ -40,7 +40,7 @@ def load_quantized_LLaMA(model_name):
         print(f"Could not find {pt_model}, exiting...")
         print(f"Could not find {pt_model}, exiting...")
         exit()
         exit()
 
 
-    model = load_quant(path_to_model, str(pt_path), bits)
+    model = load_quant(str(path_to_model), str(pt_path), bits)
 
 
     # Multiple GPUs or GPU+CPU
     # Multiple GPUs or GPU+CPU
     if shared.args.gpu_memory:
     if shared.args.gpu_memory: