forked from menggehe/DRAW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_AGENDA.sh
45 lines (42 loc) · 1.77 KB
/
train_AGENDA.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
37
38
39
40
41
42
43
44
45
#!/bin/bash
data_prefix='graph2text/data/agenda/agenda'
model_dir='graph2text/data/data/agenda_model'
GPUID=$1
graph_encoder=$2
export CUDA_VISIBLE_DEVICES=${GPUID}
export OMP_NUM_THREADS=10
python -u graph2text/train.py \
-data $data_prefix \
-save_model $model_dir$RANDOM \
-world_size 1 \
-gpu_ranks 0 \
-save_checkpoint_steps 2 \
-valid_steps 2\
-report_every 2 \
-train_steps 320020 \
--optim adam \
-adam_beta1 0.9 \
-adam_beta2 0.98 \
-decay_method noam \
-learning_rate 0.00001 \
-max_grad_norm 0.0 \
-batch_size 512 \
-batch_type tokens \
-normalization tokens \
-dropout 0.3 \
-attention_dropout 0.3 \
-label_smoothing 0.1 \
-max_generator_batches 100 \
-param_init 0.0 \
-encoder_type $graph_encoder \
-decoder_type transformer \
-dec_layers 6 \
-enc_layers 6 \
-word_vec_size 512 \
-enc_rnn_size 448 \
-dec_rnn_size 512 \
-number_edge_types 13 \
-heads 8 \
-warmup_steps 16000 \
-train_from graph2text/data/model_agenda_cge_lw.pt \
-train_from2 graph2text/data/lstm_loss_two_cross \