m3hrdadfi commited on
Commit
48945c4
1 Parent(s): 89d1676

Initialize

Browse files
config.json ADDED
@@ -0,0 +1,221 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "RagTokenForGeneration"
4
+ ],
5
+ "dataset": "wiki_dpr",
6
+ "dataset_split": "train",
7
+ "do_deduplication": true,
8
+ "do_marginalize": false,
9
+ "doc_sep": " // ",
10
+ "exclude_bos_score": false,
11
+ "forced_eos_token_id": 2,
12
+ "generator": {
13
+ "_name_or_path": "facebook/bart-large",
14
+ "activation_dropout": 0.1,
15
+ "activation_function": "gelu",
16
+ "add_bias_logits": false,
17
+ "add_cross_attention": false,
18
+ "add_final_layer_norm": false,
19
+ "architectures": [
20
+ "BartModel"
21
+ ],
22
+ "attention_dropout": 0.1,
23
+ "bad_words_ids": null,
24
+ "begin_suppress_tokens": 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": 1024,
31
+ "decoder_attention_heads": 16,
32
+ "decoder_ffn_dim": 4096,
33
+ "decoder_layerdrop": 0.0,
34
+ "decoder_layers": 12,
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": 16,
41
+ "encoder_ffn_dim": 4096,
42
+ "encoder_layerdrop": 0.0,
43
+ "encoder_layers": 12,
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",
54
+ "2": "LABEL_2"
55
+ },
56
+ "init_std": 0.02,
57
+ "is_decoder": false,
58
+ "is_encoder_decoder": true,
59
+ "label2id": {
60
+ "LABEL_0": 0,
61
+ "LABEL_1": 1,
62
+ "LABEL_2": 2
63
+ },
64
+ "length_penalty": 1.0,
65
+ "max_length": 20,
66
+ "max_position_embeddings": 1024,
67
+ "min_length": 0,
68
+ "model_type": "bart",
69
+ "no_repeat_ngram_size": 3,
70
+ "normalize_before": false,
71
+ "num_beam_groups": 1,
72
+ "num_beams": 4,
73
+ "num_hidden_layers": 12,
74
+ "num_return_sequences": 1,
75
+ "output_attentions": false,
76
+ "output_hidden_states": false,
77
+ "output_scores": false,
78
+ "pad_token_id": 1,
79
+ "prefix": null,
80
+ "problem_type": null,
81
+ "pruned_heads": {},
82
+ "remove_invalid_values": false,
83
+ "repetition_penalty": 1.0,
84
+ "return_dict": true,
85
+ "return_dict_in_generate": false,
86
+ "scale_embedding": false,
87
+ "sep_token_id": null,
88
+ "suppress_tokens": 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,
110
+ "tf_legacy_loss": false,
111
+ "tie_encoder_decoder": false,
112
+ "tie_word_embeddings": true,
113
+ "tokenizer_class": null,
114
+ "top_k": 50,
115
+ "top_p": 1.0,
116
+ "torch_dtype": null,
117
+ "torchscript": false,
118
+ "typical_p": 1.0,
119
+ "use_bfloat16": false,
120
+ "use_cache": true,
121
+ "vocab_size": 50265
122
+ },
123
+ "index_name": "exact",
124
+ "index_path": null,
125
+ "is_encoder_decoder": true,
126
+ "label_smoothing": 0.0,
127
+ "max_combined_length": 300,
128
+ "model_type": "rag",
129
+ "n_docs": 5,
130
+ "output_retrieved": false,
131
+ "passages_path": null,
132
+ "question_encoder": {
133
+ "_name_or_path": "facebook/dpr-question_encoder-multiset-base",
134
+ "add_cross_attention": false,
135
+ "architectures": [
136
+ "DPRQuestionEncoder"
137
+ ],
138
+ "attention_probs_dropout_prob": 0.1,
139
+ "bad_words_ids": null,
140
+ "begin_suppress_tokens": null,
141
+ "bos_token_id": null,
142
+ "chunk_size_feed_forward": 0,
143
+ "cross_attention_hidden_size": null,
144
+ "decoder_start_token_id": null,
145
+ "diversity_penalty": 0.0,
146
+ "do_sample": false,
147
+ "early_stopping": false,
148
+ "encoder_no_repeat_ngram_size": 0,
149
+ "eos_token_id": null,
150
+ "exponential_decay_length_penalty": null,
151
+ "finetuning_task": null,
152
+ "forced_bos_token_id": null,
153
+ "forced_eos_token_id": null,
154
+ "gradient_checkpointing": false,
155
+ "hidden_act": "gelu",
156
+ "hidden_dropout_prob": 0.1,
157
+ "hidden_size": 768,
158
+ "id2label": {
159
+ "0": "LABEL_0",
160
+ "1": "LABEL_1"
161
+ },
162
+ "initializer_range": 0.02,
163
+ "intermediate_size": 3072,
164
+ "is_decoder": false,
165
+ "is_encoder_decoder": false,
166
+ "label2id": {
167
+ "LABEL_0": 0,
168
+ "LABEL_1": 1
169
+ },
170
+ "layer_norm_eps": 1e-12,
171
+ "length_penalty": 1.0,
172
+ "max_length": 20,
173
+ "max_position_embeddings": 512,
174
+ "min_length": 0,
175
+ "model_type": "dpr",
176
+ "no_repeat_ngram_size": 0,
177
+ "num_attention_heads": 12,
178
+ "num_beam_groups": 1,
179
+ "num_beams": 1,
180
+ "num_hidden_layers": 12,
181
+ "num_return_sequences": 1,
182
+ "output_attentions": false,
183
+ "output_hidden_states": false,
184
+ "output_scores": false,
185
+ "pad_token_id": 0,
186
+ "position_embedding_type": "absolute",
187
+ "prefix": null,
188
+ "problem_type": null,
189
+ "projection_dim": 0,
190
+ "pruned_heads": {},
191
+ "remove_invalid_values": false,
192
+ "repetition_penalty": 1.0,
193
+ "return_dict": true,
194
+ "return_dict_in_generate": false,
195
+ "sep_token_id": null,
196
+ "suppress_tokens": null,
197
+ "task_specific_params": null,
198
+ "temperature": 1.0,
199
+ "tf_legacy_loss": false,
200
+ "tie_encoder_decoder": false,
201
+ "tie_word_embeddings": true,
202
+ "tokenizer_class": null,
203
+ "top_k": 50,
204
+ "top_p": 1.0,
205
+ "torch_dtype": null,
206
+ "torchscript": false,
207
+ "type_vocab_size": 2,
208
+ "typical_p": 1.0,
209
+ "use_bfloat16": false,
210
+ "vocab_size": 30522
211
+ },
212
+ "reduce_loss": false,
213
+ "retrieval_batch_size": 8,
214
+ "retrieval_vector_size": 768,
215
+ "title_sep": " / ",
216
+ "torch_dtype": "float32",
217
+ "transformers_version": "4.32.0",
218
+ "use_cache": true,
219
+ "use_dummy_dataset": true,
220
+ "vocab_size": null
221
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
5
+ "early_stopping": true,
6
+ "eos_token_id": 2,
7
+ "forced_bos_token_id": 0,
8
+ "forced_eos_token_id": 2,
9
+ "no_repeat_ngram_size": 3,
10
+ "num_beams": 4,
11
+ "pad_token_id": 1,
12
+ "transformers_version": "4.32.0"
13
+ }
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
generator_tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
generator_tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 1024,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "tokenizer_class": "BartTokenizer",
13
+ "trim_offsets": true,
14
+ "unk_token": "<unk>"
15
+ }
generator_tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:235c54e0d93994482ec624d033c7f383c85377eaa28b2c0036eebcae3993ce57
3
+ size 2061181537
question_encoder_tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
question_encoder_tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
question_encoder_tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "DPRQuestionEncoderTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
question_encoder_tokenizer/vocab.txt ADDED
The diff for this file is too large to render. See raw diff