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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Let decision models export to GGUF on a fresh install (#15864)
Nilayab6116625eb0
diff --git a/tests/test_decision_gguf.py b/tests/test_decision_gguf.pyindex 3b2c8c2e342..083440af588 100644--- a/tests/test_decision_gguf.py+++ b/tests/test_decision_gguf.py@@ -337,11 +337,20 @@ def test_converter_without_decision_support_stages_the_pinned_tag(tmp_path, monkmonkeypatch.setattr(decision_gguf, "_llama_cpp_folder", lambda: old)import unsloth_zoo.llama_cpp as zoo+ releases = [{"tag_name": "b11946-mix-a54b8dd"}, {"tag_name": "b11443-mix-d65395f"}]+ monkeypatch.setattr(zoo, "_FORK_RELEASE_TAGS", {})+ monkeypatch.setattr(+ zoo,+ "_requests_get_with_retries",+ lambda *a, **k: types.SimpleNamespace(json = lambda: releases),+ )asked = []monkeypatch.setattr(- zoo, "_stage_converter_sources", lambda tag, *a, **k: asked.append(tag) or good+ zoo,+ "_stage_converter_sources",+ lambda tag, *a, **k: asked.append(tag) or (good if "-mix-" in str(tag) else None),)- assert decision_gguf._converter_dir() == good and asked == ["b11443"]+ assert decision_gguf._converter_dir() == good and asked == ["b11443-mix-d65395f"]monkeypatch.setattr(zoo, "_stage_converter_sources", lambda tag, *a, **k: None)with pytest.raises(RuntimeError, match = "b11443"):decision_gguf._converter_dir()diff --git a/unsloth/models/decision_gguf.py b/unsloth/models/decision_gguf.pyindex 24468c2a44f..fe2ecd699d0 100644--- a/unsloth/models/decision_gguf.py+++ b/unsloth/models/decision_gguf.py@@ -363,8 +363,8 @@ def _converter_dir(print_output = False) -> Path:tag = os.environ.get("UNSLOTH_LLAMA_CPP_CONVERTER_TAG", "").strip() or DECISION_LLAMA_CPP_TAGstage = Nonetry:- from unsloth_zoo.llama_cpp import _stage_converter_sources- stage = _stage_converter_sources(tag)+ from unsloth_zoo.llama_cpp import _fork_release_tag_for, _stage_converter_sources+ stage = _stage_converter_sources(_fork_release_tag_for(tag))except Exception as error:if print_output:print(f"Unsloth: could not stage llama.cpp {tag} converter sources: {error}")