From 47209220c653e2faa2c6c83801874b9f1df7d7dc Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期五, 14 六月 2024 09:49:22 +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