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 Han4017c470b28d
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 5f0b4e0552c..45d32c8bc8e 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1175,7 +1175,6 @@ LOGITS_ERROR_STRING = \"os.environ['UNSLOTH_RETURN_LOGITS'] = '1'\n"\"... trainer.train() ..."-def warn_logits_error(*args, **kwargs): warnings.warn(LOGITS_ERROR_STRING)class EmptyLogits:def __init__(self): returndef raise_logits_error(*args, **kwargs): raise NotImplementedError(LOGITS_ERROR_STRING)@@ -1183,8 +1182,8 @@ class EmptyLogits:def raise_getattr_error(self, attr):if attr == "to": return self.return_nonereturn self.raise_logits_error- __getitem__ = self.raise_logits_error- __getattr__ = self.raise_getattr_error+ __getitem__ = raise_logits_error+ __getattr__ = raise_getattr_errordef __repr__(self): return LOGITS_ERROR_STRINGdef __str__ (self): return LOGITS_ERROR_STRINGpass