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 Han8f2db72aec3d
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 460b23bd0d9..62881db09b9 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -147,6 +147,14 @@ try:
except:
pass
+# The model weights are not tied. Please use the `tie_weights` method before using the `infer_auto_device` function.
+try:
+ from accelerate.utils.modeling import logger as accelerate_utils_modeling_logger
+ accelerate_utils_modeling_logger.addFilter(HideLoggingMessage("The model weights are not tied"))
+ del accelerate_utils_modeling_logger
+except:
+ pass
+
# =============================================
# =============================================