Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

update

游雁334422ead333
diff --git a/funasr/train_utils/trainer.py b/funasr/train_utils/trainer.py
index c443c6f00..49b9fbc4b 100644
--- a/funasr/train_utils/trainer.py
+++ b/funasr/train_utils/trainer.py
@@ -198,6 +198,8 @@ class Trainer:
for k in dst_state.keys():
if not k.startswith("module.") and "module."+k in src_state.keys():
k_ddp = "module."+k
+ elif k.startswith("module.") and "module."+k not in src_state.keys():
+ k_ddp = k.replace("module.", "", 1)
else:
k_ddp = k
if k_ddp in src_state.keys():