add freeze options

This commit is contained in:
pengzhendong
2025-12-29 16:58:18 +08:00
parent 0882fd55e7
commit 023d22efd8
3 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,10 @@ python tools/scp2jsonl.py \
## Finetune
Modify the `audio_encoder_conf.freeze`, `audio_adaptor_conf.freeze`, and `llm_conf.freeze` in `finetune.sh`.
Set the `freeze` parameter of the modules to be fine-tuned to false(by default, only the LLM is fine-tuned).
```
bash finetune.sh
```

View File

@ -53,6 +53,10 @@ python tools/scp2jsonl.py \
## 启动训练
修改 `finetune.sh` 中的 `audio_encoder_conf.freeze`, `audio_adaptor_conf.freeze``llm_conf.freeze`
将需要微调的模块 `freeze` 设置成 `false`(默认只微调 llm
```
bash finetune.sh
```

View File

@ -68,4 +68,7 @@ ${train_tool} \
++train_conf.use_deepspeed=false \
++train_conf.deepspeed_config=${deepspeed_config} \
++optim_conf.lr=0.0002 \
++audio_encoder_conf.freeze=true \
++audio_adaptor_conf.freeze=true \
++llm_conf.freeze=false \
++output_dir="${output_dir}" &> ${log_file}