From ae49b2a8e1bc676e6014d8a12ebeec947b655e3e Mon Sep 17 00:00:00 2001
From: 莫拉古 <61447879+yechaoying@users.noreply.github.com>
Date: 星期五, 29 十一月 2024 09:55:43 +0800
Subject: [PATCH] 变量名写错了 (#2249)
---
funasr/bin/train_ds.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/funasr/bin/train_ds.py b/funasr/bin/train_ds.py
index 415904e..5b1eeaa 100644
--- a/funasr/bin/train_ds.py
+++ b/funasr/bin/train_ds.py
@@ -81,7 +81,10 @@
deepspeed.init_distributed(dist_backend=kwargs.get("backend", "nccl"))
elif use_ddp or use_fsdp:
logging.info(f"use_ddp: {use_ddp}, use_fsdp: {use_fsdp}")
- dist.init_process_group(backend=kwargs.get("backend", "nccl"), init_method="env://")
+ dist.init_process_group(
+ backend=kwargs.get("backend", "nccl"),
+ init_method="env://",
+ )
torch.cuda.set_device(local_rank)
# rank = dist.get_rank()
--
Gitblit v1.9.1