Check env var explicitly
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
9a5b824903
commit
1d84ba5287
1 changed files with 1 additions and 2 deletions
|
|
@ -1197,8 +1197,7 @@ def get_statistics(local_files_only = False):
|
|||
# You can disable this by setting UNSLOTH_DISABLE_STATISTICS
|
||||
import os
|
||||
|
||||
global USE_MODELSCOPE
|
||||
if "UNSLOTH_DISABLE_STATISTICS" in os.environ or USE_MODELSCOPE:
|
||||
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