From 70df8c97dd804da25fae3e99fb2372f73af5bb12 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 13 六月 2024 19:35:57 +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 2d229b9..45e56c3 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 ".ln_post." not in name:
+                    elif "ln_post." not in name:
                         param.requires_grad = False
                 else:
                     param.requires_grad = False

--
Gitblit v1.9.1