-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.yaml
46 lines (40 loc) · 835 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
trainer:
device: &device cuda
random_seed: 42
batch_size_no_grad: 64
batch_size_grad: 32
max_epoch: 16
weight_only_epoch: 0
fix_weights: false
patience: 4
leave_out: false
force_single_token: true
shuffle: true
show_top_patterns: 0
training_target:
- conditional
# - generate
accumulate_gradient: 1
randomize_prompt: false
frequent: false
smoothing: 0.0
max_layer: 24
penalty: [0.0, 0.0, 0.0, 0.0, 0.0]
log_path: 'logs/trex'
vocab_file: &vocab_file ~
conditional_prompt: false
db:
path: db/trex_extend
single_lexicon: true
relation_type_filter: &filter
vocab_file: *vocab_file
template:
relation_type_filter: *filter
path: prompts/trex_mine
min_length: -1
max_length: -1
max_num: -1
lm:
model_type: 'bert'
param_name: 'bert-large-cased'
device: *device