Create train.sh
Browse files- exp/train.sh +22 -0
exp/train.sh
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then
|
2 |
+
log "Stage 0: finetune"
|
3 |
+
base_lr=0.004
|
4 |
+
lr_epochs=100
|
5 |
+
lr_batches=100000
|
6 |
+
|
7 |
+
./pruned_transducer_stateless7_streaming/finetune.py \
|
8 |
+
--world-size 7 \
|
9 |
+
--master-port 18181 \
|
10 |
+
--num-epochs 30 \
|
11 |
+
--start-epoch 1 \
|
12 |
+
--init-modules "encoder" \
|
13 |
+
--exp-dir ./pruned_transducer_stateless7_streaming/exp1 \
|
14 |
+
--use-fp16 1 \
|
15 |
+
--base-lr $base_lr \
|
16 |
+
--lr-epochs $lr_epochs \
|
17 |
+
--lr-batches $lr_batches \
|
18 |
+
--bpe-model data/lang_bpe_500/bpe.model \
|
19 |
+
--do-finetune True \
|
20 |
+
--finetune-ckp /home/lishaojie/icefall/egs/commonvoice/ASR/pruned_transducer_stateless7_streaming/exp/english_pretrain/epoch-30.pt \
|
21 |
+
--max-duration 200
|
22 |
+
fi
|