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}"