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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "ccdv/lsg-bart-large-4096",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"adaptive": true,
|
6 |
+
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": false,
|
8 |
+
"architectures": [
|
9 |
+
"BartForConditionalGeneration"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.1,
|
12 |
+
"auto_map": {
|
13 |
+
"AutoConfig": "ccdv/lsg-bart-large-4096--modeling_lsg_bart.LSGBartConfig",
|
14 |
+
"AutoModel": "ccdv/lsg-bart-large-4096--modeling_lsg_bart.LSGBartModel",
|
15 |
+
"AutoModelForCausalLM": "ccdv/lsg-bart-large-4096--modeling_lsg_bart.LSGBartForCausalLM",
|
16 |
+
"AutoModelForQuestionAnswering": "ccdv/lsg-bart-large-4096--modeling_lsg_bart.LSGBartForQuestionAnswering",
|
17 |
+
"AutoModelForSeq2SeqLM": "ccdv/lsg-bart-large-4096--modeling_lsg_bart.LSGBartForConditionalGeneration",
|
18 |
+
"AutoModelForSequenceClassification": "ccdv/lsg-bart-large-4096--modeling_lsg_bart.LSGBartForSequenceClassification"
|
19 |
+
},
|
20 |
+
"base_model_prefix": "lsg",
|
21 |
+
"block_size": 128,
|
22 |
+
"bos_token_id": 0,
|
23 |
+
"classif_dropout": 0.1,
|
24 |
+
"classifier_dropout": 0.0,
|
25 |
+
"d_model": 1024,
|
26 |
+
"decoder_attention_heads": 16,
|
27 |
+
"decoder_ffn_dim": 4096,
|
28 |
+
"decoder_layerdrop": 0.0,
|
29 |
+
"decoder_layers": 12,
|
30 |
+
"decoder_start_token_id": 2,
|
31 |
+
"dropout": 0.1,
|
32 |
+
"early_stopping": true,
|
33 |
+
"encoder_attention_heads": 16,
|
34 |
+
"encoder_ffn_dim": 4096,
|
35 |
+
"encoder_layerdrop": 0.0,
|
36 |
+
"encoder_layers": 12,
|
37 |
+
"eos_token_id": 2,
|
38 |
+
"forced_bos_token_id": 0,
|
39 |
+
"forced_eos_token_id": 2,
|
40 |
+
"gradient_checkpointing": false,
|
41 |
+
"id2label": {
|
42 |
+
"0": "LABEL_0",
|
43 |
+
"1": "LABEL_1",
|
44 |
+
"2": "LABEL_2"
|
45 |
+
},
|
46 |
+
"init_std": 0.02,
|
47 |
+
"is_encoder_decoder": true,
|
48 |
+
"label2id": {
|
49 |
+
"LABEL_0": 0,
|
50 |
+
"LABEL_1": 1,
|
51 |
+
"LABEL_2": 2
|
52 |
+
},
|
53 |
+
"lsh_num_pre_rounds": 1,
|
54 |
+
"mask_first_token": false,
|
55 |
+
"max_position_embeddings": 4096,
|
56 |
+
"model_type": "bart",
|
57 |
+
"no_repeat_ngram_size": 3,
|
58 |
+
"normalize_before": false,
|
59 |
+
"num_beams": 4,
|
60 |
+
"num_global_tokens": 1,
|
61 |
+
"num_hidden_layers": 12,
|
62 |
+
"pad_token_id": 1,
|
63 |
+
"pass_global_tokens_to_decoder": true,
|
64 |
+
"pool_with_global": true,
|
65 |
+
"quantization_config": {
|
66 |
+
"batch_size": 1,
|
67 |
+
"bits": 2,
|
68 |
+
"block_name_to_quantize": "model.decoder.layers",
|
69 |
+
"damp_percent": 0.1,
|
70 |
+
"dataset": "c4-new",
|
71 |
+
"desc_act": false,
|
72 |
+
"disable_exllama": false,
|
73 |
+
"group_size": 128,
|
74 |
+
"model_seqlen": 4096,
|
75 |
+
"module_name_preceding_first_block": [
|
76 |
+
"model.shared",
|
77 |
+
"model.encoder.embed_tokens",
|
78 |
+
"model.encoder.embed_positions",
|
79 |
+
"model.encoder.layers.0.self_attn.k_proj",
|
80 |
+
"model.encoder.layers.0.self_attn.v_proj",
|
81 |
+
"model.encoder.layers.0.self_attn.q_proj",
|
82 |
+
"model.encoder.layers.0.self_attn.out_proj",
|
83 |
+
"model.encoder.layers.0.self_attn",
|
84 |
+
"model.encoder.layers.0.self_attn_layer_norm",
|
85 |
+
"model.encoder.layers.0.activation_fn",
|
86 |
+
"model.encoder.layers.0.fc1",
|
87 |
+
"model.encoder.layers.0.fc2",
|
88 |
+
"model.encoder.layers.0.final_layer_norm",
|
89 |
+
"model.encoder.layers.0",
|
90 |
+
"model.encoder.layers.1.self_attn.k_proj",
|
91 |
+
"model.encoder.layers.1.self_attn.v_proj",
|
92 |
+
"model.encoder.layers.1.self_attn.q_proj",
|
93 |
+
"model.encoder.layers.1.self_attn.out_proj",
|
94 |
+
"model.encoder.layers.1.self_attn",
|
95 |
+
"model.encoder.layers.1.self_attn_layer_norm",
|
96 |
+
"model.encoder.layers.1.activation_fn",
|
97 |
+
"model.encoder.layers.1.fc1",
|
98 |
+
"model.encoder.layers.1.fc2",
|
99 |
+
"model.encoder.layers.1.final_layer_norm",
|
100 |
+
"model.encoder.layers.1",
|
101 |
+
"model.encoder.layers.2.self_attn.k_proj",
|
102 |
+
"model.encoder.layers.2.self_attn.v_proj",
|
103 |
+
"model.encoder.layers.2.self_attn.q_proj",
|
104 |
+
"model.encoder.layers.2.self_attn.out_proj",
|
105 |
+
"model.encoder.layers.2.self_attn",
|
106 |
+
"model.encoder.layers.2.self_attn_layer_norm",
|
107 |
+
"model.encoder.layers.2.activation_fn",
|
108 |
+
"model.encoder.layers.2.fc1",
|
109 |
+
"model.encoder.layers.2.fc2",
|
110 |
+
"model.encoder.layers.2.final_layer_norm",
|
111 |
+
"model.encoder.layers.2",
|
112 |
+
"model.encoder.layers.3.self_attn.k_proj",
|
113 |
+
"model.encoder.layers.3.self_attn.v_proj",
|
114 |
+
"model.encoder.layers.3.self_attn.q_proj",
|
115 |
+
"model.encoder.layers.3.self_attn.out_proj",
|
116 |
+
"model.encoder.layers.3.self_attn",
|
117 |
+
"model.encoder.layers.3.self_attn_layer_norm",
|
118 |
+
"model.encoder.layers.3.activation_fn",
|
119 |
+
"model.encoder.layers.3.fc1",
|
120 |
+
"model.encoder.layers.3.fc2",
|
121 |
+
"model.encoder.layers.3.final_layer_norm",
|
122 |
+
"model.encoder.layers.3",
|
123 |
+
"model.encoder.layers.4.self_attn.k_proj",
|
124 |
+
"model.encoder.layers.4.self_attn.v_proj",
|
125 |
+
"model.encoder.layers.4.self_attn.q_proj",
|
126 |
+
"model.encoder.layers.4.self_attn.out_proj",
|
127 |
+
"model.encoder.layers.4.self_attn",
|
128 |
+
"model.encoder.layers.4.self_attn_layer_norm",
|
129 |
+
"model.encoder.layers.4.activation_fn",
|
130 |
+
"model.encoder.layers.4.fc1",
|
131 |
+
"model.encoder.layers.4.fc2",
|
132 |
+
"model.encoder.layers.4.final_layer_norm",
|
133 |
+
"model.encoder.layers.4",
|
134 |
+
"model.encoder.layers.5.self_attn.k_proj",
|
135 |
+
"model.encoder.layers.5.self_attn.v_proj",
|
136 |
+
"model.encoder.layers.5.self_attn.q_proj",
|
137 |
+
"model.encoder.layers.5.self_attn.out_proj",
|
138 |
+
"model.encoder.layers.5.self_attn",
|
139 |
+
"model.encoder.layers.5.self_attn_layer_norm",
|
140 |
+
"model.encoder.layers.5.activation_fn",
|
141 |
+
"model.encoder.layers.5.fc1",
|
142 |
+
"model.encoder.layers.5.fc2",
|
143 |
+
"model.encoder.layers.5.final_layer_norm",
|
144 |
+
"model.encoder.layers.5",
|
145 |
+
"model.encoder.layers.6.self_attn.k_proj",
|
146 |
+
"model.encoder.layers.6.self_attn.v_proj",
|
147 |
+
"model.encoder.layers.6.self_attn.q_proj",
|
148 |
+
"model.encoder.layers.6.self_attn.out_proj",
|
149 |
+
"model.encoder.layers.6.self_attn",
|
150 |
+
"model.encoder.layers.6.self_attn_layer_norm",
|
151 |
+
"model.encoder.layers.6.activation_fn",
|
152 |
+
"model.encoder.layers.6.fc1",
|
153 |
+
"model.encoder.layers.6.fc2",
|
154 |
+
"model.encoder.layers.6.final_layer_norm",
|
155 |
+
"model.encoder.layers.6",
|
156 |
+
"model.encoder.layers.7.self_attn.k_proj",
|
157 |
+
"model.encoder.layers.7.self_attn.v_proj",
|
158 |
+
"model.encoder.layers.7.self_attn.q_proj",
|
159 |
+
"model.encoder.layers.7.self_attn.out_proj",
|
160 |
+
"model.encoder.layers.7.self_attn",
|
161 |
+
"model.encoder.layers.7.self_attn_layer_norm",
|
162 |
+
"model.encoder.layers.7.activation_fn",
|
163 |
+
"model.encoder.layers.7.fc1",
|
164 |
+
"model.encoder.layers.7.fc2",
|
165 |
+
"model.encoder.layers.7.final_layer_norm",
|
166 |
+
"model.encoder.layers.7",
|
167 |
+
"model.encoder.layers.8.self_attn.k_proj",
|
168 |
+
"model.encoder.layers.8.self_attn.v_proj",
|
169 |
+
"model.encoder.layers.8.self_attn.q_proj",
|
170 |
+
"model.encoder.layers.8.self_attn.out_proj",
|
171 |
+
"model.encoder.layers.8.self_attn",
|
172 |
+
"model.encoder.layers.8.self_attn_layer_norm",
|
173 |
+
"model.encoder.layers.8.activation_fn",
|
174 |
+
"model.encoder.layers.8.fc1",
|
175 |
+
"model.encoder.layers.8.fc2",
|
176 |
+
"model.encoder.layers.8.final_layer_norm",
|
177 |
+
"model.encoder.layers.8",
|
178 |
+
"model.encoder.layers.9.self_attn.k_proj",
|
179 |
+
"model.encoder.layers.9.self_attn.v_proj",
|
180 |
+
"model.encoder.layers.9.self_attn.q_proj",
|
181 |
+
"model.encoder.layers.9.self_attn.out_proj",
|
182 |
+
"model.encoder.layers.9.self_attn",
|
183 |
+
"model.encoder.layers.9.self_attn_layer_norm",
|
184 |
+
"model.encoder.layers.9.activation_fn",
|
185 |
+
"model.encoder.layers.9.fc1",
|
186 |
+
"model.encoder.layers.9.fc2",
|
187 |
+
"model.encoder.layers.9.final_layer_norm",
|
188 |
+
"model.encoder.layers.9",
|
189 |
+
"model.encoder.layers.10.self_attn.k_proj",
|
190 |
+
"model.encoder.layers.10.self_attn.v_proj",
|
191 |
+
"model.encoder.layers.10.self_attn.q_proj",
|
192 |
+
"model.encoder.layers.10.self_attn.out_proj",
|
193 |
+
"model.encoder.layers.10.self_attn",
|
194 |
+
"model.encoder.layers.10.self_attn_layer_norm",
|
195 |
+
"model.encoder.layers.10.activation_fn",
|
196 |
+
"model.encoder.layers.10.fc1",
|
197 |
+
"model.encoder.layers.10.fc2",
|
198 |
+
"model.encoder.layers.10.final_layer_norm",
|
199 |
+
"model.encoder.layers.10",
|
200 |
+
"model.encoder.layers.11.self_attn.k_proj",
|
201 |
+
"model.encoder.layers.11.self_attn.v_proj",
|
202 |
+
"model.encoder.layers.11.self_attn.q_proj",
|
203 |
+
"model.encoder.layers.11.self_attn.out_proj",
|
204 |
+
"model.encoder.layers.11.self_attn",
|
205 |
+
"model.encoder.layers.11.self_attn_layer_norm",
|
206 |
+
"model.encoder.layers.11.activation_fn",
|
207 |
+
"model.encoder.layers.11.fc1",
|
208 |
+
"model.encoder.layers.11.fc2",
|
209 |
+
"model.encoder.layers.11.final_layer_norm",
|
210 |
+
"model.encoder.layers.11",
|
211 |
+
"model.encoder.layers",
|
212 |
+
"model.encoder.layernorm_embedding",
|
213 |
+
"model.encoder",
|
214 |
+
"model.decoder.embed_tokens",
|
215 |
+
"model.decoder.embed_positions"
|
216 |
+
],
|
217 |
+
"pad_token_id": null,
|
218 |
+
"quant_method": "gptq",
|
219 |
+
"sym": true,
|
220 |
+
"tokenizer": null,
|
221 |
+
"true_sequential": true,
|
222 |
+
"use_cuda_fp16": true
|
223 |
+
},
|
224 |
+
"scale_embedding": false,
|
225 |
+
"sparse_block_size": 128,
|
226 |
+
"sparsity_factor": 2,
|
227 |
+
"sparsity_type": "norm",
|
228 |
+
"task_specific_params": {
|
229 |
+
"summarization": {
|
230 |
+
"length_penalty": 1.0,
|
231 |
+
"max_length": 128,
|
232 |
+
"min_length": 12,
|
233 |
+
"num_beams": 4
|
234 |
+
},
|
235 |
+
"summarization_cnn": {
|
236 |
+
"length_penalty": 2.0,
|
237 |
+
"max_length": 142,
|
238 |
+
"min_length": 56,
|
239 |
+
"num_beams": 4
|
240 |
+
},
|
241 |
+
"summarization_xsum": {
|
242 |
+
"length_penalty": 1.0,
|
243 |
+
"max_length": 62,
|
244 |
+
"min_length": 11,
|
245 |
+
"num_beams": 6
|
246 |
+
}
|
247 |
+
},
|
248 |
+
"torch_dtype": "float16",
|
249 |
+
"transformers_version": "4.33.2",
|
250 |
+
"use_cache": true,
|
251 |
+
"vocab_size": 50265
|
252 |
+
}
|
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.33.2"
|
13 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bf3902039942cf09cb50810fd6d3ce995d8d8f05e4d7cb51074a854ae6d96ab5
|
3 |
+
size 683307189
|