You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError Traceback (most recent call last)
File ~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:1689, in unsloth_save_pretrained_gguf(self, save_directory, tokenizer, quantization_method, first_conversion, push_to_hub, token, private, is_main_process, state_dict, save_function, max_shard_size, safe_serialization, variant, save_peft_format, tags, temporary_location, maximum_memory_usage)
[1688](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:1688) try:
-> [1689](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:1689) new_save_directory, old_username = unsloth_save_model(**arguments)
[1690](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:1690) makefile = None
File ~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/torch/utils/_contextlib.py:116, in context_decorator.<locals>.decorate_context(*args, **kwargs)
[115](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/torch/utils/_contextlib.py:115) with ctx_factory():
--> [116](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/torch/utils/_contextlib.py:116) return func(*args, **kwargs)
File ~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:714, in unsloth_save_model(model, tokenizer, save_directory, save_method, push_to_hub, token, is_main_process, state_dict, save_function, max_shard_size, safe_serialization, variant, save_peft_format, use_temp_dir, commit_message, private, create_pr, revision, commit_description, tags, temporary_location, maximum_memory_usage)
[713](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:713) else:
--> [714](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:714) internal_model.save_pretrained(**save_pretrained_settings)
[715](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:715) pass
File ~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2938, in PreTrainedModel.save_pretrained(self, save_directory, is_main_process, state_dict, save_function, push_to_hub, max_shard_size, safe_serialization, variant, token, save_peft_format, **kwargs)
[2937](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2937) for name in disjoint_names:
-> [2938](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2938) state_dict[name] = state_dict[name].clone()
[2940](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2940) # When not all duplicates have been cleaned, still remove those keys, but put a clear warning.
[2941](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2941) # If the link between tensors was done at runtime then `from_pretrained` will not get
[2942](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2942) # the key back leading to random tensor. A proper warning will be shown
[2943](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2943) # during reload (if applicable), but since the file is not necessarily compatible with
[2944](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/transformers/modeling_utils.py:2944) # the config, better show a proper warning.
...
--> [778](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:778) raise RuntimeError(f"*** Unsloth: Failed compiling llama.cpp using os.system(...) with error {check}. Please report this ASAP!")
[779](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:779) pass
[780](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/neuro/~/miniconda3/envs/unsloth_env/lib/python3.11/site-packages/unsloth/save.py:780) # f"cmake --build llama.cpp/build --config Release -j{psutil.cpu_count()*2} --clean-first --target {' '.join(LLAMA_CPP_TARGETS)}",
RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 256. Please report this ASAP!
Before updating unsloth, I encountered the error "CUDA driver error: out of memory". After updating yesterday, the error changed to the one described above. This issue arises when I attempt to save a model in GGUF 4-bit format to run it later in Ollama. Is the 8GB memory of my RTX 3050 insufficient for this task? Training the model completed successfully; the problem occurs specifically during the saving process. I would greatly appreciate any advice or assistance.
Before updating unsloth, I encountered the error "CUDA driver error: out of memory". After updating yesterday, the error changed to the one described above. This issue arises when I attempt to save a model in GGUF 4-bit format to run it later in Ollama. Is the 8GB memory of my RTX 3050 insufficient for this task? Training the model completed successfully; the problem occurs specifically during the saving process. I would greatly appreciate any advice or assistance.
Hi, this issue still kinda exists, I was trying to save the fine tuned DeepSeek-R1-Distill-Llama-8B-GGUF into gguf format, and the same error popped up. RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 32512. Please report this ASAP!
I bypassed this issue but using an early version of llama.cpp and then following the below temporary solution that has now become permanent it seems. cd llama.cpp
This is still broken for me:
100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 400/400 [1:18:58<00:00, 11.85s/it]
Saving model with quantization method: q4_k_m
make: Entering directory '/workspace/llama.cpp'
Makefile:2: *** The Makefile build is deprecated. Use the CMake build instead. For more details, see https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md. Stop.
make: Leaving directory '/workspace/llama.cpp'
sh: 1: cmake: not found
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1684, in unsloth_save_pretrained_gguf
makefile = install_llama_cpp_make_non_blocking()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 779, in install_llama_cpp_make_non_blocking
raise RuntimeError(f"*** Unsloth: Failed compiling llama.cpp using os.system(...) with error {check}. Please report this ASAP!")
RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 32512. Please report this ASAP!
This is still broken for me: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 400/400 [1:18:58<00:00, 11.85s/it] Saving model with quantization method: q4_k_m make: Entering directory '/workspace/llama.cpp' Makefile:2: *** The Makefile build is deprecated. Use the CMake build instead. For more details, see https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md. Stop. make: Leaving directory '/workspace/llama.cpp' sh: 1: cmake: not found Traceback (most recent call last): File "/workspace/unsloth-cli-v2.py", line 235, in run(args) File "/workspace/unsloth-cli-v2.py", line 148, in run model.save_pretrained_gguf( File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1684, in unsloth_save_pretrained_gguf makefile = install_llama_cpp_make_non_blocking() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 779, in install_llama_cpp_make_non_blocking raise RuntimeError(f"*** Unsloth: Failed compiling llama.cpp using os.system(...) with error {check}. Please report this ASAP!") RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 32512. Please report this ASAP!
This is still broken for me: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 400/400 [1:18:58<00:00, 11.85s/it] Saving model with quantization method: q4_k_m make: Entering directory '/workspace/llama.cpp' Makefile:2: *** The Makefile build is deprecated. Use the CMake build instead. For more details, see https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md. Stop. make: Leaving directory '/workspace/llama.cpp' sh: 1: cmake: not found Traceback (most recent call last): File "/workspace/unsloth-cli-v2.py", line 235, in run(args) File "/workspace/unsloth-cli-v2.py", line 148, in run model.save_pretrained_gguf( File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1684, in unsloth_save_pretrained_gguf makefile = install_llama_cpp_make_non_blocking() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 779, in install_llama_cpp_make_non_blocking raise RuntimeError(f"*** Unsloth: Failed compiling llama.cpp using os.system(...) with error {check}. Please report this ASAP!") RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 32512. Please report this ASAP!
I got the same error. Installing Cmake in my docker container worked for me.
I installed cmake and compiled Llama.cpp and was confronted with this further error after re-running:
Unsloth: Saving tokenizer... Done.
Done.
Unsloth: Converting llama model. Can use fast conversion = False.
==((====))== Unsloth: Conversion from QLoRA to GGUF information
\ /| [0] Installing llama.cpp might take 3 minutes.
O^O/ _/ \ [1] Converting HF to GGUF 16bits might take 3 minutes.
\ / [2] Converting GGUF 16bits to ['q4_k_m'] might take 10 minutes each.
"-____-" In total, you will have to wait at least 16 minutes.
Unsloth: Installing llama.cpp. This might take 3 minutes...
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1735, in unsloth_save_pretrained_gguf
all_file_locations, want_full_precision = save_to_gguf(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1070, in save_to_gguf
raise RuntimeError(
RuntimeError: Unsloth: The file 'llama.cpp/llama-quantize' or 'llama.cpp/quantize' does not exist.
But we expect this file to exist! Maybe the llama.cpp developers changed the name?
Running again (with CMake installed) after deleting the llama.cpp directory produces this gem:
-- Adding CPU backend variant ggml-cpu: -march=native
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindCURL.cmake:181 (find_package_handle_standard_args)
common/CMakeLists.txt:88 (find_package)
-- Configuring incomplete, errors occurred!
See also "/workspace/llama.cpp/build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1684, in unsloth_save_pretrained_gguf
makefile = install_llama_cpp_make_non_blocking()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 779, in install_llama_cpp_make_non_blocking
raise RuntimeError(f"*** Unsloth: Failed compiling llama.cpp using os.system(...) with error {check}. Please report this ASAP!")
RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 256. Please report this ASAP!
Installed Curl and still got this:
Unsloth: Converting llama model. Can use fast conversion = False.
==((====))== Unsloth: Conversion from QLoRA to GGUF information
\ /| [0] Installing llama.cpp might take 3 minutes.
O^O/ _/ \ [1] Converting HF to GGUF 16bits might take 3 minutes.
\ / [2] Converting GGUF 16bits to ['q4_k_m'] might take 10 minutes each.
"-____-" In total, you will have to wait at least 16 minutes.
Unsloth: Installing llama.cpp. This might take 3 minutes...
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1735, in unsloth_save_pretrained_gguf
all_file_locations, want_full_precision = save_to_gguf(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1070, in save_to_gguf
raise RuntimeError(
RuntimeError: Unsloth: The file 'llama.cpp/llama-quantize' or 'llama.cpp/quantize' does not exist.
But we expect this file to exist! Maybe the llama.cpp developers changed the name?
@AleefBilal , I tried it 3 different ways. I tried compiling it from the download that the first run of unsloth did, and then I tried deleting the directory, downloading and compiling per their instructions. Finally, I just had cmake and curl installed and I let unsloth do everything itself. Basically, every version of this failed. I'm doing this on runpod.
@AleefBilal , I tried it 3 different ways. I tried compiling it from the download that the first run of unsloth did, and then I tried deleting the directory, downloading and compiling per their instructions. Finally, I just had cmake and curl installed and I let unsloth do everything itself. Basically, every version of this failed. I'm doing this on runpod.
Where your file llama-quantize? you sure that you have it with last build? you need to check your llama.cpp folder first.
@IridiumMaster Below are the working steps for conversion of a vanilla model to GGUF using Unsloth and llama.cpp.
The operation was performed using RUNPOD with runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04
This should be fixed now - sorry on the delay - please update with uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir - if it's not fixed yet, it'll be in the next pip / PyPI release - if it's still not working after that, please open another issue - appreciate it again!
Activity
[-]llama.cpp GGUF breaks[/-][+]llama.cpp GGUF breaks [FIXED][/+]criogennn commentedon Dec 4, 2024
Error on
model unsloth/Llama-3.2-3B-Instruct
GPU RTX 3050 8GB
pytorch 2.5.1
criogennn commentedon Dec 4, 2024
install cmake and get this one
criogennn commentedon Dec 4, 2024
Before updating unsloth, I encountered the error "CUDA driver error: out of memory". After updating yesterday, the error changed to the one described above. This issue arises when I attempt to save a model in GGUF 4-bit format to run it later in Ollama. Is the 8GB memory of my RTX 3050 insufficient for this task? Training the model completed successfully; the problem occurs specifically during the saving process. I would greatly appreciate any advice or assistance.
shimmyshimmer commentedon Dec 18, 2024
We're working on the process easier.
You updated unsloth AND unsloth-zoo correct? https://docs.unsloth.ai/get-started/install-update/updating
Eleanorkong commentedon Dec 21, 2024
Hi, How to update through conda?
opertifelipe commentedon Dec 27, 2024
I got the same error when I am trying to save the model to gguf format model.save_pretrained_gguf("model_gguf", tokenizer,):
`packages/unsloth/save.py:1054) if check != 0: raise RuntimeError("Failed compiling llama.cpp. Please report this ASAP!")
RuntimeError: Failed compiling llama.cpp. Please report this ASAP!`
Is this issue still not solverd?
AleefBilal commentedon Jan 24, 2025
The issue still exists. Kindly report a fix if anyone finds it.
chaoyupeng commentedon Feb 4, 2025
Hi, this issue still kinda exists, I was trying to save the fine tuned DeepSeek-R1-Distill-Llama-8B-GGUF into gguf format, and the same error popped up.
RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 32512. Please report this ASAP!AleefBilal commentedon Feb 4, 2025
I bypassed this issue but using an early version of
llama.cppand then following the below temporary solution that has now become permanent it seems.cd llama.cppgit checkout b3345git submodule update --init --recursivemake cleanmake all -jgit log -1credit goes to
#748 (comment)
Dillion commentedon Feb 5, 2025
i think you can bypass by manually compiling llama.cpp (clean install) using latest cmake instructions for your system from https://github.com/ggerganov/llama.cpp/blob/master/docs/build.md#cpu-build, and then running save_pretrained_gguf.
Issues might be due to errors in cmake compilation flag for your system in
unsloth/unsloth/save.py
Line 777 in 038e6d4
everythingisc00l commentedon Feb 9, 2025
Check my solution, if you have crashes with saving .gguf models.
#748 (comment)
IridiumMaster commentedon Feb 15, 2025
This is still broken for me:
100%|█████████████████████████████████████████████████████████████████████████████████████████████████| 400/400 [1:18:58<00:00, 11.85s/it]
Saving model with quantization method: q4_k_m
make: Entering directory '/workspace/llama.cpp'
Makefile:2: *** The Makefile build is deprecated. Use the CMake build instead. For more details, see https://github.com/ggml-org/llama.cpp/blob/master/docs/build.md. Stop.
make: Leaving directory '/workspace/llama.cpp'
sh: 1: cmake: not found
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1684, in unsloth_save_pretrained_gguf
makefile = install_llama_cpp_make_non_blocking()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 779, in install_llama_cpp_make_non_blocking
raise RuntimeError(f"*** Unsloth: Failed compiling llama.cpp using os.system(...) with error {check}. Please report this ASAP!")
RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 32512. Please report this ASAP!
everythingisc00l commentedon Feb 15, 2025
you sure that you installed cmake before?
smirki commentedon Feb 16, 2025
I got the same error. Installing Cmake in my docker container worked for me.
IridiumMaster commentedon Feb 16, 2025
I installed cmake and compiled Llama.cpp and was confronted with this further error after re-running:
Unsloth: Saving tokenizer... Done.
Done.
Unsloth: Converting llama model. Can use fast conversion = False.
==((====))== Unsloth: Conversion from QLoRA to GGUF information
\ /| [0] Installing llama.cpp might take 3 minutes.
O^O/ _/ \ [1] Converting HF to GGUF 16bits might take 3 minutes.
\ / [2] Converting GGUF 16bits to ['q4_k_m'] might take 10 minutes each.
"-____-" In total, you will have to wait at least 16 minutes.
Unsloth: Installing llama.cpp. This might take 3 minutes...
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1735, in unsloth_save_pretrained_gguf
all_file_locations, want_full_precision = save_to_gguf(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1070, in save_to_gguf
raise RuntimeError(
RuntimeError: Unsloth: The file 'llama.cpp/llama-quantize' or 'llama.cpp/quantize' does not exist.
But we expect this file to exist! Maybe the llama.cpp developers changed the name?
IridiumMaster commentedon Feb 16, 2025
Running again (with CMake installed) after deleting the llama.cpp directory produces this gem:
-- Adding CPU backend variant ggml-cpu: -march=native
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindCURL.cmake:181 (find_package_handle_standard_args)
common/CMakeLists.txt:88 (find_package)
-- Configuring incomplete, errors occurred!
See also "/workspace/llama.cpp/build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1684, in unsloth_save_pretrained_gguf
makefile = install_llama_cpp_make_non_blocking()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 779, in install_llama_cpp_make_non_blocking
raise RuntimeError(f"*** Unsloth: Failed compiling llama.cpp using os.system(...) with error {check}. Please report this ASAP!")
RuntimeError: *** Unsloth: Failed compiling llama.cpp using os.system(...) with error 256. Please report this ASAP!
IridiumMaster commentedon Feb 16, 2025
Installed Curl and still got this:
Unsloth: Converting llama model. Can use fast conversion = False.
==((====))== Unsloth: Conversion from QLoRA to GGUF information
\ /| [0] Installing llama.cpp might take 3 minutes.
O^O/ _/ \ [1] Converting HF to GGUF 16bits might take 3 minutes.
\ / [2] Converting GGUF 16bits to ['q4_k_m'] might take 10 minutes each.
"-____-" In total, you will have to wait at least 16 minutes.
Unsloth: Installing llama.cpp. This might take 3 minutes...
Traceback (most recent call last):
File "/workspace/unsloth-cli-v2.py", line 235, in
run(args)
File "/workspace/unsloth-cli-v2.py", line 148, in run
model.save_pretrained_gguf(
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1735, in unsloth_save_pretrained_gguf
all_file_locations, want_full_precision = save_to_gguf(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/unsloth/save.py", line 1070, in save_to_gguf
raise RuntimeError(
RuntimeError: Unsloth: The file 'llama.cpp/llama-quantize' or 'llama.cpp/quantize' does not exist.
But we expect this file to exist! Maybe the llama.cpp developers changed the name?
AleefBilal commentedon Feb 20, 2025
@IridiumMaster How do you install llama.cpp?
IridiumMaster commentedon Feb 20, 2025
@AleefBilal , I tried it 3 different ways. I tried compiling it from the download that the first run of unsloth did, and then I tried deleting the directory, downloading and compiling per their instructions. Finally, I just had cmake and curl installed and I let unsloth do everything itself. Basically, every version of this failed. I'm doing this on runpod.
everythingisc00l commentedon Feb 21, 2025
Where your file llama-quantize? you sure that you have it with last build? you need to check your llama.cpp folder first.
AleefBilal commentedon Feb 27, 2025
@IridiumMaster Below are the working steps for conversion of a vanilla model to
GGUFusingUnslothandllama.cpp.The operation was performed using
RUNPODwithrunpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.041. git clone https://github.com/ggml-org/llama.cpp.git2. cd llama.cpp3. git checkout b33455. git submodule update --init --recursive6. make clean7. make all -j8. git log -1For better understanding, I've also attached a link to the Notebook that was used for the conversion.
GGUF conversion Notebook
danielhanchen commentedon Jun 19, 2026
This should be fixed now - sorry on the delay - please update with
uv pip install --upgrade unsloth unsloth_zoo --force-reinstall --no-cache-dir- if it's not fixed yet, it'll be in the next pip / PyPI release - if it's still not working after that, please open another issue - appreciate it again!