From 933cfe1ccfc2ba5e1a662f5b2050e6d43d23acc3 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 3 Dec 2024 16:57:32 -0800 Subject: [PATCH] Update save.py --- unsloth/save.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unsloth/save.py b/unsloth/save.py index 1202614232..f7098aea12 100644 --- a/unsloth/save.py +++ b/unsloth/save.py @@ -1038,6 +1038,8 @@ def save_to_gguf( error = _run_installer.wait() if IS_CMAKE: # CMAKE needs to do some extra steps + print("Unsloth: CMAKE detected. Finalizing some steps for installation.") + check = os.system("cp llama.cpp/build/bin/llama-* llama.cpp") if check != 0: raise RuntimeError("Failed compiling llama.cpp. Please report this ASAP!") check = os.system("rm -rf llama.cpp/build")