游雁
2023-12-07 99340740f567b8cfbfb5e55a8b7529937f2e6a1e
funasr/cli/train_cli.py
@@ -46,7 +46,7 @@
   
   local_rank = int(os.environ.get('LOCAL_RANK', 0))
   # Check if we are using DDP or FSDP
   use_ddp = 'WORLD_SIZE' in os.environ and os.environ["WORLD_SIZE"] > 1
   use_ddp = 'WORLD_SIZE' in os.environ and int(os.environ["WORLD_SIZE"]) > 1
   use_fsdp = kwargs.get("use_fsdp", None)
   if use_ddp or use_fsdp:
      dist.init_process_group(backend=kwargs.get("backend", "nccl"), init_method='env://')