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
Fix GGUF (#654)
Daniel Han12d294bcb355
diff --git a/unsloth/save.py b/unsloth/save.pyindex 940feb40f9c..f8f884a9d3b 100644--- a/unsloth/save.py+++ b/unsloth/save.py@@ -853,9 +853,13 @@ def save_to_gguf(model_dtype = "f16" if model_dtype == "float16" else "bf16"# Convert quantization_method to list- quantization_method = \- quantization_method if type(quantization_method) is list else list(quantization_method)-+ if isinstance(quantization_method, list): pass+ elif isinstance(quantization_method, str): quantization_method = [ quantization_method, ]+ elif isinstance(quantization_method, tuple): quantization_method = list(quantization_method)+ else:+ raise TypeError("Unsloth: quantization_method can only be a string or a list of strings")+ pass+# Check if bfloat16 is supportedif model_dtype == "bf16" and not torch.cuda.is_bf16_supported():logger.warning(