usr256864 commited on
Commit
0de94d5
·
verified ·
1 Parent(s): 88261ff

Upload 3 files

Browse files
config_kwargs.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "monitor_metric": "eval_exact_match",
3
+ "trainer_kwargs": {
4
+ "class_name": "RA_Reader"
5
+ },
6
+ "trainee_kwargs": {
7
+ "class_name": "Encoder_Generator",
8
+ "loss": {
9
+ "class_name": "NLLLoss"
10
+ },
11
+ "freeze_prefixes": [],
12
+ "use_image": true,
13
+ "quantize": false,
14
+ "codebook_kwargs": {
15
+ "class_name": "GroupedResidualVQ",
16
+ "decay": 0.5,
17
+ "commitment_weight": 1,
18
+ "dim": 1280,
19
+ "codebook_size": 1024,
20
+ "num_quantizers": 128,
21
+ "groups": 8,
22
+ "sample_codebook_temp": 0.0,
23
+ "learnable_codebook": false,
24
+ "use_cosine_sim": false,
25
+ "shared_codebook": false,
26
+ "kmeans_init": false
27
+ }
28
+ },
29
+ "data_module_kwargs": {
30
+ "class_name": "multi_modal_DataModule",
31
+ "data_processor": {
32
+ "class_name": "viquae_data_processor",
33
+ "dataset_path": "../../all_data/",
34
+ "kb_path": "../../all_data/passages/",
35
+ "entity_kb_path": "../../all_data/kb/"
36
+ },
37
+ "relevant_indices_key": "BM25_provenance_indices",
38
+ "irrelevant_indices_key": "BM25_irrelevant_indices",
39
+ "input_key": "input",
40
+ "passage_key": "passage",
41
+ "dataloader_kwargs": {
42
+ "num_workers": 6,
43
+ "prefetch_factor": 2
44
+ },
45
+ "image_processor_kwargs": {
46
+ "class_name": "ImageFormatter",
47
+ "feature_extractor_kwargs": {
48
+ "class_name": "CLIPFeatureExtractor",
49
+ "pretrained_model_name_or_path": "clip-vit-base-patch32_FE"
50
+ }
51
+ }
52
+ },
53
+ "answer_generator_kwargs": {
54
+ "class_name": "Blip2ForConditionalGeneration",
55
+ "checkpoint_name": "answer_generator",
56
+ "checkpoint": "saved_models/blip2_triviaqa/answer_generator/pytorch_model.bin",
57
+ "title_key": "wikipedia_title",
58
+ "column": "my_DPR_few_shot",
59
+ "pretrained_model_name_or_path": "/home/data/meerqat/my_transformers_cache/blip2",
60
+ "k_train": 5,
61
+ "k_test": 5,
62
+ "k_entities": 3,
63
+ "rag_training": false,
64
+ "rag": false,
65
+ "generator_only": true,
66
+ "entity_prompt": false,
67
+ "beam_search": true,
68
+ "best_answer": false,
69
+ "best_entity": false,
70
+ "tokenizer_kwargs": {
71
+ "class_name": "Blip2Processor",
72
+ "pretrained_model_name_or_path": "blip2_processor"
73
+ },
74
+ "image_processor_kwargs": {
75
+ "class_name": "ImageFormatter",
76
+ "feature_extractor_kwargs": {
77
+ "class_name": "Blip2Processor",
78
+ "pretrained_model_name_or_path": "blip2_processor"
79
+ }
80
+ },
81
+ "inference_path": "saved_models/blip2_triviaqa_viquae/answer_generator"
82
+ }
83
+ }
experiment_params.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "subparser": null,
3
+ "max_seq_length": 256,
4
+ "question_max_seq_length": 256,
5
+ "RC": false,
6
+ "coco": false,
7
+ "flickr": false,
8
+ "aokvqa": false,
9
+ "grad_check": false,
10
+ "MJL": false,
11
+ "debug_run_time": false,
12
+ "only_neighbors": false,
13
+ "full_kb": false,
14
+ "image_eval": false,
15
+ "embedding_column": "my_DPR_few_shot",
16
+ "output_ds": null,
17
+ "output_kb": null,
18
+ "embed": false,
19
+ "data_path": null,
20
+ "train_batch_size": 4,
21
+ "eval_batch_size": 4,
22
+ "viquae_dev_batch_size": 1000,
23
+ "transformer_model_name": "bert-base-uncased",
24
+ "gradient_accumulation_steps": 1,
25
+ "warmup_proportion": 0.1,
26
+ "weight_decay": 0.01,
27
+ "lr_decay": false,
28
+ "adam_beta1": 0.9,
29
+ "adam_beta2": 0.999,
30
+ "warmup_steps": 4,
31
+ "adam_epsilon": 1e-08,
32
+ "num_train_epochs": 10,
33
+ "learning_rate": 0.0001,
34
+ "dropout": 0.5,
35
+ "bert_hidden_size": 768,
36
+ "MM": null,
37
+ "use_graph_P": null,
38
+ "use_graph_Q": null,
39
+ "syntactic_P": null,
40
+ "syntactic_Q": null,
41
+ "NS": null,
42
+ "IC_Q": false,
43
+ "IC_P": false,
44
+ "gcn_lr": 2e-05,
45
+ "head_lr": 2e-06,
46
+ "func": "cat",
47
+ "graph_pooling": "mean",
48
+ "max_nbr_nodes": 2,
49
+ "num_neib": 1,
50
+ "neib_depth": 1,
51
+ "undirect": false,
52
+ "node_hidden_size": 128,
53
+ "max_num_relations": null,
54
+ "max_num_syntactic_relations": null,
55
+ "map_wikidataRelCode_to_idx": null,
56
+ "graph_layout": "fr",
57
+ "residual": false,
58
+ "num_gcn": null,
59
+ "node_alias_max_len": 32,
60
+ "attention": false,
61
+ "num_paths": 1,
62
+ "kg_embed": false,
63
+ "graph_only": false,
64
+ "freeze": false,
65
+ "sanity_run": false,
66
+ "enhanced_question": false,
67
+ "use_entity_type": false,
68
+ "filter_edges": false,
69
+ "draw": false,
70
+ "layer_norm": false,
71
+ "filters_3": 768,
72
+ "tensor_neurons": 16,
73
+ "output_dir": "saved_models/blip2_triviaqa_viquae",
74
+ "main_dir": "/home/data/meerqat/ViQuAE/meerqat/GP-VQA",
75
+ "experiment_dir": "None",
76
+ "experiment_name": "blip2_triviaqa_viquae",
77
+ "search": null,
78
+ "xlnet": false,
79
+ "tune_loss": false,
80
+ "tune_dev": true,
81
+ "tune_valid_loss": false,
82
+ "sanity_val_steps": 0,
83
+ "cpu": false,
84
+ "keep_in_memory": 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/viquae/rag_multimodal/config_generator_only_blip2.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
+ "validate": false,
123
+ "split_dpr": false,
124
+ "rename_model": false,
125
+ "mask_rate": 0.15,
126
+ "pretrained_triviaq": false,
127
+ "error_analysis": false,
128
+ "debug": false,
129
+ "stop_debug": false,
130
+ "entity_linking": false,
131
+ "entity_linking_split": false,
132
+ "build_entity_paths": null,
133
+ "object_detection": null,
134
+ "update_wikidata_ids": null,
135
+ "update_None_ids": null,
136
+ "dependency_parsing": null,
137
+ "image_captionning": null,
138
+ "build_graph": false,
139
+ "from_bert": false,
140
+ "fast": false,
141
+ "get_examples": false,
142
+ "get_statistics": null,
143
+ "word_vocab_size": 0,
144
+ "char_vocab_size": 0,
145
+ "max_word_len": 30,
146
+ "device": null,
147
+ "embedding_matrix": null,
148
+ "w2v_file": "word_vector_200d.vec",
149
+ "word_emb_dim": 200,
150
+ "char_lstm": false,
151
+ "char_cnn": false,
152
+ "seed": 32,
153
+ "tune_batch_size": false,
154
+ "val_check_interval": null,
155
+ "model_names": null
156
+ }
model-epoch=02-eval_exact_match=0.7088_sd=32.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc3ff22e8bf10b17abc125c18f4596bb5786ebd787d1702f9ee596a7e7dccf86
3
+ size 15848832819