-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsyntagrus_mbert.yaml
60 lines (60 loc) · 1.75 KB
/
syntagrus_mbert.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
51
52
53
54
55
56
57
58
59
60
seed_everything: 1995
trainer:
max_epochs: 100
max_time: 00:06:00:00
callbacks:
- class_path: lightning.pytorch.callbacks.LearningRateMonitor
init_args:
logging_interval: epoch
- class_path: lightning.pytorch.callbacks.EarlyStopping
init_args:
monitor: val_loss
patience: 10
verbose: true
logger:
- class_path: lightning.pytorch.loggers.CSVLogger
init_args:
save_dir: /Users/Shinji/UD_Russian-SynTagRus/models
- class_path: lightning.pytorch.loggers.WandbLogger
init_args:
project: unit1
save_dir: /Users/Shinji/UD_Russian-SynTagRus/models
model:
dropout: 0.4
encoder: google-bert/bert-base-multilingual-cased
pooling_layers: 4
reverse_edits: true
use_upos: true
use_xpos: false
use_lemma: true
use_feats: true
encoder_optimizer:
class_path: torch.optim.Adam
init_args:
lr: 1e-6
encoder_scheduler:
class_path: udtube.schedulers.WarmupInverseSquareRoot
init_args:
warmup_epochs: 5
classifier_optimizer:
class_path: torch.optim.Adam
init_args:
lr: 1e-3
classifier_scheduler:
class_path: lightning.pytorch.cli.ReduceLROnPlateau
init_args:
monitor: val_loss
factor: 0.1
data:
model_dir: /Users/Shinji/UD_Russian-SynTagRus/models
train: /Users/Shinji/UD_Russian-SynTagRus/ru_syntagrus-ud-train.conllu
val: /Users/Shinji/UD_Russian-SynTagRus/ru_syntagrus-ud-dev.conllu
test: /Users/Shinji/UD_Russian-SynTagRus/ru_syntagrus-ud-test.conllu
predict: /Users/Shinji/UD_Russian-SynTagRus/ru_syntagrus-ud-test.conllu
batch_size: 32
checkpoint:
filename: "model-{epoch:03d}-{val_loss:.4f}"
monitor: val_loss
verbose: true
prediction:
path: /Users/Shinji/UD_Russian-SynTagRus/predictions.conllu