Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- chat_template.json +3 -0
- config.json +213 -0
- generation_config.json +6 -0
- model-00001-of-00003.safetensors +3 -0
- model-00002-of-00003.safetensors +3 -0
- model-00003-of-00003.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +27 -0
- processor_config.json +7 -0
- recipe.yaml +6 -0
- special_tokens_map.json +23 -0
- tokenizer.json +3 -0
- tokenizer_config.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
chat_template.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"chat_template": "{%- if messages[0][\"role\"] == \"system\" %}\n {%- set system_message = messages[0][\"content\"] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}\n {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}\n {%- endif %}\n {%- if message[\"role\"] == \"user\" %}\n {%- if loop.last and system_message is defined %}\n {{- \"[INST]\" + system_message + \"\n\n\" }}\n {%- else %}\n {{- \"[INST]\" }}\n {%- endif %}\n {%- if message[\"content\"] is not string %}\n {%- for chunk in message[\"content\"] %}\n {%- if chunk[\"type\"] == \"text\" %}\n {{- chunk[\"content\"] }}\n {%- elif chunk[\"type\"] == \"image\" %}\n {{- \"[IMG]\" }}\n {%- else %}\n {{- raise_exception(\"Unrecognized content type!\") }}\n {%- endif %}\n {%- endfor %}\n {%- else %}\n {{- message[\"content\"] }}\n {%- endif %}\n {{- \"[/INST]\" }}\n {%- elif message[\"role\"] == \"assistant\" %}\n {{- message[\"content\"] + eos_token}}\n {%- else %}\n {{- raise_exception(\"Only user and assistant roles are supported, with the exception of an initial optional system message!\") }}\n {%- endif %}\n{%- endfor %}"
|
3 |
+
}
|
config.json
ADDED
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/mgoin/.cache/huggingface/hub/models--mistral-community--pixtral-12b/snapshots/1742abe54342ff11b38a75d069f7acc5028e3711",
|
3 |
+
"architectures": [
|
4 |
+
"LlavaForConditionalGeneration"
|
5 |
+
],
|
6 |
+
"ignore_index": -100,
|
7 |
+
"image_seq_length": 1,
|
8 |
+
"image_token_index": 10,
|
9 |
+
"model_type": "llava",
|
10 |
+
"projector_hidden_act": "gelu",
|
11 |
+
"quantization_config": {
|
12 |
+
"config_groups": {
|
13 |
+
"group_0": {
|
14 |
+
"input_activations": {
|
15 |
+
"actorder": null,
|
16 |
+
"block_structure": null,
|
17 |
+
"dynamic": true,
|
18 |
+
"group_size": null,
|
19 |
+
"num_bits": 8,
|
20 |
+
"observer": null,
|
21 |
+
"observer_kwargs": {},
|
22 |
+
"strategy": "token",
|
23 |
+
"symmetric": true,
|
24 |
+
"type": "float"
|
25 |
+
},
|
26 |
+
"output_activations": null,
|
27 |
+
"targets": [
|
28 |
+
"Linear"
|
29 |
+
],
|
30 |
+
"weights": {
|
31 |
+
"actorder": null,
|
32 |
+
"block_structure": null,
|
33 |
+
"dynamic": false,
|
34 |
+
"group_size": null,
|
35 |
+
"num_bits": 8,
|
36 |
+
"observer": "minmax",
|
37 |
+
"observer_kwargs": {},
|
38 |
+
"strategy": "channel",
|
39 |
+
"symmetric": true,
|
40 |
+
"type": "float"
|
41 |
+
}
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"format": "float-quantized",
|
45 |
+
"global_compression_ratio": 1.4816607428665078,
|
46 |
+
"ignore": [
|
47 |
+
"multi_modal_projector.linear_1",
|
48 |
+
"multi_modal_projector.linear_2",
|
49 |
+
"language_model.lm_head"
|
50 |
+
],
|
51 |
+
"kv_cache_scheme": null,
|
52 |
+
"quant_method": "compressed-tensors",
|
53 |
+
"quantization_status": "compressed"
|
54 |
+
},
|
55 |
+
"text_config": {
|
56 |
+
"_name_or_path": "",
|
57 |
+
"add_cross_attention": false,
|
58 |
+
"architectures": null,
|
59 |
+
"attention_dropout": 0.0,
|
60 |
+
"bad_words_ids": null,
|
61 |
+
"begin_suppress_tokens": null,
|
62 |
+
"bos_token_id": 1,
|
63 |
+
"chunk_size_feed_forward": 0,
|
64 |
+
"cross_attention_hidden_size": null,
|
65 |
+
"decoder_start_token_id": null,
|
66 |
+
"diversity_penalty": 0.0,
|
67 |
+
"do_sample": false,
|
68 |
+
"early_stopping": false,
|
69 |
+
"encoder_no_repeat_ngram_size": 0,
|
70 |
+
"eos_token_id": 2,
|
71 |
+
"exponential_decay_length_penalty": null,
|
72 |
+
"finetuning_task": null,
|
73 |
+
"forced_bos_token_id": null,
|
74 |
+
"forced_eos_token_id": null,
|
75 |
+
"head_dim": 128,
|
76 |
+
"hidden_act": "silu",
|
77 |
+
"hidden_size": 5120,
|
78 |
+
"id2label": {
|
79 |
+
"0": "LABEL_0",
|
80 |
+
"1": "LABEL_1"
|
81 |
+
},
|
82 |
+
"initializer_range": 0.02,
|
83 |
+
"intermediate_size": 14336,
|
84 |
+
"is_composition": true,
|
85 |
+
"is_decoder": false,
|
86 |
+
"is_encoder_decoder": false,
|
87 |
+
"label2id": {
|
88 |
+
"LABEL_0": 0,
|
89 |
+
"LABEL_1": 1
|
90 |
+
},
|
91 |
+
"length_penalty": 1.0,
|
92 |
+
"max_length": 20,
|
93 |
+
"max_position_embeddings": 1024000,
|
94 |
+
"min_length": 0,
|
95 |
+
"model_type": "mistral",
|
96 |
+
"no_repeat_ngram_size": 0,
|
97 |
+
"num_attention_heads": 32,
|
98 |
+
"num_beam_groups": 1,
|
99 |
+
"num_beams": 1,
|
100 |
+
"num_hidden_layers": 40,
|
101 |
+
"num_key_value_heads": 8,
|
102 |
+
"num_return_sequences": 1,
|
103 |
+
"output_attentions": false,
|
104 |
+
"output_hidden_states": false,
|
105 |
+
"output_scores": false,
|
106 |
+
"pad_token_id": null,
|
107 |
+
"prefix": null,
|
108 |
+
"problem_type": null,
|
109 |
+
"pruned_heads": {},
|
110 |
+
"remove_invalid_values": false,
|
111 |
+
"repetition_penalty": 1.0,
|
112 |
+
"return_dict": true,
|
113 |
+
"return_dict_in_generate": false,
|
114 |
+
"rms_norm_eps": 1e-05,
|
115 |
+
"rope_theta": 1000000000.0,
|
116 |
+
"sep_token_id": null,
|
117 |
+
"sliding_window": null,
|
118 |
+
"suppress_tokens": null,
|
119 |
+
"task_specific_params": null,
|
120 |
+
"temperature": 1.0,
|
121 |
+
"tf_legacy_loss": false,
|
122 |
+
"tie_encoder_decoder": false,
|
123 |
+
"tie_word_embeddings": false,
|
124 |
+
"tokenizer_class": null,
|
125 |
+
"top_k": 50,
|
126 |
+
"top_p": 1.0,
|
127 |
+
"torch_dtype": null,
|
128 |
+
"torchscript": false,
|
129 |
+
"typical_p": 1.0,
|
130 |
+
"use_bfloat16": false,
|
131 |
+
"use_cache": true,
|
132 |
+
"vocab_size": 131072
|
133 |
+
},
|
134 |
+
"torch_dtype": "bfloat16",
|
135 |
+
"transformers_version": "4.45.0",
|
136 |
+
"vision_config": {
|
137 |
+
"_name_or_path": "",
|
138 |
+
"add_cross_attention": false,
|
139 |
+
"architectures": null,
|
140 |
+
"attention_dropout": 0.0,
|
141 |
+
"bad_words_ids": null,
|
142 |
+
"begin_suppress_tokens": null,
|
143 |
+
"bos_token_id": null,
|
144 |
+
"chunk_size_feed_forward": 0,
|
145 |
+
"cross_attention_hidden_size": null,
|
146 |
+
"decoder_start_token_id": null,
|
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 |
+
"head_dim": 64,
|
157 |
+
"hidden_act": "silu",
|
158 |
+
"hidden_size": 1024,
|
159 |
+
"id2label": {
|
160 |
+
"0": "LABEL_0",
|
161 |
+
"1": "LABEL_1"
|
162 |
+
},
|
163 |
+
"image_size": 1024,
|
164 |
+
"intermediate_size": 4096,
|
165 |
+
"is_composition": true,
|
166 |
+
"is_decoder": false,
|
167 |
+
"is_encoder_decoder": false,
|
168 |
+
"label2id": {
|
169 |
+
"LABEL_0": 0,
|
170 |
+
"LABEL_1": 1
|
171 |
+
},
|
172 |
+
"length_penalty": 1.0,
|
173 |
+
"max_length": 20,
|
174 |
+
"min_length": 0,
|
175 |
+
"model_type": "pixtral",
|
176 |
+
"no_repeat_ngram_size": 0,
|
177 |
+
"num_attention_heads": 16,
|
178 |
+
"num_beam_groups": 1,
|
179 |
+
"num_beams": 1,
|
180 |
+
"num_channels": 3,
|
181 |
+
"num_hidden_layers": 24,
|
182 |
+
"num_return_sequences": 1,
|
183 |
+
"output_attentions": false,
|
184 |
+
"output_hidden_states": false,
|
185 |
+
"output_scores": false,
|
186 |
+
"pad_token_id": null,
|
187 |
+
"patch_size": 16,
|
188 |
+
"prefix": null,
|
189 |
+
"problem_type": null,
|
190 |
+
"pruned_heads": {},
|
191 |
+
"remove_invalid_values": false,
|
192 |
+
"repetition_penalty": 1.0,
|
193 |
+
"return_dict": true,
|
194 |
+
"return_dict_in_generate": false,
|
195 |
+
"rope_theta": 10000.0,
|
196 |
+
"sep_token_id": null,
|
197 |
+
"suppress_tokens": null,
|
198 |
+
"task_specific_params": null,
|
199 |
+
"temperature": 1.0,
|
200 |
+
"tf_legacy_loss": false,
|
201 |
+
"tie_encoder_decoder": false,
|
202 |
+
"tie_word_embeddings": false,
|
203 |
+
"tokenizer_class": null,
|
204 |
+
"top_k": 50,
|
205 |
+
"top_p": 1.0,
|
206 |
+
"torch_dtype": null,
|
207 |
+
"torchscript": false,
|
208 |
+
"typical_p": 1.0,
|
209 |
+
"use_bfloat16": false
|
210 |
+
},
|
211 |
+
"vision_feature_layer": -1,
|
212 |
+
"vision_feature_select_strategy": "full"
|
213 |
+
}
|
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.45.0"
|
6 |
+
}
|
model-00001-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6e0b71b616ce9254a6748ff4072954fdfb412f78ece63aac3ed72a29b5c86599
|
3 |
+
size 4936181296
|
model-00002-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0edd9ea7c419445e0091448193803323f127410ba99d987a6ff54a49df22e585
|
3 |
+
size 4982793128
|
model-00003-of-00003.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b36a024f66acb313d51e8ef69754a23a4a20ac2bff038e6b1a583a7171cfb1a
|
3 |
+
size 4143044360
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_rgb": true,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [
|
7 |
+
0.48145466,
|
8 |
+
0.4578275,
|
9 |
+
0.40821073
|
10 |
+
],
|
11 |
+
"image_processor_type": "PixtralImageProcessor",
|
12 |
+
"image_std": [
|
13 |
+
0.26862954,
|
14 |
+
0.26130258,
|
15 |
+
0.27577711
|
16 |
+
],
|
17 |
+
"patch_size": {
|
18 |
+
"height": 16,
|
19 |
+
"width": 16
|
20 |
+
},
|
21 |
+
"processor_class": "PixtralProcessor",
|
22 |
+
"resample": 3,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"longest_edge": 1024
|
26 |
+
}
|
27 |
+
}
|
processor_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"image_break_token": "[IMG_BREAK]",
|
3 |
+
"image_end_token": "[IMG_END]",
|
4 |
+
"image_token": "[IMG]",
|
5 |
+
"patch_size": 16,
|
6 |
+
"processor_class": "PixtralProcessor"
|
7 |
+
}
|
recipe.yaml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
DEFAULT_stage:
|
2 |
+
DEFAULT_modifiers:
|
3 |
+
QuantizationModifier:
|
4 |
+
ignore: ['re:.*lm_head', 're:multi_modal_projector.*']
|
5 |
+
targets: Linear
|
6 |
+
scheme: FP8_DYNAMIC
|
special_tokens_map.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"unk_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
}
|
23 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fcdf3e6b96371b9a5c8673bdf2f1bc838b994b73a6fa995dca62196346aaddb5
|
3 |
+
size 17077311
|
tokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|