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 llama.py

Daniel Han1144bbb15c5c
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index 0fcfe2a2707..ee261b0f702 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -1152,6 +1152,12 @@ class FastLlamaModel:
f"\ / Bfloat16 = {str(SUPPORTS_BFLOAT16).upper()}. FA [Xformers = {xformers_version}. FA2 = {HAS_FLASH_ATTENTION}]\n"\
f' "-____-" Free Apache license: http://github.com/unslothai/unsloth'
print(statistics)
+
+ # Warn about fast transfers
+ if os.environ.get("HF_HUB_ENABLE_HF_TRANSFER", "0") == "1":
+ logger.warning_once("Unsloth: Fast downloading is enabled - ignore downloading bars which are red colored!")
+ pass
+
model_patcher.pre_patch()
get_statistics() # For debugging - we use a download counter to see if environments are not breaking