forked from UKPLab/kg2text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_AGENDA.sh
47 lines (44 loc) · 1.8 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
46
47
#!/bin/bash
data_prefix='graph2text/data/agenda/agenda'
model_dir='graph2text/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 5000 \
-valid_steps 5000 \
-report_every 50 \
-train_steps 400000 \
-warmup_steps 16000 \
--share_decoder_embeddings \
-share_embeddings \
--position_encoding \
--optim adam \
-adam_beta1 0.9 \
-adam_beta2 0.98 \
-decay_method noam \
-learning_rate 0.5 \
-max_grad_norm 0.0 \
-batch_size 4096 \
-batch_type tokens \
-normalization tokens \
-dropout 0.3 \
-attention_dropout 0.3 \
-label_smoothing 0.1 \
-max_generator_batches 100 \
-param_init 0.0 \
-param_init_glorot \
-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