MustEr commited on
Commit
02efcf0
1 Parent(s): 83d784d

add required files

Browse files
config.json CHANGED
@@ -1,5 +1,4 @@
1
  {
2
- {
3
  "architectures": [
4
  "RagSequenceForGeneration"
5
  ],
@@ -9,45 +8,40 @@
9
  "do_marginalize": false,
10
  "doc_sep": " // ",
11
  "exclude_bos_score": false,
12
- "forced_eos_token_id": 2,
13
  "generator": {
14
- "_name_or_path": "facebook/bart-base",
15
- "activation_dropout": 0.1,
16
  "activation_function": "gelu",
17
  "add_bias_logits": false,
18
  "add_cross_attention": false,
19
  "add_final_layer_norm": false,
20
  "architectures": [
21
- "BartModel"
 
 
22
  ],
23
- "attention_dropout": 0.1,
24
  "bad_words_ids": null,
25
  "bos_token_id": 0,
26
  "chunk_size_feed_forward": 0,
27
- "classif_dropout": 0.1,
28
- "classifier_dropout": 0.0,
29
- "cross_attention_hidden_size": null,
30
- "d_model": 768,
31
- "decoder_attention_heads": 12,
32
- "decoder_ffn_dim": 3072,
33
  "decoder_layerdrop": 0.0,
34
- "decoder_layers": 6,
35
  "decoder_start_token_id": 2,
36
- "diversity_penalty": 0.0,
37
  "do_sample": false,
38
  "dropout": 0.1,
39
- "early_stopping": true,
40
- "encoder_attention_heads": 12,
41
- "encoder_ffn_dim": 3072,
42
  "encoder_layerdrop": 0.0,
43
- "encoder_layers": 6,
44
- "encoder_no_repeat_ngram_size": 0,
45
  "eos_token_id": 2,
46
- "exponential_decay_length_penalty": null,
47
  "finetuning_task": null,
48
- "forced_bos_token_id": 0,
49
- "forced_eos_token_id": 2,
50
- "gradient_checkpointing": false,
51
  "id2label": {
52
  "0": "LABEL_0",
53
  "1": "LABEL_1",
@@ -66,44 +60,30 @@
66
  "max_position_embeddings": 1024,
67
  "min_length": 0,
68
  "model_type": "bart",
69
- "no_repeat_ngram_size": 3,
70
  "normalize_before": false,
71
  "normalize_embedding": true,
72
- "num_beam_groups": 1,
73
- "num_beams": 4,
74
- "num_hidden_layers": 6,
75
  "num_return_sequences": 1,
76
  "output_attentions": false,
77
  "output_hidden_states": false,
78
- "output_scores": false,
79
  "pad_token_id": 1,
80
- "prefix": null,
81
- "problem_type": null,
82
  "pruned_heads": {},
83
- "remove_invalid_values": false,
84
  "repetition_penalty": 1.0,
85
- "return_dict": true,
86
- "return_dict_in_generate": false,
87
  "scale_embedding": false,
88
- "sep_token_id": null,
89
  "task_specific_params": {
90
  "summarization": {
91
- "length_penalty": 1.0,
92
- "max_length": 128,
93
- "min_length": 12,
94
- "num_beams": 4
95
- },
96
- "summarization_cnn": {
97
  "length_penalty": 2.0,
98
  "max_length": 142,
99
  "min_length": 56,
 
100
  "num_beams": 4
101
- },
102
- "summarization_xsum": {
103
- "length_penalty": 1.0,
104
- "max_length": 62,
105
- "min_length": 11,
106
- "num_beams": 6
107
  }
108
  },
109
  "temperature": 1.0,
@@ -112,15 +92,13 @@
112
  "tokenizer_class": null,
113
  "top_k": 50,
114
  "top_p": 1.0,
115
- "torch_dtype": "float32",
116
  "torchscript": false,
117
- "transformers_version": "4.19.2",
118
- "typical_p": 1.0,
119
  "use_bfloat16": false,
120
  "use_cache": true,
121
- "vocab_size": 50265
 
122
  },
123
- "index_name": "pytorch_model.bin",
124
  "index_path": "MustEr/gpt2-elite",
125
  "is_encoder_decoder": true,
126
  "label_smoothing": 0.0,
@@ -130,7 +108,6 @@
130
  "output_retrieved": false,
131
  "passages_path": null,
132
  "question_encoder": {
133
- "_name_or_path": "facebook/dpr-question_encoder-single-nq-base",
134
  "add_cross_attention": false,
135
  "architectures": [
136
  "DPRQuestionEncoder"
@@ -139,17 +116,11 @@
139
  "bad_words_ids": null,
140
  "bos_token_id": null,
141
  "chunk_size_feed_forward": 0,
142
- "cross_attention_hidden_size": null,
143
  "decoder_start_token_id": null,
144
- "diversity_penalty": 0.0,
145
  "do_sample": false,
146
  "early_stopping": false,
147
- "encoder_no_repeat_ngram_size": 0,
148
  "eos_token_id": null,
149
- "exponential_decay_length_penalty": null,
150
  "finetuning_task": null,
151
- "forced_bos_token_id": null,
152
- "forced_eos_token_id": null,
153
  "gradient_checkpointing": false,
154
  "hidden_act": "gelu",
155
  "hidden_dropout_prob": 0.1,
@@ -174,24 +145,17 @@
174
  "model_type": "dpr",
175
  "no_repeat_ngram_size": 0,
176
  "num_attention_heads": 12,
177
- "num_beam_groups": 1,
178
  "num_beams": 1,
179
  "num_hidden_layers": 12,
180
  "num_return_sequences": 1,
181
  "output_attentions": false,
182
  "output_hidden_states": false,
183
- "output_scores": false,
184
  "pad_token_id": 0,
185
- "position_embedding_type": "absolute",
186
  "prefix": null,
187
- "problem_type": null,
188
  "projection_dim": 0,
189
  "pruned_heads": {},
190
- "remove_invalid_values": false,
191
  "repetition_penalty": 1.0,
192
- "return_dict": true,
193
- "return_dict_in_generate": false,
194
- "sep_token_id": null,
195
  "task_specific_params": null,
196
  "temperature": 1.0,
197
  "tie_encoder_decoder": false,
@@ -199,21 +163,17 @@
199
  "tokenizer_class": null,
200
  "top_k": 50,
201
  "top_p": 1.0,
202
- "torch_dtype": null,
203
  "torchscript": false,
204
- "transformers_version": "4.19.2",
205
  "type_vocab_size": 2,
206
- "typical_p": 1.0,
207
  "use_bfloat16": false,
208
- "vocab_size": 30522
 
 
209
  },
210
  "reduce_loss": false,
211
  "retrieval_batch_size": 8,
212
  "retrieval_vector_size": 768,
213
  "title_sep": " / ",
214
- "torch_dtype": "float32",
215
- "transformers_version": null,
216
- "use_cache": true,
217
- "use_dummy_dataset": true,
218
  "vocab_size": null
219
  }
 
1
  {
 
2
  "architectures": [
3
  "RagSequenceForGeneration"
4
  ],
 
8
  "do_marginalize": false,
9
  "doc_sep": " // ",
10
  "exclude_bos_score": false,
 
11
  "generator": {
12
+ "_num_labels": 3,
13
+ "activation_dropout": 0.0,
14
  "activation_function": "gelu",
15
  "add_bias_logits": false,
16
  "add_cross_attention": false,
17
  "add_final_layer_norm": false,
18
  "architectures": [
19
+ "BartModel",
20
+ "BartForMaskedLM",
21
+ "BartForSequenceClassification"
22
  ],
23
+ "attention_dropout": 0.0,
24
  "bad_words_ids": null,
25
  "bos_token_id": 0,
26
  "chunk_size_feed_forward": 0,
27
+ "classif_dropout": 0.0,
28
+ "d_model": 1024,
29
+ "decoder_attention_heads": 16,
30
+ "decoder_ffn_dim": 4096,
 
 
31
  "decoder_layerdrop": 0.0,
32
+ "decoder_layers": 12,
33
  "decoder_start_token_id": 2,
 
34
  "do_sample": false,
35
  "dropout": 0.1,
36
+ "early_stopping": false,
37
+ "encoder_attention_heads": 16,
38
+ "encoder_ffn_dim": 4096,
39
  "encoder_layerdrop": 0.0,
40
+ "encoder_layers": 12,
 
41
  "eos_token_id": 2,
42
+ "extra_pos_embeddings": 2,
43
  "finetuning_task": null,
44
+ "force_bos_token_to_be_generated": false,
 
 
45
  "id2label": {
46
  "0": "LABEL_0",
47
  "1": "LABEL_1",
 
60
  "max_position_embeddings": 1024,
61
  "min_length": 0,
62
  "model_type": "bart",
63
+ "no_repeat_ngram_size": 0,
64
  "normalize_before": false,
65
  "normalize_embedding": true,
66
+ "num_beams": 1,
67
+ "num_hidden_layers": 12,
 
68
  "num_return_sequences": 1,
69
  "output_attentions": false,
70
  "output_hidden_states": false,
71
+ "output_past": false,
72
  "pad_token_id": 1,
73
+ "prefix": " ",
 
74
  "pruned_heads": {},
 
75
  "repetition_penalty": 1.0,
76
+ "return_dict": false,
 
77
  "scale_embedding": false,
78
+ "static_position_embeddings": false,
79
  "task_specific_params": {
80
  "summarization": {
81
+ "early_stopping": true,
 
 
 
 
 
82
  "length_penalty": 2.0,
83
  "max_length": 142,
84
  "min_length": 56,
85
+ "no_repeat_ngram_size": 3,
86
  "num_beams": 4
 
 
 
 
 
 
87
  }
88
  },
89
  "temperature": 1.0,
 
92
  "tokenizer_class": null,
93
  "top_k": 50,
94
  "top_p": 1.0,
 
95
  "torchscript": false,
 
 
96
  "use_bfloat16": false,
97
  "use_cache": true,
98
+ "vocab_size": 50265,
99
+ "xla_device": null
100
  },
101
+ "index_name": "exact",
102
  "index_path": "MustEr/gpt2-elite",
103
  "is_encoder_decoder": true,
104
  "label_smoothing": 0.0,
 
108
  "output_retrieved": false,
109
  "passages_path": null,
110
  "question_encoder": {
 
111
  "add_cross_attention": false,
112
  "architectures": [
113
  "DPRQuestionEncoder"
 
116
  "bad_words_ids": null,
117
  "bos_token_id": null,
118
  "chunk_size_feed_forward": 0,
 
119
  "decoder_start_token_id": null,
 
120
  "do_sample": false,
121
  "early_stopping": false,
 
122
  "eos_token_id": null,
 
123
  "finetuning_task": null,
 
 
124
  "gradient_checkpointing": false,
125
  "hidden_act": "gelu",
126
  "hidden_dropout_prob": 0.1,
 
145
  "model_type": "dpr",
146
  "no_repeat_ngram_size": 0,
147
  "num_attention_heads": 12,
 
148
  "num_beams": 1,
149
  "num_hidden_layers": 12,
150
  "num_return_sequences": 1,
151
  "output_attentions": false,
152
  "output_hidden_states": false,
 
153
  "pad_token_id": 0,
 
154
  "prefix": null,
 
155
  "projection_dim": 0,
156
  "pruned_heads": {},
 
157
  "repetition_penalty": 1.0,
158
+ "return_dict": false,
 
 
159
  "task_specific_params": null,
160
  "temperature": 1.0,
161
  "tie_encoder_decoder": false,
 
163
  "tokenizer_class": null,
164
  "top_k": 50,
165
  "top_p": 1.0,
 
166
  "torchscript": false,
 
167
  "type_vocab_size": 2,
 
168
  "use_bfloat16": false,
169
+ "use_cache": true,
170
+ "vocab_size": 30522,
171
+ "xla_device": null
172
  },
173
  "reduce_loss": false,
174
  "retrieval_batch_size": 8,
175
  "retrieval_vector_size": 768,
176
  "title_sep": " / ",
177
+ "use_dummy_dataset": false,
 
 
 
178
  "vocab_size": null
179
  }
generator_tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
generator_tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}}
generator_tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"model_max_length": 1024}
generator_tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
question_encoder_tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
question_encoder_tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": true, "model_max_length": 512}
question_encoder_tokenizer/vocab.txt ADDED
The diff for this file is too large to render. See raw diff