From fda376d9c386aebffe6966ed72cf7202c491bd3f Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 12 Mar 2023 12:41:04 -0300 Subject: [PATCH] Use os.path.abspath() instead of str() --- modules/quantized_LLaMA.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quantized_LLaMA.py b/modules/quantized_LLaMA.py index 9ab7f333..5e4a38e8 100644 --- a/modules/quantized_LLaMA.py +++ b/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: