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.

Disable stats when modelscope is being used

Datta Nimmaturi67caa2123108
diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py
index b38c5860b30..a2e1d780129 100644
--- a/unsloth/models/_utils.py
+++ b/unsloth/models/_utils.py
@@ -1197,7 +1197,8 @@ 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:
+ global USE_MODELSCOPE
+ if "UNSLOTH_DISABLE_STATISTICS" in os.environ or USE_MODELSCOPE:
return
if local_files_only:
return