mirror of
https://github.com/hiyouga/LlamaFactory.git
synced 2026-03-22 01:43:22 +08:00
[misc] lint code (#9395)
This commit is contained in:
@@ -54,8 +54,7 @@ def launch():
|
||||
)
|
||||
|
||||
command = sys.argv.pop(1) if len(sys.argv) > 1 else "help"
|
||||
if is_env_enabled("USE_MCA"):
|
||||
# force use torchrun
|
||||
if is_env_enabled("USE_MCA"): # force use torchrun
|
||||
os.environ["FORCE_TORCHRUN"] = "1"
|
||||
|
||||
if command == "train" and (is_env_enabled("FORCE_TORCHRUN") or (get_device_count() > 1 and not use_ray())):
|
||||
|
||||
Reference in New Issue
Block a user