diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 9c899e96e9..c7602ed193 100644 --- a/unsloth/models/_utils.py +++ b/unsloth/models/_utils.py @@ -226,7 +226,7 @@ class _RaiseUninitialized(logging.Handler): 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"{record}") pass class RaiseUninitialized: def __init__(self):