From 026b8e3fdc981ceeac18257319fb4b1b7db2f8b5 Mon Sep 17 00:00:00 2001
From: shixian <shixian@U-09RYG5WD-2244.local>
Date: 星期四, 05 十二月 2024 19:29:19 +0800
Subject: [PATCH] update sensevoice small with timestamp
---
funasr/bin/train_ds.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/funasr/bin/train_ds.py b/funasr/bin/train_ds.py
index 69c2712..dc7fb42 100644
--- a/funasr/bin/train_ds.py
+++ b/funasr/bin/train_ds.py
@@ -84,9 +84,6 @@
dist.init_process_group(
backend=kwargs.get("backend", "nccl"),
init_method="env://",
- find_unused_parameters=kwargs.get("train_conf", {}).get(
- "find_unused_parameters", False
- ),
)
torch.cuda.set_device(local_rank)
@@ -137,7 +134,7 @@
**kwargs.get("train_conf"),
)
- model = trainer.warp_model(model)
+ model = trainer.warp_model(model, **kwargs)
kwargs["device"] = int(os.environ.get("LOCAL_RANK", 0))
trainer.device = int(os.environ.get("LOCAL_RANK", 0))
--
Gitblit v1.9.1