This commit is contained in:
hiyouga 2024-05-19 18:27:18 +08:00
parent 1ebc890a5f
commit 8ee8ac6eba
1 changed files with 1 additions and 1 deletions

View File

@ -225,4 +225,4 @@ def try_download_model_from_ms(model_args: "ModelArguments") -> str:
def use_modelscope() -> bool:
return bool(int(os.environ.get("USE_MODELSCOPE_HUB", "0")))
return os.environ.get("USE_MODELSCOPE_HUB", "0").lower() in ["true", "1"]