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 Hanffe5d81c4f6a
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index a2604669158..c309e1c1cda 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -100,8 +100,9 @@ class HideLoggingMessage(logging.Filter):
pass
# The speedups for torchdynamo mostly come wih GPU Ampere or higher and which is not detected here.
-import transformers.training_args.logger
-transformers.training_args.logger.addFilter(HideLoggingMessage("The speedups"))
+from transformers.training_args import logger as transformers_training_args_logger
+transformers_training_args_logger.addFilter(HideLoggingMessage("The speedups"))
+del transformers_training_args_logger
# =============================================