Merge pull request #3857 from Datta0/modelscope_stats

[ModelScope] Disable stats when modelscope is being used
This commit is contained in:
Daniel Han 2026-01-06 02:56:55 -08:00 committed by GitHub
commit 6b04af4f49

View file

@ -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:
if (
"UNSLOTH_DISABLE_STATISTICS" in os.environ
or os.environ.get("UNSLOTH_USE_MODELSCOPE", "0") == "1"
):
return
if local_files_only:
return