From 5ebcba3d611cc8caca3c25ccbc937b60487f12fb Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 13 六月 2024 19:16:19 +0800
Subject: [PATCH] decoding

---
 funasr/models/llm_asr/model.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/funasr/models/llm_asr/model.py b/funasr/models/llm_asr/model.py
index 80c33fc..2d229b9 100644
--- a/funasr/models/llm_asr/model.py
+++ b/funasr/models/llm_asr/model.py
@@ -422,7 +422,7 @@
                         layer_id = int(name[beg + 1 : end - 1])
                         if layer_id < freeze_layer_num:
                             param.requires_grad = False
-                    elif not name.startswith("audio_encoder.ln_post"):
+                    elif ".ln_post." not in name:
                         param.requires_grad = False
                 else:
                     param.requires_grad = False

--
Gitblit v1.9.1