Skip to content

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.

Update _utils.py

Daniel Han4475041c3692
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 5326c09b52b..a50c8be2bbb 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1176,7 +1176,7 @@ LOGITS_ERROR_STRING = \
"... trainer.train() ..."
def raise_logits_error(*args, **kwargs): raise NotImplementedError(LOGITS_ERROR_STRING)
-class EmptyLogits(torch.Tensor):
+class EmptyLogits:
def __init__(self): return
__getitem__ = raise_logits_error
__getattr__ = raise_logits_error