-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ranking_ubuntu_v2_bert_uncased.json
75 lines (75 loc) · 2.17 KB
/
ranking_ubuntu_v2_bert_uncased.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"dataset_reader": {
"class_name": "ubuntu_v2_reader",
"data_path": "{DOWNLOADS_PATH}/ubuntu_v2_data"
},
"dataset_iterator": {
"class_name": "siamese_iterator",
"seed": 243
},
"chainer": {
"in": ["x"],
"in_y": ["y"],
"pipe": [
{
"class_name": "bert_ranker_preprocessor",
"vocab_file": "{DOWNLOADS_PATH}/bert_models/uncased_L-12_H-768_A-12/vocab.txt",
"do_lower_case": true,
"max_seq_length": 128,
"in": ["x"],
"out": ["bert_features"]
},
{
"class_name": "bert_ranker",
"one_hot_labels": false,
"bert_config_file": "{DOWNLOADS_PATH}/bert_models/uncased_L-12_H-768_A-12/bert_config.json",
"pretrained_bert": "{DOWNLOADS_PATH}/bert_models/uncased_L-12_H-768_A-12/bert_model.ckpt",
"save_path": "{MODELS_PATH}/model",
"load_path": "{MODELS_PATH}/model",
"learning_rate": 2e-05,
"in": ["bert_features"],
"in_y": ["y"],
"out": ["predictions"]
}
],
"out": ["predictions"]
},
"train": {
"batch_size": 32,
"pytest_max_batches": 2,
"train_metrics": [],
"metrics": ["r@1", "r@2", "r@5"],
"validation_patience": 1,
"val_every_n_batches": -1,
"val_every_n_epochs": 1,
"log_every_n_batches": -1,
"validate_best": true,
"test_best": true,
"tensorboard_log_dir": "{MODELS_PATH}/"
},
"metadata": {
"variables": {
"ROOT_PATH": "~/.deeppavlov",
"DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
"MODELS_PATH": "{ROOT_PATH}/models/ubuntu_v2_uncased_bert_model"
},
"requirements": [
"{DEEPPAVLOV_PATH}/requirements/tf.txt",
"{DEEPPAVLOV_PATH}/requirements/bert_dp.txt"
],
"download": [
{
"url": "http://files.deeppavlov.ai/datasets/ubuntu_v2_data.tar.gz",
"subdir": "{DOWNLOADS_PATH}/ubuntu_v2_data"
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/bert/uncased_L-12_H-768_A-12.zip",
"subdir": "{DOWNLOADS_PATH}/bert_models"
},
{
"url": "http://files.deeppavlov.ai/deeppavlov_data/ubuntu_v2_uncased_bert_model.tar.gz",
"subdir": "{ROOT_PATH}/models"
}
]
}
}