mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
fix envs
Former-commit-id: 8ee8ac6eba3e2916cf7c6401a0e9d803b3ff88ba
This commit is contained in:
parent
df4aec7e72
commit
32a65e89e5
@ -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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user