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 _utils.py
Daniel Han374e0d92948d
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 82bd4c979d6..8f0fc305684 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -59,7 +59,7 @@ import warnings, subprocess, re, inspect, psutil, os, mathfrom packaging.version import Versionfrom unsloth_zoo.tokenizer_utils import (- patch_tokenizer,+ patch_tokenizer as _patch_tokenizer,)from unsloth_zoo.patching_utils import (patch_compiling_bitsandbytes,@@ -983,3 +983,11 @@ def patch_gradient_accumulation_fix(Trainer):exec(function, globals())Trainer.training_step = _unsloth_training_steppass+++def patch_tokenizer(model, tokenizer):+ model, tokenizer = _patch_tokenizer(model, tokenizer)+ if model is not None:+ model.config.update({"unsloth_version" : __version__})+ return model, tokenizer+pass