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 Han7094b4843a96
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 8c399f378ea..981ff815772 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -317,6 +317,14 @@ try:
except:
pass
+# Environment variable `HF_TOKEN` is set
+try:
+ from huggingface_hub._login.utils import logger as huggingface_hub_logger
+ huggingface_hub_logger.addFilter(HideLoggingMessage("`HF_TOKEN`"))
+ del huggingface_hub_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