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 Han9313007ded84
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 7d6bbfb78b2..b44e4c479d2 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1248,7 +1248,8 @@ LOGITS_ERROR_STRING = \
'set the environment variable `UNSLOTH_RETURN_LOGITS` to `"1" BEFORE starting to train ie before `trainer.train()`. For example:\n\n'\
"import os\n"\
"os.environ['UNSLOTH_RETURN_LOGITS'] = '1'\n"\
- "... trainer.train() ..."
+ "... trainer.train() ...\n"\
+ "No need to restart your console - just add `os.environ['UNSLOTH_RETURN_LOGITS'] = '1'` before trainer.train() and re-run the cell!"
def raise_logits_error(*args, **kwargs): raise NotImplementedError(LOGITS_ERROR_STRING)
def return_none(*args, **kwargs): return None