-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yaml
50 lines (44 loc) · 998 Bytes
/
config.yaml
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
48
49
50
# general
gpu_id: 0
use_gpu: True
seed: 19971003
state: INFO
dataset: webnlg
num_samples: all # 500
reproducibility: True
mode: train
# checkpoint
checkpoint: False
# dataset
data_dir: 'preprocess'
node_vocab: 'preprocess/node.pkl'
relation_vocab: 'preprocess/relation.pkl'
node_embedding: 'preprocess/node_embeddings.npy'
relation_embedding: 'preprocess/relation_embeddings.npy'
# model
teacher_dir: './pretrained_model/bart-base'
plm_dir: './pretrained_model/bart-base'
log_dir: './logging'
# training settings
start_epoch: 0
epochs: 200
train_batch_size: 20
plm_learner: adamw
plm_lr: 0.000001
external_learner: adamw
external_lr: 0.00001
rec_weight: 1.0
kd_weight: 1.0
cp_weight: 1.0
sprec_weight: 0.3
gnn_layers: 2
embedding_size: 128
hidden_size: 768
# evaluation settings
eval_batch_size: 20
# testing settings
external_model: './ckpt/webnlg-all-206/external.bin'
fine_tuned_plm_dir: './ckpt/webnlg-all-206'
test_batch_size: 20
max_seq_length: 100
output_dir: './ckpt/webnlg-all-206'