OPEA
/

Safetensors
mllama
4-bit precision
intel/auto-round
wenhuach commited on
Commit
528bfb1
1 Parent(s): 091d973

Signed-off-by: wenhuach <wenhuach87@gmail.com>

Files changed (2) hide show
  1. config.json +293 -0
  2. quantization_config.json +67 -0
config.json ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/models/Llama-3.2-11B-Vision-Instruct",
3
+ "architectures": [
4
+ "MllamaForConditionalGeneration"
5
+ ],
6
+ "image_token_index": 128256,
7
+ "model_type": "mllama",
8
+ "quantization_config": {
9
+ "amp": true,
10
+ "autoround_version": "0.4.0.dev",
11
+ "backend": "auto_round:gptq:exllamav2",
12
+ "batch_size": 1,
13
+ "bits": 4,
14
+ "data_type": "int",
15
+ "dataset": "/dataset/vlm/vlm_eval_dataset.json",
16
+ "enable_minmax_tuning": true,
17
+ "enable_norm_bias_tuning": false,
18
+ "enable_quanted_input": true,
19
+ "gradient_accumulate_steps": 8,
20
+ "group_size": 128,
21
+ "iters": 1000,
22
+ "low_gpu_mem_usage": false,
23
+ "lr": 0.001,
24
+ "minmax_lr": 0.001,
25
+ "nsamples": 512,
26
+ "quant_method": "intel/auto-round",
27
+ "scale_dtype": "torch.float16",
28
+ "seqlen": 512,
29
+ "sym": true,
30
+ "to_quant_block_names": [
31
+ [
32
+ "language_model.model.layers.0",
33
+ "language_model.model.layers.1",
34
+ "language_model.model.layers.2",
35
+ "language_model.model.layers.3",
36
+ "language_model.model.layers.4",
37
+ "language_model.model.layers.5",
38
+ "language_model.model.layers.6",
39
+ "language_model.model.layers.7",
40
+ "language_model.model.layers.8",
41
+ "language_model.model.layers.9",
42
+ "language_model.model.layers.10",
43
+ "language_model.model.layers.11",
44
+ "language_model.model.layers.12",
45
+ "language_model.model.layers.13",
46
+ "language_model.model.layers.14",
47
+ "language_model.model.layers.15",
48
+ "language_model.model.layers.16",
49
+ "language_model.model.layers.17",
50
+ "language_model.model.layers.18",
51
+ "language_model.model.layers.19",
52
+ "language_model.model.layers.20",
53
+ "language_model.model.layers.21",
54
+ "language_model.model.layers.22",
55
+ "language_model.model.layers.23",
56
+ "language_model.model.layers.24",
57
+ "language_model.model.layers.25",
58
+ "language_model.model.layers.26",
59
+ "language_model.model.layers.27",
60
+ "language_model.model.layers.28",
61
+ "language_model.model.layers.29",
62
+ "language_model.model.layers.30",
63
+ "language_model.model.layers.31",
64
+ "language_model.model.layers.32",
65
+ "language_model.model.layers.33",
66
+ "language_model.model.layers.34",
67
+ "language_model.model.layers.35",
68
+ "language_model.model.layers.36",
69
+ "language_model.model.layers.37",
70
+ "language_model.model.layers.38",
71
+ "language_model.model.layers.39"
72
+ ]
73
+ ]
74
+ },
75
+ "text_config": {
76
+ "_attn_implementation_autoset": false,
77
+ "_name_or_path": "",
78
+ "add_cross_attention": false,
79
+ "architectures": null,
80
+ "bad_words_ids": null,
81
+ "begin_suppress_tokens": null,
82
+ "bos_token_id": 128000,
83
+ "chunk_size_feed_forward": 0,
84
+ "cross_attention_hidden_size": null,
85
+ "cross_attention_layers": [
86
+ 3,
87
+ 8,
88
+ 13,
89
+ 18,
90
+ 23,
91
+ 28,
92
+ 33,
93
+ 38
94
+ ],
95
+ "decoder_start_token_id": null,
96
+ "diversity_penalty": 0.0,
97
+ "do_sample": false,
98
+ "dropout": 0,
99
+ "early_stopping": false,
100
+ "encoder_no_repeat_ngram_size": 0,
101
+ "eos_token_id": [
102
+ 128001,
103
+ 128008,
104
+ 128009
105
+ ],
106
+ "exponential_decay_length_penalty": null,
107
+ "finetuning_task": null,
108
+ "forced_bos_token_id": null,
109
+ "forced_eos_token_id": null,
110
+ "hidden_act": "silu",
111
+ "hidden_size": 4096,
112
+ "id2label": {
113
+ "0": "LABEL_0",
114
+ "1": "LABEL_1"
115
+ },
116
+ "initializer_range": 0.02,
117
+ "intermediate_size": 14336,
118
+ "is_decoder": false,
119
+ "is_encoder_decoder": false,
120
+ "label2id": {
121
+ "LABEL_0": 0,
122
+ "LABEL_1": 1
123
+ },
124
+ "length_penalty": 1.0,
125
+ "max_length": 20,
126
+ "max_position_embeddings": 131072,
127
+ "min_length": 0,
128
+ "model_type": "mllama_text_model",
129
+ "no_repeat_ngram_size": 0,
130
+ "num_attention_heads": 32,
131
+ "num_beam_groups": 1,
132
+ "num_beams": 1,
133
+ "num_hidden_layers": 40,
134
+ "num_key_value_heads": 8,
135
+ "num_return_sequences": 1,
136
+ "output_attentions": false,
137
+ "output_hidden_states": false,
138
+ "output_scores": false,
139
+ "pad_token_id": 128004,
140
+ "prefix": null,
141
+ "problem_type": null,
142
+ "pruned_heads": {},
143
+ "remove_invalid_values": false,
144
+ "repetition_penalty": 1.0,
145
+ "return_dict": true,
146
+ "return_dict_in_generate": false,
147
+ "rms_norm_eps": 1e-05,
148
+ "rope_scaling": {
149
+ "factor": 8.0,
150
+ "high_freq_factor": 4.0,
151
+ "low_freq_factor": 1.0,
152
+ "original_max_position_embeddings": 8192,
153
+ "rope_type": "llama3"
154
+ },
155
+ "rope_theta": 500000.0,
156
+ "sep_token_id": null,
157
+ "suppress_tokens": null,
158
+ "task_specific_params": null,
159
+ "temperature": 1.0,
160
+ "tf_legacy_loss": false,
161
+ "tie_encoder_decoder": false,
162
+ "tie_word_embeddings": false,
163
+ "tokenizer_class": null,
164
+ "top_k": 50,
165
+ "top_p": 1.0,
166
+ "torch_dtype": "float16",
167
+ "torchscript": false,
168
+ "typical_p": 1.0,
169
+ "use_bfloat16": false,
170
+ "use_cache": true,
171
+ "vocab_size": 128256
172
+ },
173
+ "torch_dtype": "float16",
174
+ "transformers_version": "4.46.1",
175
+ "vision_config": {
176
+ "_attn_implementation_autoset": false,
177
+ "_name_or_path": "",
178
+ "add_cross_attention": false,
179
+ "architectures": null,
180
+ "attention_heads": 16,
181
+ "bad_words_ids": null,
182
+ "begin_suppress_tokens": null,
183
+ "bos_token_id": null,
184
+ "chunk_size_feed_forward": 0,
185
+ "cross_attention_hidden_size": null,
186
+ "decoder_start_token_id": null,
187
+ "diversity_penalty": 0.0,
188
+ "do_sample": false,
189
+ "early_stopping": false,
190
+ "encoder_no_repeat_ngram_size": 0,
191
+ "eos_token_id": null,
192
+ "exponential_decay_length_penalty": null,
193
+ "finetuning_task": null,
194
+ "forced_bos_token_id": null,
195
+ "forced_eos_token_id": null,
196
+ "hidden_act": "gelu",
197
+ "hidden_size": 1280,
198
+ "id2label": {
199
+ "0": "LABEL_0",
200
+ "1": "LABEL_1"
201
+ },
202
+ "image_size": 560,
203
+ "initializer_range": 0.02,
204
+ "intermediate_layers_indices": [
205
+ 3,
206
+ 7,
207
+ 15,
208
+ 23,
209
+ 30
210
+ ],
211
+ "intermediate_size": 5120,
212
+ "is_decoder": false,
213
+ "is_encoder_decoder": false,
214
+ "label2id": {
215
+ "LABEL_0": 0,
216
+ "LABEL_1": 1
217
+ },
218
+ "length_penalty": 1.0,
219
+ "max_length": 20,
220
+ "max_num_tiles": 4,
221
+ "min_length": 0,
222
+ "model_type": "mllama_vision_model",
223
+ "no_repeat_ngram_size": 0,
224
+ "norm_eps": 1e-05,
225
+ "num_beam_groups": 1,
226
+ "num_beams": 1,
227
+ "num_channels": 3,
228
+ "num_global_layers": 8,
229
+ "num_hidden_layers": 32,
230
+ "num_return_sequences": 1,
231
+ "output_attentions": false,
232
+ "output_hidden_states": false,
233
+ "output_scores": false,
234
+ "pad_token_id": null,
235
+ "patch_size": 14,
236
+ "prefix": null,
237
+ "problem_type": null,
238
+ "pruned_heads": {},
239
+ "remove_invalid_values": false,
240
+ "repetition_penalty": 1.0,
241
+ "return_dict": true,
242
+ "return_dict_in_generate": false,
243
+ "sep_token_id": null,
244
+ "supported_aspect_ratios": [
245
+ [
246
+ 1,
247
+ 1
248
+ ],
249
+ [
250
+ 1,
251
+ 2
252
+ ],
253
+ [
254
+ 1,
255
+ 3
256
+ ],
257
+ [
258
+ 1,
259
+ 4
260
+ ],
261
+ [
262
+ 2,
263
+ 1
264
+ ],
265
+ [
266
+ 2,
267
+ 2
268
+ ],
269
+ [
270
+ 3,
271
+ 1
272
+ ],
273
+ [
274
+ 4,
275
+ 1
276
+ ]
277
+ ],
278
+ "suppress_tokens": null,
279
+ "task_specific_params": null,
280
+ "temperature": 1.0,
281
+ "tf_legacy_loss": false,
282
+ "tie_encoder_decoder": false,
283
+ "tie_word_embeddings": true,
284
+ "tokenizer_class": null,
285
+ "top_k": 50,
286
+ "top_p": 1.0,
287
+ "torch_dtype": "float16",
288
+ "torchscript": false,
289
+ "typical_p": 1.0,
290
+ "use_bfloat16": false,
291
+ "vision_output_dim": 7680
292
+ }
293
+ }
quantization_config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "group_size": 128,
4
+ "sym": true,
5
+ "data_type": "int",
6
+ "enable_quanted_input": true,
7
+ "enable_minmax_tuning": true,
8
+ "seqlen": 512,
9
+ "batch_size": 1,
10
+ "scale_dtype": "torch.float16",
11
+ "lr": 0.001,
12
+ "minmax_lr": 0.001,
13
+ "gradient_accumulate_steps": 8,
14
+ "iters": 1000,
15
+ "amp": true,
16
+ "nsamples": 512,
17
+ "low_gpu_mem_usage": false,
18
+ "to_quant_block_names": [
19
+ [
20
+ "language_model.model.layers.0",
21
+ "language_model.model.layers.1",
22
+ "language_model.model.layers.2",
23
+ "language_model.model.layers.3",
24
+ "language_model.model.layers.4",
25
+ "language_model.model.layers.5",
26
+ "language_model.model.layers.6",
27
+ "language_model.model.layers.7",
28
+ "language_model.model.layers.8",
29
+ "language_model.model.layers.9",
30
+ "language_model.model.layers.10",
31
+ "language_model.model.layers.11",
32
+ "language_model.model.layers.12",
33
+ "language_model.model.layers.13",
34
+ "language_model.model.layers.14",
35
+ "language_model.model.layers.15",
36
+ "language_model.model.layers.16",
37
+ "language_model.model.layers.17",
38
+ "language_model.model.layers.18",
39
+ "language_model.model.layers.19",
40
+ "language_model.model.layers.20",
41
+ "language_model.model.layers.21",
42
+ "language_model.model.layers.22",
43
+ "language_model.model.layers.23",
44
+ "language_model.model.layers.24",
45
+ "language_model.model.layers.25",
46
+ "language_model.model.layers.26",
47
+ "language_model.model.layers.27",
48
+ "language_model.model.layers.28",
49
+ "language_model.model.layers.29",
50
+ "language_model.model.layers.30",
51
+ "language_model.model.layers.31",
52
+ "language_model.model.layers.32",
53
+ "language_model.model.layers.33",
54
+ "language_model.model.layers.34",
55
+ "language_model.model.layers.35",
56
+ "language_model.model.layers.36",
57
+ "language_model.model.layers.37",
58
+ "language_model.model.layers.38",
59
+ "language_model.model.layers.39"
60
+ ]
61
+ ],
62
+ "enable_norm_bias_tuning": false,
63
+ "dataset": "/dataset/vlm/vlm_eval_dataset.json",
64
+ "autoround_version": "0.4.0.dev",
65
+ "quant_method": "intel/auto-round",
66
+ "backend": "auto_round:gptq:exllamav2"
67
+ }