Disable stats when modelscope is being used
This commit is contained in:
parent
e7fe25ee43
commit
9a5b824903
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue