From 71ac721ceca58d5df6fc3b8d504094d4c545b05c Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 10 Oct 2024 23:22:17 -0700 Subject: [PATCH] Update save.py --- unsloth/save.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/save.py b/unsloth/save.py index 3e82a5bcdd..7f523faadc 100644 --- a/unsloth/save.py +++ b/unsloth/save.py @@ -1063,7 +1063,7 @@ def save_to_gguf( n_cpus *= 2 # Concurrency from https://rentry.org/llama-cpp-conversions#merging-loras-into-a-model - final_location = (Path(model_directory) / f"unsloth.{first_conversion.upper()}.gguf").absolute() + final_location = str((Path(model_directory) / f"unsloth.{first_conversion.upper()}.gguf").absolute()) print(f"Unsloth: [1] Converting model at {model_directory} into {first_conversion} GGUF format.\n"\ f"The output location will be {final_location}\n"\ @@ -1132,7 +1132,7 @@ def save_to_gguf( for quant_method in quantization_method: if quant_method != first_conversion: print(f"Unsloth: [2] Converting GGUF 16bit into {quant_method}. This will take 20 minutes...") - final_location = (Path(model_directory) / f"unsloth.{quant_method.upper()}.gguf").absolute() + final_location = str((Path(model_directory) / f"unsloth.{quant_method.upper()}.gguf").absolute()) command = f"./{quantize_location} {full_precision_location} "\ f"{final_location} {quant_method} {n_cpus}"