unsloth/studio/backend/core
Roland Tannous 7adb69581e Fix GGUF export cwd confusion: remove os.chdir, use absolute paths
Remove os.chdir(save_directory) from export.py which was causing all of
unsloth-zoo's relative-path internals (check_llama_cpp, use_local_gguf,
_download_convert_hf_to_gguf) to resolve against the export directory
instead of the repo root. This caused llama.cpp to be cloned inside each
export dir and destroyed the repo root's llama-server build on cleanup.

Now passes absolute paths to save_pretrained_gguf so unsloth resolves
llama.cpp from the repo root where setup.sh already built it.

Also builds llama-quantize in setup.sh (needed by unsloth-zoo's export
pipeline) and symlinks it to llama.cpp root for check_llama_cpp().
2026-02-25 03:30:54 +04:00
..
export Fix GGUF export cwd confusion: remove os.chdir, use absolute paths 2026-02-25 03:30:54 +04:00
inference Switch GGUF backend from /v1/completions to /v1/chat/completions 2026-02-24 19:21:01 +04:00
training Cap dataset.map num_proc on multi-GPU machines to prevent fork deadlocks 2026-02-23 14:25:31 +00:00
__init__.py refactor: remove gradio dependency from training backend 2026-02-13 09:25:49 +00:00