mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-15 16:18:10 +08:00
fix envs
Former-commit-id: d5e150cfb98f8216713415564ab386b8320c88cb
This commit is contained in:
parent
4f04e2ed93
commit
351e80a656
@ -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