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
Bug fixes (#257)
Daniel Han64d847bedea2
diff --git a/pyproject.toml b/pyproject.tomlindex 3ea50ca00e5..324e01157ba 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -178,6 +178,9 @@ colab-no-deps = ["xformers","bitsandbytes",]+colab = [+ "unsloth[cu121]",+]colab-ampere = ["unsloth[colab-ampere-torch220]","packaging",diff --git a/unsloth/save.py b/unsloth/save.pyindex 05ff748db21..5970d74d11f 100644--- a/unsloth/save.py+++ b/unsloth/save.py@@ -684,6 +684,9 @@ def save_to_gguf():from transformers.models.llama.modeling_llama import logger+ if quantization_method.startswith("iq2"):+ raise RuntimeError("Unsloth: Currently iq2 type quantizations aren't supported yet - sorry!")+# Careful convert.py is only for Llama / Mistral based archsuse_fast_convert = Falseif model_type == "llama": use_fast_convert = True@@ -743,8 +746,11 @@ def save_to_gguf(if first_conversion == "f32" : passelif first_conversion == "f16" : passelif first_conversion == "q8_0":- logger.warning_once("Unsloth: We must use f16 for quantization first.")- first_conversion = "f16"+ logger.warning_once(+ "Unsloth: Using q8_0 for the `first_conversion` will lose a bit of accuracy, "\+ "but saves disk space!"+ )+ # first_conversion = "f16"passpass