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.

[pre-commit.ci] auto fixes from pre-commit.com hooks

pre-commit-ci[bot]b73f6a9be0d7
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index 3cbb85ff4d6..e6c4a128740 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1197,7 +1197,10 @@ def get_statistics(local_files_only = False):
# You can disable this by setting UNSLOTH_DISABLE_STATISTICS
import os
- if "UNSLOTH_DISABLE_STATISTICS" in os.environ or os.environ.get("UNSLOTH_USE_MODELSCOPE", "0") == "1":
+ if (
+ "UNSLOTH_DISABLE_STATISTICS" in os.environ
+ or os.environ.get("UNSLOTH_USE_MODELSCOPE", "0") == "1"
+ ):
return
if local_files_only:
return