Merge pull request #3857 from Datta0/modelscope_stats
[ModelScope] Disable stats when modelscope is being used
This commit is contained in:
commit
6b04af4f49
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue