Former-commit-id: 8ee8ac6eba3e2916cf7c6401a0e9d803b3ff88ba
This commit is contained in:
hiyouga 2024-05-19 18:27:18 +08:00
parent df4aec7e72
commit 32a65e89e5

View File

@ -225,4 +225,4 @@ def try_download_model_from_ms(model_args: "ModelArguments") -> str:
def use_modelscope() -> bool: 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"]