mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
add missing backslash
This commit is contained in:
parent
26c022665b
commit
973fcbc585
@ -55,7 +55,8 @@ torchrun --nproc_per_node 8 ./whisper_llm_zh/train.py \
|
|||||||
--deepspeed \
|
--deepspeed \
|
||||||
--deepspeed_config ./whisper_llm_zh/ds_config_zero1.json \
|
--deepspeed_config ./whisper_llm_zh/ds_config_zero1.json \
|
||||||
--use-flash-attn True \
|
--use-flash-attn True \
|
||||||
--use-lora False --unfreeze-llm False
|
--use-lora False \
|
||||||
|
--unfreeze-llm False
|
||||||
|
|
||||||
# Then, we jointly train the projector and LLM LoRA modules.
|
# Then, we jointly train the projector and LLM LoRA modules.
|
||||||
torchrun --nproc_per_node 8 ./whisper_llm_zh/train.py \
|
torchrun --nproc_per_node 8 ./whisper_llm_zh/train.py \
|
||||||
@ -67,7 +68,8 @@ torchrun --nproc_per_node 8 ./whisper_llm_zh/train.py \
|
|||||||
--deepspeed \
|
--deepspeed \
|
||||||
--deepspeed_config ./whisper_llm_zh/ds_config_zero1.json \
|
--deepspeed_config ./whisper_llm_zh/ds_config_zero1.json \
|
||||||
--use-flash-attn True \
|
--use-flash-attn True \
|
||||||
--use-lora True --unfreeze-llm True
|
--use-lora True \
|
||||||
|
--unfreeze-llm True \
|
||||||
--pretrained-model-path ./whisper_llm_zh/exp_test/epoch-3.pt
|
--pretrained-model-path ./whisper_llm_zh/exp_test/epoch-3.pt
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -77,11 +79,11 @@ mkdir -p models/whisper models/qwen models/checkpoint
|
|||||||
huggingface-cli download --local-dir models/checkpoint yuekai/icefall_asr_aishell_whisper_qwen2_1.5B
|
huggingface-cli download --local-dir models/checkpoint yuekai/icefall_asr_aishell_whisper_qwen2_1.5B
|
||||||
|
|
||||||
# For aishell fine-tuned whisper model
|
# For aishell fine-tuned whisper model
|
||||||
huggingface-cli download --local-dir models/whisper yuekai/icefall_asr_aishell_whisper exp_large_v2/whisper-large-v2-aishell1-epoch-10-avg-6.pt
|
huggingface-cli download --local-dir models/whisper yuekai/icefall_asr_aishell_whisper exp_large_v2/whisper-large-v2-aishell1-epoch-10-avg-6.pt
|
||||||
# For multi-hans fine-tuned whisper model
|
# For multi-hans fine-tuned whisper model
|
||||||
# huggingface-cli download --local-dir models/whisper yuekai/icefall_asr_multi-hans-zh_whisper v1.1/whisper-large-v2-multi-hans-zh-epoch-3-avg-10.pt
|
# huggingface-cli download --local-dir models/whisper yuekai/icefall_asr_multi-hans-zh_whisper v1.1/whisper-large-v2-multi-hans-zh-epoch-3-avg-10.pt
|
||||||
|
|
||||||
huggingface-cli download --local-dir models/qwen Qwen/Qwen2-7B-Instruct
|
huggingface-cli download --local-dir models/qwen Qwen/Qwen2-7B-Instruct
|
||||||
|
|
||||||
mkdir -p whisper_llm_zh/exp_aishell_whisper_qwen2_1.5B
|
mkdir -p whisper_llm_zh/exp_aishell_whisper_qwen2_1.5B
|
||||||
ln -s models/checkpoint/epoch-10-avg-5.pt whisper_llm_zh/exp_aishell_whisper_qwen2_1.5B/epoch-999.pt
|
ln -s models/checkpoint/epoch-10-avg-5.pt whisper_llm_zh/exp_aishell_whisper_qwen2_1.5B/epoch-999.pt
|
||||||
@ -94,5 +96,6 @@ python3 ./whisper_llm_zh/decode.py \
|
|||||||
--epoch 999 --avg 1 \
|
--epoch 999 --avg 1 \
|
||||||
--manifest-dir data/fbank \
|
--manifest-dir data/fbank \
|
||||||
--use-flash-attn True \
|
--use-flash-attn True \
|
||||||
--use-lora True --dataset aishell
|
--use-lora True \
|
||||||
|
--dataset aishell
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user