-
Notifications
You must be signed in to change notification settings - Fork 2
/
train.sh
36 lines (33 loc) · 812 Bytes
/
train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#shellcheck disable=SC2034
CUDA_VISIBLE_DEVICES=1
BASE_PATH=log/piSLRTc
python -m train \
--mode "train" \
--log_dir $BASE_PATH \
--data_path "../data-bin/PHOENIX2014T/" \
--input_size 1024 \
--embedding_dim 512 \
--hidden_size 512 \
--num_heads 8 \
--num_layers 6 \
--max_relative_positions 16 \
--norm_type "batch" \
--activation_type "softsign" \
--reg_loss_weight 1.0 \
--tran_loss_weight 1.0 \
--label_smoothing 0.0001 \
--optimizer "adam" \
--slr_learning_rate 0.001 \
--slt_learning_rate 0.2 \
--warmup_steps 4000 \
--weight_decay 0.0001\
--decrease_factor 0.5 \
--patience 5 \
--reg_beam_size 5 \
--max_output_length 300 \
--text_beam_size 5 \
--alpha 2 \
--batch_size 5 \
--check_point $BASE_PATH/ep.pkl \
--max_epoch 60 \
--print_step 100 \