forked from UKPLab/kg2text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_WEBNLG.sh
47 lines (44 loc) · 1.8 KB
/
train_WEBNLG.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/webnlg/webnlg'
model_dir='graph2text/data/webnlg_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 250000 \
-warmup_steps 8000 \
--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 1024 \
-batch_type tokens \
-normalization tokens \
-dropout 0.4 \
-attention_dropout 0.1 \
-label_smoothing 0.1 \
-max_generator_batches 100 \
-param_init 0.0 \
-param_init_glorot \
-encoder_type $graph_encoder \
-decoder_type transformer \
-dec_layers 4 \
-enc_layers 2 \
-word_vec_size 256 \
-enc_rnn_size 256 \
-dec_rnn_size 256 \
-number_edge_types 4 \
-heads 4