geonp commited on
Commit
9504571
·
1 Parent(s): 99196a5

Upload model

Browse files
Files changed (3) hide show
  1. config.json +290 -0
  2. generation_config.json +6 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "RetrievalLlamaEncDecModel"
4
+ ],
5
+ "decoder": {
6
+ "_name_or_path": "meta-llama/Llama-2-13b-hf",
7
+ "add_cross_attention": false,
8
+ "architectures": [
9
+ "LlamaForCausalLM"
10
+ ],
11
+ "attention_bias": false,
12
+ "bad_words_ids": null,
13
+ "begin_suppress_tokens": null,
14
+ "bos_token_id": 1,
15
+ "chunk_size_feed_forward": 0,
16
+ "cross_attention_hidden_size": null,
17
+ "decoder_start_token_id": null,
18
+ "diversity_penalty": 0.0,
19
+ "do_sample": false,
20
+ "early_stopping": false,
21
+ "encoder_no_repeat_ngram_size": 0,
22
+ "eos_token_id": 2,
23
+ "exponential_decay_length_penalty": null,
24
+ "finetuning_task": null,
25
+ "forced_bos_token_id": null,
26
+ "forced_eos_token_id": null,
27
+ "hidden_act": "silu",
28
+ "hidden_size": 5120,
29
+ "id2label": {
30
+ "0": "LABEL_0",
31
+ "1": "LABEL_1"
32
+ },
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 13824,
35
+ "is_decoder": false,
36
+ "is_encoder_decoder": false,
37
+ "label2id": {
38
+ "LABEL_0": 0,
39
+ "LABEL_1": 1
40
+ },
41
+ "length_penalty": 1.0,
42
+ "lora_alpha": 16,
43
+ "lora_rank": 64,
44
+ "max_doc_len": 512,
45
+ "max_length": 20,
46
+ "max_position_embeddings": 4096,
47
+ "min_length": 0,
48
+ "model_type": "retrievalllama",
49
+ "no_repeat_ngram_size": 0,
50
+ "num_attention_heads": 40,
51
+ "num_beam_groups": 1,
52
+ "num_beams": 1,
53
+ "num_hidden_layers": 40,
54
+ "num_key_value_heads": 40,
55
+ "num_return_sequences": 1,
56
+ "output_attentions": false,
57
+ "output_hidden_states": false,
58
+ "output_scores": false,
59
+ "pad_token_id": null,
60
+ "prefix": null,
61
+ "pretraining_tp": 1,
62
+ "problem_type": null,
63
+ "pruned_heads": {},
64
+ "quantization_config": {
65
+ "bnb_4bit_compute_dtype": "float32",
66
+ "bnb_4bit_quant_type": "nf4",
67
+ "bnb_4bit_use_double_quant": true,
68
+ "llm_int8_enable_fp32_cpu_offload": false,
69
+ "llm_int8_has_fp16_weight": false,
70
+ "llm_int8_skip_modules": null,
71
+ "llm_int8_threshold": 6.0,
72
+ "load_in_4bit": true,
73
+ "load_in_8bit": false,
74
+ "quant_method": "bitsandbytes"
75
+ },
76
+ "remove_invalid_values": false,
77
+ "repetition_penalty": 1.0,
78
+ "return_dict": true,
79
+ "return_dict_in_generate": false,
80
+ "rms_norm_eps": 1e-05,
81
+ "rope_scaling": null,
82
+ "rope_theta": 10000.0,
83
+ "sep_token_id": null,
84
+ "suppress_tokens": null,
85
+ "task_specific_params": null,
86
+ "temperature": 1.0,
87
+ "tf_legacy_loss": false,
88
+ "tie_encoder_decoder": false,
89
+ "tie_word_embeddings": false,
90
+ "tokenizer_class": null,
91
+ "top_k": 50,
92
+ "top_p": 1.0,
93
+ "torch_dtype": "float16",
94
+ "torchscript": false,
95
+ "typical_p": 1.0,
96
+ "use_bfloat16": false,
97
+ "use_cache": true,
98
+ "vocab_size": 32000
99
+ },
100
+ "encoder": {
101
+ "_name_or_path": "",
102
+ "add_cross_attention": false,
103
+ "architectures": null,
104
+ "bad_words_ids": null,
105
+ "begin_suppress_tokens": null,
106
+ "bert_config": {
107
+ "_name_or_path": "",
108
+ "add_cross_attention": false,
109
+ "architectures": null,
110
+ "attention_probs_dropout_prob": 0.1,
111
+ "bad_words_ids": null,
112
+ "begin_suppress_tokens": null,
113
+ "bos_token_id": null,
114
+ "chunk_size_feed_forward": 0,
115
+ "classifier_dropout": null,
116
+ "cross_attention_hidden_size": null,
117
+ "decoder_start_token_id": null,
118
+ "diversity_penalty": 0.0,
119
+ "do_sample": false,
120
+ "early_stopping": false,
121
+ "encoder_no_repeat_ngram_size": 0,
122
+ "eos_token_id": null,
123
+ "exponential_decay_length_penalty": null,
124
+ "finetuning_task": null,
125
+ "forced_bos_token_id": null,
126
+ "forced_eos_token_id": null,
127
+ "gradient_checkpointing": false,
128
+ "hidden_act": "gelu",
129
+ "hidden_dropout_prob": 0.1,
130
+ "hidden_size": 768,
131
+ "id2label": {
132
+ "0": "LABEL_0",
133
+ "1": "LABEL_1"
134
+ },
135
+ "intermediate_size": 3072,
136
+ "is_decoder": false,
137
+ "is_encoder_decoder": false,
138
+ "label2id": {
139
+ "LABEL_0": 0,
140
+ "LABEL_1": 1
141
+ },
142
+ "layer_norm_eps": 1e-12,
143
+ "length_penalty": 1.0,
144
+ "max_length": 20,
145
+ "max_position_embeddings": 512,
146
+ "min_length": 0,
147
+ "model_type": "retrievalllama",
148
+ "no_repeat_ngram_size": 0,
149
+ "num_attention_heads": 12,
150
+ "num_beam_groups": 1,
151
+ "num_beams": 1,
152
+ "num_hidden_layers": 12,
153
+ "num_return_sequences": 1,
154
+ "output_attentions": false,
155
+ "output_hidden_states": false,
156
+ "output_scores": false,
157
+ "pad_token_id": null,
158
+ "position_embedding_type": "absolute",
159
+ "prefix": null,
160
+ "problem_type": null,
161
+ "pruned_heads": {},
162
+ "remove_invalid_values": false,
163
+ "repetition_penalty": 1.0,
164
+ "return_dict": true,
165
+ "return_dict_in_generate": false,
166
+ "sep_token_id": null,
167
+ "suppress_tokens": null,
168
+ "task_specific_params": null,
169
+ "temperature": 1.0,
170
+ "tf_legacy_loss": false,
171
+ "tie_encoder_decoder": false,
172
+ "tie_word_embeddings": true,
173
+ "tokenizer_class": null,
174
+ "top_k": 50,
175
+ "top_p": 1.0,
176
+ "torch_dtype": null,
177
+ "torchscript": false,
178
+ "type_vocab_size": 2,
179
+ "typical_p": 1.0,
180
+ "use_bfloat16": false,
181
+ "use_cache": true,
182
+ "vocab_size": 32004
183
+ },
184
+ "bos_token_id": null,
185
+ "chunk_size_feed_forward": 0,
186
+ "colbert_accumsteps": 1,
187
+ "colbert_amp": true,
188
+ "colbert_attend_to_mask_tokens": false,
189
+ "colbert_bsize": 8,
190
+ "colbert_centroid_score_thresh": null,
191
+ "colbert_checkpoint": "bert-base-uncased",
192
+ "colbert_collection": "../data/docs/qa_collection.tsv",
193
+ "colbert_dim": 128,
194
+ "colbert_distillation_alpha": 1.0,
195
+ "colbert_doc_maxlen": 220,
196
+ "colbert_doc_token": "[D]",
197
+ "colbert_experiment": "legal_qa_new_equaldist",
198
+ "colbert_ignore_scores": false,
199
+ "colbert_index_name": null,
200
+ "colbert_index_path": null,
201
+ "colbert_index_root": null,
202
+ "colbert_interaction": "colbert",
203
+ "colbert_kmeans_niters": 4,
204
+ "colbert_lr": 3e-06,
205
+ "colbert_mask_punctuation": true,
206
+ "colbert_maxsteps": 500000,
207
+ "colbert_model_name": null,
208
+ "colbert_name": "2023-08/03/17.08.17",
209
+ "colbert_nbits": 1,
210
+ "colbert_ncells": null,
211
+ "colbert_ndocs": null,
212
+ "colbert_nranks": 4,
213
+ "colbert_nway": 2,
214
+ "colbert_overwrite": false,
215
+ "colbert_queries": "../data/docs/qa_queries.tsv",
216
+ "colbert_query_maxlen": 32,
217
+ "colbert_query_token": "[Q]",
218
+ "colbert_rank": 0,
219
+ "colbert_relu": false,
220
+ "colbert_reranker": false,
221
+ "colbert_root": "/home/daniel/retrieval_gpark/ColBERT/experiments",
222
+ "colbert_save_every": 1000,
223
+ "colbert_similarity": "cosine",
224
+ "colbert_triples": "../data/docs/qa_triples.tsv",
225
+ "colbert_use_ib_negatives": false,
226
+ "colbert_warmup": null,
227
+ "colbert_warmup_bert": null,
228
+ "cross_attention_hidden_size": null,
229
+ "decoder_start_token_id": null,
230
+ "diversity_penalty": 0.0,
231
+ "do_sample": false,
232
+ "early_stopping": false,
233
+ "encoder_no_repeat_ngram_size": 0,
234
+ "eos_token_id": null,
235
+ "exponential_decay_length_penalty": null,
236
+ "finetuning_task": null,
237
+ "forced_bos_token_id": null,
238
+ "forced_eos_token_id": null,
239
+ "id2label": {
240
+ "0": "LABEL_0",
241
+ "1": "LABEL_1"
242
+ },
243
+ "indexer_index_path": "./../../../../../retrieval_gpark/retrieval_data/legal_colbert_llamatok_ckpt/indexes/wiki_docs_all",
244
+ "initializer_range": 0.02,
245
+ "is_decoder": false,
246
+ "is_encoder_decoder": false,
247
+ "label2id": {
248
+ "LABEL_0": 0,
249
+ "LABEL_1": 1
250
+ },
251
+ "length_penalty": 1.0,
252
+ "max_length": 20,
253
+ "min_length": 0,
254
+ "model_type": "retrievalllama",
255
+ "no_repeat_ngram_size": 0,
256
+ "num_beam_groups": 1,
257
+ "num_beams": 1,
258
+ "num_return_sequences": 1,
259
+ "output_attentions": false,
260
+ "output_hidden_states": false,
261
+ "output_scores": false,
262
+ "pad_token_id": null,
263
+ "prefix": null,
264
+ "problem_type": null,
265
+ "pruned_heads": {},
266
+ "remove_invalid_values": false,
267
+ "repetition_penalty": 1.0,
268
+ "retrieval_file_name": "./../../../../../retrieval_gpark/retrieval_data/tokenized_wiki_docs_all_collection.tsv",
269
+ "return_dict": true,
270
+ "return_dict_in_generate": false,
271
+ "sep_token_id": null,
272
+ "suppress_tokens": null,
273
+ "task_specific_params": null,
274
+ "temperature": 1.0,
275
+ "tf_legacy_loss": false,
276
+ "tie_encoder_decoder": false,
277
+ "tie_word_embeddings": true,
278
+ "tokenizer_class": null,
279
+ "top_k": 50,
280
+ "top_p": 1.0,
281
+ "torch_dtype": null,
282
+ "torchscript": false,
283
+ "typical_p": 1.0,
284
+ "use_bfloat16": false
285
+ },
286
+ "is_encoder_decoder": true,
287
+ "model_type": "retrievalllama",
288
+ "torch_dtype": "float32",
289
+ "transformers_version": "4.35.0.dev0"
290
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.35.0.dev0"
6
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa3e12c8d7f36b1e1a5d300d1bff5a5e5378befb84cd7bd6f509d8bc9f0be6af
3
+ size 9100935505