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 Hane812382eafb9
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 4f004ff93af..3851279af3c 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -225,8 +225,8 @@ class _RaiseUninitialized(logging.Handler):
raise Exception(
f"Unsloth: Critical error since some weights are not initialized.\n"\
f"Please try updating Unsloth, transformers and timm via:\n"\
- f"`pip install --upgrade --force-reinstall --no-cache-dir --no-deps unsloth unsloth_zoo transformers timm`\n"\
- f"".str(record))
+ f"`pip install --upgrade --force-reinstall --no-cache-dir --no-deps unsloth unsloth_zoo transformers timm`\n"
+ )
pass
class RaiseUninitialized:
def __init__(self):