Преглед на файлове

Use os.path.abspath() instead of str()

oobabooga преди 3 години
родител
ревизия
fda376d9c3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      modules/quantized_LLaMA.py

+ 1 - 1
modules/quantized_LLaMA.py

@@ -41,7 +41,7 @@ def load_quantized_LLaMA(model_name):
         print(f"Could not find {pt_model}, exiting...")
         exit()
 
-    model = load_quant(path_to_model, str(pt_path), bits)
+    model = load_quant(path_to_model, os.path.abspath(pt_path), bits)
 
     # Multi-GPU setup
     if shared.args.gpu_memory: