From 59c3461c6863f87faf925f541b44208bcb8c2cce Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Mon, 28 Jul 2025 08:28:18 -0700 Subject: [PATCH] Update _utils.py --- unsloth/models/_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 4f004ff93a..3851279af3 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):