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 Han0ea0802d4726
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex db27eb8a847..3686717b2ce 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -467,7 +467,7 @@ def patch_tokenizer(model, tokenizer):check_pad_token = tokenizer(possible_pad_token, add_special_tokens = False).input_idsif len(check_pad_token) != 1:possible_pad_token = None- if check_pad_token[0] >= config.vocab_size:+ if check_pad_token[0] >= model.config.vocab_size:possible_pad_token = Nonepass