Skip to content

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

decoding

游雁e42c693f0b43
diff --git a/funasr/models/llm_asr/model.py b/funasr/models/llm_asr/model.py
index 2eea19b2e..3c2bff8cb 100644
--- a/funasr/models/llm_asr/model.py
+++ b/funasr/models/llm_asr/model.py
@@ -420,6 +420,8 @@ class LLMASR2(nn.Module):
layer_id = int(name[beg + 1 : end - 1])
if layer_id in freeze_layer_num:
param.requires_grad = False
+ else:
+ param.requires_grad = False
else:
param.requires_grad = False