From fa3e8359835107aa9ab8e3ae604ed61cad407bf8 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期五, 14 六月 2024 10:38:02 +0800
Subject: [PATCH] update with main (#1816)

---
 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