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 Han0487293f4cd6
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.pyindex 90cbae21318..242e30675f9 100644--- a/unsloth/models/_utils.py+++ b/unsloth/models/_utils.py@@ -1178,14 +1178,14 @@ LOGITS_ERROR_STRING = \def raise_logits_error(*args, **kwargs): raise NotImplementedError(LOGITS_ERROR_STRING)class EmptyLogits:def __init__(self): return- # __getitem__ = raise_logits_error- # __getattr__ = raise_logits_error+ __getitem__ = raise_logits_error+ __getattr__ = raise_logits_errordef __repr__(self): return LOGITS_ERROR_STRINGdef __str__ (self): return LOGITS_ERROR_STRINGpassEMPTY_LOGITS = EmptyLogits()functions = dir(torch.Tensor)-for function in functions:- try: exec(f"EMPTY_LOGITS.{function} = raise_logits_error", globals(), locals())- except: continue-pass+# for function in functions:+# try: exec(f"EMPTY_LOGITS.{function} = raise_logits_error", globals(), locals())+# except: continue+# pass