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 Han03c880f5dad5
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 9a26ad0060e..bfd7c8c5a59 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -190,6 +190,14 @@ try:
except:
pass
+# The following generation flags are not valid and may be ignored:
+try:
+ from transformers.generation.configuration_utils import logger as configuration_logger
+ configuration_logger.addFilter(HideLoggingMessage("following generation flags"))
+ del configuration_logger
+except:
+ pass
+
# Gemma3 It is strongly recommended to train Gemma3 models with the `eager`
try:
from transformers.models.gemma3.modeling_gemma3 import logger as gemma3_logger