Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Update save.py

Daniel Han9dd4462bf999
diff --git a/unsloth/save.py b/unsloth/save.py
index 3e82a5bcdde..7f523faadc0 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}"