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 Han-Chen705cac03576f
diff --git a/unsloth/save.py b/unsloth/save.py
index 36a61aa5aa4..7f2cf881286 100644
--- a/unsloth/save.py
+++ b/unsloth/save.py
@@ -544,8 +544,9 @@ def save_to_gguf(
command = f"./llama.cpp/quantize {old_location} "\
f"{final_location} {quantization_method} {n_cpus}"
- with subprocess.Popen(command, shell = True, stdout = subprocess.PIPE, bufsize = 1) as sp:
- for line in sp.stdout:
+ # quantize uses stderr
+ with subprocess.Popen(command, shell = True, stderr = subprocess.PIPE, bufsize = 1) as sp:
+ for line in sp.stderr:
print(line.decode("utf-8"), flush = True, end = "")
pass
print(f"Unsloth: Conversion completed! Output location: {final_location}")