mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2026-08-17 13:35:44 +08:00
[v1] support training with fsdp2 (#9773)
Co-authored-by: frozenleaves <frozen@Mac.local> Co-authored-by: Yaowei Zheng <hiyouga@buaa.edu.cn>
This commit is contained in:
@@ -28,3 +28,11 @@ def find_available_port() -> int:
|
||||
def is_env_enabled(env_var: str, default: str = "0") -> bool:
|
||||
"""Check if the environment variable is enabled."""
|
||||
return os.getenv(env_var, default).lower() in ["true", "yes", "on", "t", "y", "1"]
|
||||
|
||||
|
||||
def use_ray() -> bool:
|
||||
return False
|
||||
|
||||
|
||||
def use_kt() -> bool:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user