[data] fix mm pluigin for qwen omni video training (#9388)

Co-authored-by: frozenleaves <frozen@Mac.local>
This commit is contained in:
魅影
2025-11-03 11:44:27 +08:00
committed by GitHub
parent 767b344fb4
commit 215580c77d
2 changed files with 7 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ def launch():
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())):
# launch distributed training
nnodes = os.getenv("NNODES", "1")