Skip to content

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

decoding

游雁70df8c97dd80
diff --git a/funasr/models/llm_asr/model.py b/funasr/models/llm_asr/model.py
index 2d229b95d..45e56c3dd 100644
--- a/funasr/models/llm_asr/model.py
+++ b/funasr/models/llm_asr/model.py
@@ -422,7 +422,7 @@ class LLMASR2(nn.Module):
layer_id = int(name[beg + 1 : end - 1])
if layer_id < freeze_layer_num:
param.requires_grad = False
- elif ".ln_post." not in name:
+ elif "ln_post." not in name:
param.requires_grad = False
else:
param.requires_grad = False