Explorar o código

Insert to the path instead of appending

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

+ 1 - 1
modules/models.py

@@ -89,7 +89,7 @@ def load_model(model_name):
 
     # 4-bit LLaMA
     elif shared.args.load_in_4bit:
-        sys.path.append(os.path.abspath(Path("repositories/GPTQ-for-LLaMa")))
+        sys.path.insert(0, os.path.abspath(Path("repositories/GPTQ-for-LLaMa")))
 
         from llama import load_quant