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
Update save.py
Daniel Hanb140367a8780
diff --git a/unsloth/save.py b/unsloth/save.pyindex 66e2ec6bf0e..b875e9b2d19 100644--- a/unsloth/save.py+++ b/unsloth/save.py@@ -1483,14 +1483,23 @@ def create_ollama_modelfile(tokenizer, gguf_location):modelfile = modelfile\.replace("{{", "⚫@✅#🦥")\- .replace("}}", "⚡@🦥#⛵")\- .format(+ .replace("}}", "⚡@🦥#⛵")++ if "__EOS_TOKEN__" in modelfile:+ modelfile = modelfile.format(__FILE_LOCATION__ = gguf_location,- )\+ __EOS_TOKEN__ = tokenizer.eos_token,+ )+ else:+ modelfile = modelfile.format(+ __FILE_LOCATION__ = gguf_location,+ )+ pass++ modelfile = modelfile\.replace("⚫@✅#🦥", "{{")\.replace("⚡@🦥#⛵", "}}")\.rstrip()- passreturn modelfilepass