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 Han890c30fd4632
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index bdb8f38a50a..0377127860e 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -413,6 +413,16 @@ try:
except:
pass
+# Flax classes are deprecated and will be removed in Diffusers v1.0.0.
+try:
+ from diffusers.utils import logger as diffusers_logger
+
+ diffusers_logger.addFilter(HideLoggingMessage("are deprecated"))
+ del diffusers_logger
+except:
+ pass
+
+
# Errors out on
# Some weights of Gemma3nForConditionalGeneration were not initialized from the model checkpoint
from transformers.modeling_utils import logger as transformers_logger