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: correct gpt-oss Ollama generation prompt and add quantization wa… (#4087)
Irfan Ali30fac638adb1
diff --git a/unsloth/save.py b/unsloth/save.pyindex a07575c35d6..66d5ae2d604 100644--- a/unsloth/save.py+++ b/unsloth/save.py@@ -1925,6 +1925,20 @@ def unsloth_save_pretrained_gguf(arguments["push_to_hub"] = False # We handle upload ourselves# GPT-OSS needs mxfp4 save methodif is_gpt_oss:+ if quantization_method is not None:+ _qm = (+ quantization_method+ if isinstance(quantization_method, (list, tuple))+ else [quantization_method]+ )+ _ignored = [q for q in _qm if str(q).lower() != "mxfp4"]+ if _ignored:+ logger.warning_once(+ f"Unsloth: GPT-OSS does not support GGUF quantization "+ f"(requested: {', '.join(str(q) for q in _ignored)}). "+ f"Overriding to MXFP4 format. "+ f"Pass quantization_method=None to suppress this warning."+ )arguments["save_method"] = "mxfp4"else:arguments["save_method"] = "merged_16bit"