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