usr256864 commited on
Commit
33b288a
·
verified ·
1 Parent(s): b8ee947

Upload 5 files

Browse files
config_kwargs.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "monitor_metric": "eval_MRR@NM",
3
+ "trainer_kwargs": {
4
+ "class_name": "IR"
5
+ },
6
+ "trainee_kwargs": {
7
+ "class_name": "DPRBiEncoder",
8
+ "loss": {
9
+ "class_name": "NLLLoss"
10
+ }
11
+ },
12
+ "data_module_kwargs": {
13
+ "class_name": "mono_modal_DataModule",
14
+ "data_processor": {
15
+ "class_name": "evqa_data_processor",
16
+ "dataset_path": "../../data/evqa/",
17
+ "kb_path": "../../data/evqa/passages",
18
+ "entity_kb_path": "../../data/evqa/kb"
19
+ },
20
+ "use_image": false,
21
+ "relevant_indices_key": "BM25_provenance_indices",
22
+ "irrelevant_indices_key": "BM25_irrelevant_indices",
23
+ "input_key": "question",
24
+ "passage_key": "passage",
25
+ "dataloader_kwargs": {
26
+ "num_workers": 6,
27
+ "prefetch_factor": 2
28
+ }
29
+ },
30
+ "question_model_kwargs": {
31
+ "class_name": "DPRQuestionEncoder",
32
+ "checkpoint_name": "question_model",
33
+ "pretrained_model_name_or_path": "/home/data/meerqat/my_transformers_cache/dpr_question_encoder_triviaqa_without_viquae",
34
+ "inference_path": "saved_models/DPR_evqa_1/question_model"
35
+ },
36
+ "context_model_kwargs": {
37
+ "class_name": "DPRContextEncoder",
38
+ "checkpoint_name": "context_model",
39
+ "pretrained_model_name_or_path": "/home/data/meerqat/my_transformers_cache/dpr_context_encoder_triviaqa_without_viquae",
40
+ "inference_path": "saved_models/DPR_evqa_1/context_model"
41
+ }
42
+ }
experiment_params.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "subparser": null,
3
+ "max_seq_length": 256,
4
+ "question_max_seq_length": 256,
5
+ "RC": false,
6
+ "triviaqa": false,
7
+ "coco": false,
8
+ "flickr": false,
9
+ "aokvqa": false,
10
+ "evqa": false,
11
+ "infoseek": false,
12
+ "grad_check": true,
13
+ "MJL": false,
14
+ "debug_run_time": false,
15
+ "only_neighbors": false,
16
+ "full_kb": false,
17
+ "image_eval": false,
18
+ "embedding_column": "my_DPR_few_shot",
19
+ "output_ds": null,
20
+ "output_kb": null,
21
+ "embed": false,
22
+ "data_path": null,
23
+ "train_batch_size": 512,
24
+ "eval_batch_size": 1000,
25
+ "transformer_model_name": "bert-base-uncased",
26
+ "gradient_accumulation_steps": 1,
27
+ "warmup_proportion": 0.1,
28
+ "weight_decay": 0.01,
29
+ "adam_beta1": 0.9,
30
+ "adam_beta2": 0.999,
31
+ "warmup_steps": 4,
32
+ "adam_epsilon": 1e-08,
33
+ "num_train_epochs": 15,
34
+ "learning_rate": 2e-05,
35
+ "dropout": 0.5,
36
+ "bert_hidden_size": 768,
37
+ "MM": null,
38
+ "use_graph_P": null,
39
+ "use_graph_Q": null,
40
+ "syntactic_P": null,
41
+ "syntactic_Q": null,
42
+ "NS": null,
43
+ "IC_Q": false,
44
+ "IC_P": false,
45
+ "gcn_lr": 2e-05,
46
+ "head_lr": 2e-06,
47
+ "func": "cat",
48
+ "graph_pooling": "mean",
49
+ "max_nbr_nodes": 2,
50
+ "num_neib": 1,
51
+ "neib_depth": 1,
52
+ "undirect": false,
53
+ "node_hidden_size": 128,
54
+ "max_num_relations": null,
55
+ "max_num_syntactic_relations": null,
56
+ "map_wikidataRelCode_to_idx": null,
57
+ "graph_layout": "fr",
58
+ "residual": false,
59
+ "num_gcn": null,
60
+ "node_alias_max_len": 32,
61
+ "attention": false,
62
+ "num_paths": 1,
63
+ "kg_embed": false,
64
+ "graph_only": false,
65
+ "freeze": false,
66
+ "sanity_run": false,
67
+ "enhanced_question": false,
68
+ "use_entity_type": false,
69
+ "filter_edges": false,
70
+ "draw": false,
71
+ "layer_norm": false,
72
+ "filters_3": 768,
73
+ "tensor_neurons": 16,
74
+ "output_dir": "saved_models/DPR_evqa_1",
75
+ "main_dir": "/home/data/meerqat/ViQuAE/meerqat/GP-VQA",
76
+ "experiment_dir": "None",
77
+ "experiment_name": "DPR_evqa",
78
+ "search": null,
79
+ "xlnet": false,
80
+ "tune_loss": false,
81
+ "tune_dev": true,
82
+ "tune_valid_loss": false,
83
+ "sanity_val_steps": 0,
84
+ "cpu": false,
85
+ "N": 0,
86
+ "nbr_workers": 1,
87
+ "num_proc": 1,
88
+ "local_cache": "/home/data/meerqat/my_transformers_cache",
89
+ "IMAGE_PATH": null,
90
+ "transformer_path": null,
91
+ "resume_from": null,
92
+ "checkpoint": null,
93
+ "linear_MEP_checkpoint": null,
94
+ "linear_MLM_checkpoint": null,
95
+ "config": "experiments/ir/evqa/dpr/config.json",
96
+ "context_checkpoint": null,
97
+ "grad_accum": 1,
98
+ "cls_token": "[CLS]",
99
+ "sep_token": "[SEP]",
100
+ "pad_token": "[PAD]",
101
+ "cls_token_at_end": false,
102
+ "mask_padding_with_zero": true,
103
+ "pad_on_left": false,
104
+ "sequence_a_segment_id": 0,
105
+ "pad_token_segment_id": 0,
106
+ "cls_token_segment_id": 0,
107
+ "pad_token_label_id": 0,
108
+ "pad_token_id": 0,
109
+ "past_index": -1,
110
+ "world_size": 1,
111
+ "use_lstm": false,
112
+ "use_entity": false,
113
+ "use_question_graph": false,
114
+ "use_question_objects": false,
115
+ "EFeat": null,
116
+ "NFeat": null,
117
+ "ltn": false,
118
+ "use_kelm": false,
119
+ "unshared": false,
120
+ "mlm": false,
121
+ "test": false,
122
+ "split_dpr": false,
123
+ "rename_model": false,
124
+ "mask_rate": 0.15,
125
+ "pretrained_triviaq": false,
126
+ "error_analysis": false,
127
+ "debug": false,
128
+ "stop_debug": false,
129
+ "entity_linking": false,
130
+ "entity_linking_split": false,
131
+ "build_entity_paths": null,
132
+ "object_detection": null,
133
+ "update_wikidata_ids": null,
134
+ "update_None_ids": null,
135
+ "dependency_parsing": null,
136
+ "image_captionning": null,
137
+ "build_graph": false,
138
+ "from_bert": false,
139
+ "fast": false,
140
+ "get_examples": false,
141
+ "get_statistics": null,
142
+ "word_vocab_size": 0,
143
+ "char_vocab_size": 0,
144
+ "max_word_len": 30,
145
+ "device": null,
146
+ "embedding_matrix": null,
147
+ "w2v_file": "word_vector_200d.vec",
148
+ "word_emb_dim": 200,
149
+ "char_lstm": false,
150
+ "char_cnn": false,
151
+ "seed": 32,
152
+ "tune_batch_size": false,
153
+ "model_names": null
154
+ }
model-epoch=14-eval_MRR@NM=0.4023_sd=32.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84452a131f1db6be68b20d84e78ce2ded6868b08b53cb516d95b8273178c6d4a
3
+ size 2613940077
results.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ -------- dev---------
2
+ [0.40229296684265137]
validation_metrics.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {'MRR@NM': 0.22687875150303863, 'hits@1': 0.12727272727272726}
2
+ {'MRR@NM': 0.3420937569257813, 'hits@1': 0.21409090909090908}
3
+ {'MRR@NM': 0.37551556509141343, 'hits@1': 0.2340909090909091}
4
+ {'MRR@NM': 0.39695260732768195, 'hits@1': 0.2595454545454545}
5
+ {'MRR@NM': 0.39619027572953414, 'hits@1': 0.2545454545454545}
6
+ {'MRR@NM': 0.3944131206488431, 'hits@1': 0.2531818181818182}
7
+ {'MRR@NM': 0.3936372361698823, 'hits@1': 0.25136363636363634}
8
+ {'MRR@NM': 0.40205621528409435, 'hits@1': 0.265}
9
+ {'MRR@NM': 0.3993281607583292, 'hits@1': 0.25545454545454543}
10
+ {'MRR@NM': 0.3983506402420897, 'hits@1': 0.2595454545454545}
11
+ {'MRR@NM': 0.39291446362432786, 'hits@1': 0.25545454545454543}
12
+ {'MRR@NM': 0.3949010664025696, 'hits@1': 0.2540909090909091}
13
+ {'MRR@NM': 0.39623127781333645, 'hits@1': 0.2581818181818182}
14
+ {'MRR@NM': 0.3967371945294609, 'hits@1': 0.2545454545454545}
15
+ {'MRR@NM': 0.40229297648943974, 'hits@1': 0.2595454545454545}