dragomir01 commited on
Commit
c2a7e8d
·
verified ·
1 Parent(s): 9e0bee0

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "c269b105d2322e9386b629a0a8663d20863a5167",
3
+ "_name_or_path": "facebook/rag-token-nq",
4
+ "architectures": [
5
+ "RagTokenForGeneration"
6
+ ],
7
+ "bad_words_ids": [
8
+ [
9
+ 0,
10
+ 0
11
+ ]
12
+ ],
13
+ "bos_token_id": 0,
14
+ "dataset": "wiki_dpr",
15
+ "dataset_split": "train",
16
+ "decoder_start_token_id": 2,
17
+ "do_deduplication": true,
18
+ "do_marginalize": false,
19
+ "doc_sep": " // ",
20
+ "eos_token_id": 2,
21
+ "exclude_bos_score": false,
22
+ "forced_eos_token_id": 2,
23
+ "generator": {
24
+ "_name_or_path": "",
25
+ "_num_labels": 3,
26
+ "activation_dropout": 0.0,
27
+ "activation_function": "gelu",
28
+ "add_bias_logits": false,
29
+ "add_cross_attention": false,
30
+ "add_final_layer_norm": false,
31
+ "architectures": [
32
+ "BartForConditionalGeneration"
33
+ ],
34
+ "attention_dropout": 0.0,
35
+ "bad_words_ids": null,
36
+ "begin_suppress_tokens": null,
37
+ "bos_token_id": 0,
38
+ "chunk_size_feed_forward": 0,
39
+ "classif_dropout": 0.0,
40
+ "classifier_dropout": 0.0,
41
+ "cross_attention_hidden_size": null,
42
+ "d_model": 1024,
43
+ "decoder_attention_heads": 16,
44
+ "decoder_ffn_dim": 4096,
45
+ "decoder_layerdrop": 0.0,
46
+ "decoder_layers": 12,
47
+ "decoder_start_token_id": 2,
48
+ "diversity_penalty": 0.0,
49
+ "do_sample": false,
50
+ "dropout": 0.1,
51
+ "early_stopping": false,
52
+ "encoder_attention_heads": 16,
53
+ "encoder_ffn_dim": 4096,
54
+ "encoder_layerdrop": 0.0,
55
+ "encoder_layers": 12,
56
+ "encoder_no_repeat_ngram_size": 0,
57
+ "eos_token_id": 2,
58
+ "exponential_decay_length_penalty": null,
59
+ "extra_pos_embeddings": 2,
60
+ "finetuning_task": null,
61
+ "force_bos_token_to_be_generated": true,
62
+ "forced_bos_token_id": 0,
63
+ "forced_eos_token_id": 2,
64
+ "id2label": {
65
+ "0": "LABEL_0",
66
+ "1": "LABEL_1",
67
+ "2": "LABEL_2"
68
+ },
69
+ "init_std": 0.02,
70
+ "is_decoder": false,
71
+ "is_encoder_decoder": true,
72
+ "label2id": {
73
+ "LABEL_0": 0,
74
+ "LABEL_1": 1,
75
+ "LABEL_2": 2
76
+ },
77
+ "length_penalty": 1.0,
78
+ "max_length": 20,
79
+ "max_position_embeddings": 1024,
80
+ "min_length": 0,
81
+ "model_type": "bart",
82
+ "no_repeat_ngram_size": 0,
83
+ "normalize_before": false,
84
+ "normalize_embedding": true,
85
+ "num_beam_groups": 1,
86
+ "num_beams": 1,
87
+ "num_hidden_layers": 12,
88
+ "num_return_sequences": 1,
89
+ "output_attentions": false,
90
+ "output_hidden_states": false,
91
+ "output_past": false,
92
+ "output_scores": false,
93
+ "pad_token_id": 1,
94
+ "prefix": null,
95
+ "problem_type": null,
96
+ "pruned_heads": {},
97
+ "remove_invalid_values": false,
98
+ "repetition_penalty": 1.0,
99
+ "return_dict": true,
100
+ "return_dict_in_generate": false,
101
+ "scale_embedding": false,
102
+ "sep_token_id": null,
103
+ "static_position_embeddings": false,
104
+ "suppress_tokens": null,
105
+ "task_specific_params": {
106
+ "summarization": {
107
+ "early_stopping": true,
108
+ "length_penalty": 2.0,
109
+ "max_length": 142,
110
+ "min_length": 56,
111
+ "no_repeat_ngram_size": 3,
112
+ "num_beams": 4
113
+ }
114
+ },
115
+ "temperature": 1.0,
116
+ "tf_legacy_loss": false,
117
+ "tie_encoder_decoder": false,
118
+ "tie_word_embeddings": true,
119
+ "tokenizer_class": null,
120
+ "top_k": 50,
121
+ "top_p": 1.0,
122
+ "torch_dtype": null,
123
+ "torchscript": false,
124
+ "transformers_version": "4.28.1",
125
+ "typical_p": 1.0,
126
+ "use_bfloat16": false,
127
+ "use_cache": true,
128
+ "vocab_size": 50265
129
+ },
130
+ "index_name": "legacy",
131
+ "index_path": null,
132
+ "is_encoder_decoder": true,
133
+ "label_smoothing": 0.0,
134
+ "max_combined_length": 300,
135
+ "max_length": 50,
136
+ "min_length": 1,
137
+ "model_type": "rag",
138
+ "n_docs": 5,
139
+ "num_beams": 4,
140
+ "output_retrieved": false,
141
+ "pad_token_id": 1,
142
+ "passages_path": null,
143
+ "question_encoder": {
144
+ "_name_or_path": "",
145
+ "add_cross_attention": false,
146
+ "architectures": [
147
+ "DPRQuestionEncoder"
148
+ ],
149
+ "attention_probs_dropout_prob": 0.1,
150
+ "bad_words_ids": null,
151
+ "begin_suppress_tokens": null,
152
+ "bos_token_id": null,
153
+ "chunk_size_feed_forward": 0,
154
+ "cross_attention_hidden_size": null,
155
+ "decoder_start_token_id": null,
156
+ "diversity_penalty": 0.0,
157
+ "do_sample": false,
158
+ "early_stopping": false,
159
+ "encoder_no_repeat_ngram_size": 0,
160
+ "eos_token_id": null,
161
+ "exponential_decay_length_penalty": null,
162
+ "finetuning_task": null,
163
+ "forced_bos_token_id": null,
164
+ "forced_eos_token_id": null,
165
+ "gradient_checkpointing": false,
166
+ "hidden_act": "gelu",
167
+ "hidden_dropout_prob": 0.1,
168
+ "hidden_size": 768,
169
+ "id2label": {
170
+ "0": "LABEL_0",
171
+ "1": "LABEL_1"
172
+ },
173
+ "initializer_range": 0.02,
174
+ "intermediate_size": 3072,
175
+ "is_decoder": false,
176
+ "is_encoder_decoder": false,
177
+ "label2id": {
178
+ "LABEL_0": 0,
179
+ "LABEL_1": 1
180
+ },
181
+ "layer_norm_eps": 1e-12,
182
+ "length_penalty": 1.0,
183
+ "max_length": 20,
184
+ "max_position_embeddings": 512,
185
+ "min_length": 0,
186
+ "model_type": "dpr",
187
+ "no_repeat_ngram_size": 0,
188
+ "num_attention_heads": 12,
189
+ "num_beam_groups": 1,
190
+ "num_beams": 1,
191
+ "num_hidden_layers": 12,
192
+ "num_return_sequences": 1,
193
+ "output_attentions": false,
194
+ "output_hidden_states": false,
195
+ "output_scores": false,
196
+ "pad_token_id": 0,
197
+ "position_embedding_type": "absolute",
198
+ "prefix": null,
199
+ "problem_type": null,
200
+ "projection_dim": 0,
201
+ "pruned_heads": {},
202
+ "remove_invalid_values": false,
203
+ "repetition_penalty": 1.0,
204
+ "return_dict": false,
205
+ "return_dict_in_generate": false,
206
+ "sep_token_id": null,
207
+ "suppress_tokens": null,
208
+ "task_specific_params": null,
209
+ "temperature": 1.0,
210
+ "tf_legacy_loss": false,
211
+ "tie_encoder_decoder": false,
212
+ "tie_word_embeddings": true,
213
+ "tokenizer_class": null,
214
+ "top_k": 50,
215
+ "top_p": 1.0,
216
+ "torch_dtype": null,
217
+ "torchscript": false,
218
+ "transformers_version": "4.28.1",
219
+ "type_vocab_size": 2,
220
+ "typical_p": 1.0,
221
+ "use_bfloat16": false,
222
+ "use_cache": true,
223
+ "vocab_size": 30522
224
+ },
225
+ "reduce_loss": false,
226
+ "retrieval_batch_size": 8,
227
+ "retrieval_vector_size": 768,
228
+ "title_sep": " / ",
229
+ "torch_dtype": "float32",
230
+ "transformers_version": null,
231
+ "use_cache": true,
232
+ "use_dummy_dataset": false,
233
+ "vocab_size": null
234
+ }
generation_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 0,
6
+ 0
7
+ ]
8
+ ],
9
+ "bos_token_id": 0,
10
+ "decoder_start_token_id": 2,
11
+ "eos_token_id": 2,
12
+ "forced_bos_token_id": 0,
13
+ "forced_eos_token_id": 2,
14
+ "max_length": 50,
15
+ "min_length": 1,
16
+ "num_beams": 4,
17
+ "pad_token_id": 1,
18
+ "transformers_version": "4.28.1"
19
+ }
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,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
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,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "clean_up_tokenization_spaces": true,
12
+ "cls_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "eos_token": {
21
+ "__type": "AddedToken",
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "errors": "replace",
29
+ "mask_token": {
30
+ "__type": "AddedToken",
31
+ "content": "<mask>",
32
+ "lstrip": true,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "model_max_length": 1024,
38
+ "pad_token": {
39
+ "__type": "AddedToken",
40
+ "content": "<pad>",
41
+ "lstrip": false,
42
+ "normalized": true,
43
+ "rstrip": false,
44
+ "single_word": false
45
+ },
46
+ "sep_token": {
47
+ "__type": "AddedToken",
48
+ "content": "</s>",
49
+ "lstrip": false,
50
+ "normalized": true,
51
+ "rstrip": false,
52
+ "single_word": false
53
+ },
54
+ "tokenizer_class": "BartTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": {
57
+ "__type": "AddedToken",
58
+ "content": "<unk>",
59
+ "lstrip": false,
60
+ "normalized": true,
61
+ "rstrip": false,
62
+ "single_word": false
63
+ }
64
+ }
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:b6aa6e94a5540cb5b68409add8a67ad4711e9d9b71074e61e04e030b33a1b1a1
3
+ size 2061185957
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": true,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 512,
8
+ "never_split": null,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "DPRQuestionEncoderTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
question_encoder_tokenizer/vocab.txt ADDED
The diff for this file is too large to render. See raw diff