This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathexample_config.json
52 lines (52 loc) · 1.6 KB
/
example_config.json
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
{
"training": {
"optimizer": "adam",
"clip_c": 1,
"lrate": 0.0001,
"batch_size": 48,
"n_gpus": 1
},
"management": {
"monitor_loss": 9600,
"print_samples": 12800,
"checkpoint_freq": 640000,
"eval_freq": 4800000
},
"data": {"paths": [
{
"train_src": "data/corpora/nmt/training/train.nmt.de-en.en.tok",
"train_trg": "data/corpora/nmt/training/train.nmt.de-en.de.tok",
"val_src": "data/corpora/nmt/training/dev.nmt.de-en.en.tok",
"val_trg": "data/corpora/nmt/training/dev.nmt.de-en.de.tok",
"taskname": "de-en"
},
{
"train_src": "data/corpora/nmt/training/train.nmt.fr-en.en.tok",
"train_trg": "data/corpora/nmt/training/train.nmt.fr-en.fr.tok",
"val_src": "data/corpora/nmt/training/dev.nmt.fr-en.en.tok",
"val_trg": "data/corpora/nmt/training/dev.nmt.fr-en.fr.tok",
"taskname": "fr-en"
}
],
"max_src_length": 90,
"max_trg_length": 90,
"task": "multi-seq2seq-nli",
"save_dir": "data/models/example",
"load_dir": "auto",
"nli_train": "data/corpora/allnli.train.txt.clean.noblank",
"nli_dev": "data/corpora/snli_1.0_dev.txt.clean.noblank",
"nli_test": "data/corpora/snli_1.0_test.txt.clean.noblank"
},
"model": {
"dim_src": 2048,
"dim_trg": 2048,
"dim_word_src": 512,
"dim_word_trg": 512,
"n_words_src": 80000,
"n_words_trg": 30000,
"n_layers_src": 1,
"bidirectional": true,
"layernorm": false,
"dropout": 0.3
}
}