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
GGUF export: keep remote_code_approved out of the save_pretrained kwargs (#17404)
Daniel Han8049c6139cb7
diff --git a/unsloth/save.py b/unsloth/save.pyindex eb2a2ebea6a..90e4ff0e835 100644--- a/unsloth/save.py+++ b/unsloth/save.py@@ -5216,6 +5216,7 @@ def unsloth_save_pretrained_gguf(del arguments["imatrix_file"] # only used by the gguf quantize step, not the 16bit mergedel arguments["_gguf_prewarm_ok"] # a local decision, not a save_pretrained kwargdel arguments["merge_is_disposable"] # decides reclamation, not how the merge is written+ del arguments["remote_code_approved"] # gates the converter, not a save_pretrained kwarg# Preserve the requested output before reusing a non-PEFT checkpoint as input. Same definition the preflight sized, so it measured the disk these files land on.gguf_directory = _gguf_output_directory(save_directory)