nvrayzhang commited on
Commit
11f21e9
1 Parent(s): e0798a8
Files changed (2) hide show
  1. config.json +227 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "RagSequenceForGeneration"
4
+ ],
5
+ "context_max_length": 256,
6
+ "dataset": "wiki_dpr",
7
+ "dataset_split": "train",
8
+ "do_deduplication": true,
9
+ "do_marginalize": false,
10
+ "doc_sep": " // ",
11
+ "exclude_bos_score": false,
12
+ "forced_eos_token_id": 102,
13
+ "generator": {
14
+ "_name_or_path": "fnlp/bart-base-chinese",
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": 101,
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": 102,
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": 102,
46
+ "exponential_decay_length_penalty": null,
47
+ "finetuning_task": null,
48
+ "forced_bos_token_id": null,
49
+ "forced_eos_token_id": 102,
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": 512,
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": 0,
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,
110
+ "tie_encoder_decoder": false,
111
+ "tie_word_embeddings": true,
112
+ "tokenizer_class": null,
113
+ "top_k": 50,
114
+ "top_p": 1.0,
115
+ "torch_dtype": null,
116
+ "torchscript": false,
117
+ "transformers_version": "4.20.1",
118
+ "typical_p": 1.0,
119
+ "use_bfloat16": false,
120
+ "use_cache": true,
121
+ "vocab_size": 21128
122
+ },
123
+ "index_name": "custom",
124
+ "index_path": "test_run/dummy-kb/my_knowledge_dataset_hnsw_index.faiss",
125
+ "is_encoder_decoder": true,
126
+ "label_smoothing": 0.0,
127
+ "max_combined_length": 300,
128
+ "model_type": "rag",
129
+ "n_docs": 10,
130
+ "output_retrieved": false,
131
+ "passages_path": "test_run/dummy-kb/my_knowledge_dataset",
132
+ "query_max_length": 64,
133
+ "question_encoder": {
134
+ "_name_or_path": "hfl/chinese-macbert-base",
135
+ "add_cross_attention": false,
136
+ "architectures": [
137
+ "BertForMaskedLM"
138
+ ],
139
+ "attention_probs_dropout_prob": 0.1,
140
+ "bad_words_ids": null,
141
+ "bos_token_id": null,
142
+ "chunk_size_feed_forward": 0,
143
+ "classifier_dropout": null,
144
+ "cross_attention_hidden_size": null,
145
+ "decoder_start_token_id": null,
146
+ "directionality": "bidi",
147
+ "diversity_penalty": 0.0,
148
+ "do_sample": false,
149
+ "early_stopping": false,
150
+ "encoder_no_repeat_ngram_size": 0,
151
+ "eos_token_id": null,
152
+ "exponential_decay_length_penalty": null,
153
+ "finetuning_task": null,
154
+ "forced_bos_token_id": null,
155
+ "forced_eos_token_id": null,
156
+ "gradient_checkpointing": false,
157
+ "hidden_act": "gelu",
158
+ "hidden_dropout_prob": 0.1,
159
+ "hidden_size": 768,
160
+ "id2label": {
161
+ "0": "LABEL_0",
162
+ "1": "LABEL_1"
163
+ },
164
+ "initializer_range": 0.02,
165
+ "intermediate_size": 3072,
166
+ "is_decoder": false,
167
+ "is_encoder_decoder": false,
168
+ "label2id": {
169
+ "LABEL_0": 0,
170
+ "LABEL_1": 1
171
+ },
172
+ "layer_norm_eps": 1e-12,
173
+ "length_penalty": 1.0,
174
+ "max_length": 20,
175
+ "max_position_embeddings": 512,
176
+ "min_length": 0,
177
+ "model_type": "bert",
178
+ "no_repeat_ngram_size": 0,
179
+ "num_attention_heads": 12,
180
+ "num_beam_groups": 1,
181
+ "num_beams": 1,
182
+ "num_hidden_layers": 12,
183
+ "num_return_sequences": 1,
184
+ "output_attentions": false,
185
+ "output_hidden_states": false,
186
+ "output_scores": false,
187
+ "pad_token_id": 0,
188
+ "pooler_fc_size": 768,
189
+ "pooler_num_attention_heads": 12,
190
+ "pooler_num_fc_layers": 3,
191
+ "pooler_size_per_head": 128,
192
+ "pooler_type": "first_token_transform",
193
+ "position_embedding_type": "absolute",
194
+ "prefix": null,
195
+ "problem_type": null,
196
+ "pruned_heads": {},
197
+ "remove_invalid_values": false,
198
+ "repetition_penalty": 1.0,
199
+ "return_dict": true,
200
+ "return_dict_in_generate": false,
201
+ "sep_token_id": null,
202
+ "task_specific_params": null,
203
+ "temperature": 1.0,
204
+ "tie_encoder_decoder": false,
205
+ "tie_word_embeddings": true,
206
+ "tokenizer_class": null,
207
+ "top_k": 50,
208
+ "top_p": 1.0,
209
+ "torch_dtype": null,
210
+ "torchscript": false,
211
+ "transformers_version": "4.20.1",
212
+ "type_vocab_size": 2,
213
+ "typical_p": 1.0,
214
+ "use_bfloat16": false,
215
+ "use_cache": true,
216
+ "vocab_size": 21128
217
+ },
218
+ "reduce_loss": false,
219
+ "retrieval_batch_size": 8,
220
+ "retrieval_vector_size": 768,
221
+ "title_sep": " / ",
222
+ "torch_dtype": "float32",
223
+ "transformers_version": null,
224
+ "use_cache": true,
225
+ "use_dummy_dataset": false,
226
+ "vocab_size": null
227
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a388fd66419b7669eb9cb6b27b8687341a510beb47f78606fb8cfef5794ba2d3
3
+ size 874340393