prince-canuma commited on
Commit
b6dd2bc
·
verified ·
1 Parent(s): 3277bed

Upload folder using huggingface_hub

Browse files
.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
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: gemma
4
+ pipeline_tag: image-text-to-text
5
+ extra_gated_heading: Access PaliGemma on Hugging Face
6
+ extra_gated_prompt: To access PaliGemma on Hugging Face, you’re required to review
7
+ and agree to Google’s usage license. To do this, please ensure you’re logged-in
8
+ to Hugging Face and click below. Requests are processed immediately.
9
+ extra_gated_button_content: Acknowledge license
10
+ tags:
11
+ - mlx
12
+ ---
13
+
14
+ # mlx-community/paligemma2-28b-mix-448-bf16
15
+ This model was converted to MLX format from [`google/paligemma2-28b-mix-448`]() using mlx-vlm version **0.1.13**.
16
+ Refer to the [original model card](https://huggingface.co/google/paligemma2-28b-mix-448) for more details on the model.
17
+ ## Use with mlx
18
+
19
+ ```bash
20
+ pip install -U mlx-vlm
21
+ ```
22
+
23
+ ```bash
24
+ python -m mlx_vlm.generate --model mlx-community/paligemma2-28b-mix-448-bf16 --max-tokens 100 --temp 0.0 --prompt "Describe this image." --image <path_to_image>
25
+ ```
config.json ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": false,
3
+ "_vocab_size": 257152,
4
+ "add_cross_attention": false,
5
+ "architectures": [
6
+ "PaliGemmaForConditionalGeneration"
7
+ ],
8
+ "bad_words_ids": null,
9
+ "begin_suppress_tokens": null,
10
+ "bos_token_id": 2,
11
+ "chunk_size_feed_forward": 0,
12
+ "cross_attention_hidden_size": null,
13
+ "decoder_start_token_id": null,
14
+ "diversity_penalty": 0.0,
15
+ "do_sample": false,
16
+ "early_stopping": false,
17
+ "encoder_no_repeat_ngram_size": 0,
18
+ "eos_token_id": 1,
19
+ "exponential_decay_length_penalty": null,
20
+ "finetuning_task": null,
21
+ "forced_bos_token_id": null,
22
+ "forced_eos_token_id": null,
23
+ "hidden_size": 2048,
24
+ "id2label": {
25
+ "0": "LABEL_0",
26
+ "1": "LABEL_1"
27
+ },
28
+ "image_token_index": 257152,
29
+ "is_decoder": false,
30
+ "is_encoder_decoder": false,
31
+ "label2id": {
32
+ "LABEL_0": 0,
33
+ "LABEL_1": 1
34
+ },
35
+ "length_penalty": 1.0,
36
+ "max_length": 20,
37
+ "min_length": 0,
38
+ "model_type": "paligemma",
39
+ "no_repeat_ngram_size": 0,
40
+ "num_beam_groups": 1,
41
+ "num_beams": 1,
42
+ "num_hidden_layers": 46,
43
+ "num_return_sequences": 1,
44
+ "output_attentions": false,
45
+ "output_hidden_states": false,
46
+ "output_scores": false,
47
+ "pad_token_id": 0,
48
+ "prefix": null,
49
+ "problem_type": null,
50
+ "projection_dim": 4608,
51
+ "pruned_heads": {},
52
+ "remove_invalid_values": false,
53
+ "repetition_penalty": 1.0,
54
+ "return_dict": true,
55
+ "return_dict_in_generate": false,
56
+ "sep_token_id": null,
57
+ "suppress_tokens": null,
58
+ "task_specific_params": null,
59
+ "temperature": 1.0,
60
+ "text_config": {
61
+ "return_dict": true,
62
+ "output_hidden_states": false,
63
+ "output_attentions": false,
64
+ "torchscript": false,
65
+ "torch_dtype": "bfloat16",
66
+ "use_bfloat16": false,
67
+ "tf_legacy_loss": false,
68
+ "pruned_heads": {},
69
+ "tie_word_embeddings": true,
70
+ "chunk_size_feed_forward": 0,
71
+ "is_encoder_decoder": false,
72
+ "is_decoder": false,
73
+ "cross_attention_hidden_size": null,
74
+ "add_cross_attention": false,
75
+ "tie_encoder_decoder": false,
76
+ "max_length": 20,
77
+ "min_length": 0,
78
+ "do_sample": false,
79
+ "early_stopping": false,
80
+ "num_beams": 1,
81
+ "num_beam_groups": 1,
82
+ "diversity_penalty": 0.0,
83
+ "temperature": 1.0,
84
+ "top_k": 50,
85
+ "top_p": 1.0,
86
+ "typical_p": 1.0,
87
+ "repetition_penalty": 1.0,
88
+ "length_penalty": 1.0,
89
+ "no_repeat_ngram_size": 0,
90
+ "encoder_no_repeat_ngram_size": 0,
91
+ "bad_words_ids": null,
92
+ "num_return_sequences": 1,
93
+ "output_scores": false,
94
+ "return_dict_in_generate": false,
95
+ "forced_bos_token_id": null,
96
+ "forced_eos_token_id": null,
97
+ "remove_invalid_values": false,
98
+ "exponential_decay_length_penalty": null,
99
+ "suppress_tokens": null,
100
+ "begin_suppress_tokens": null,
101
+ "architectures": [
102
+ "Gemma2ForCausalLM"
103
+ ],
104
+ "finetuning_task": null,
105
+ "id2label": {
106
+ "0": "LABEL_0",
107
+ "1": "LABEL_1"
108
+ },
109
+ "label2id": {
110
+ "LABEL_0": 0,
111
+ "LABEL_1": 1
112
+ },
113
+ "tokenizer_class": null,
114
+ "prefix": null,
115
+ "bos_token_id": 2,
116
+ "pad_token_id": 0,
117
+ "eos_token_id": [
118
+ 1,
119
+ 107
120
+ ],
121
+ "sep_token_id": null,
122
+ "decoder_start_token_id": null,
123
+ "task_specific_params": null,
124
+ "problem_type": null,
125
+ "_name_or_path": "",
126
+ "_attn_implementation_autoset": false,
127
+ "hidden_act": "gelu_pytorch_tanh",
128
+ "model_type": "gemma2",
129
+ "num_image_tokens": 1024,
130
+ "vocab_size": 257216,
131
+ "max_position_embeddings": 8192,
132
+ "hidden_size": 4608,
133
+ "intermediate_size": 36864,
134
+ "num_hidden_layers": 46,
135
+ "num_attention_heads": 32,
136
+ "head_dim": 128,
137
+ "num_key_value_heads": 16,
138
+ "initializer_range": 0.02,
139
+ "rms_norm_eps": 1e-06,
140
+ "use_cache": true,
141
+ "rope_theta": 10000.0,
142
+ "attention_bias": false,
143
+ "attention_dropout": 0.0,
144
+ "hidden_activation": "gelu_pytorch_tanh",
145
+ "query_pre_attn_scalar": 144,
146
+ "sliding_window": 4096,
147
+ "final_logit_softcapping": 30.0,
148
+ "attn_logit_softcapping": 50.0,
149
+ "cache_implementation": "hybrid"
150
+ },
151
+ "tf_legacy_loss": false,
152
+ "tie_encoder_decoder": false,
153
+ "tie_word_embeddings": true,
154
+ "tokenizer_class": null,
155
+ "top_k": 50,
156
+ "top_p": 1.0,
157
+ "torch_dtype": "bfloat16",
158
+ "torchscript": false,
159
+ "transformers_version": "4.49.0",
160
+ "typical_p": 1.0,
161
+ "use_bfloat16": false,
162
+ "vision_config": {
163
+ "return_dict": true,
164
+ "output_hidden_states": false,
165
+ "output_attentions": false,
166
+ "torchscript": false,
167
+ "torch_dtype": "bfloat16",
168
+ "use_bfloat16": false,
169
+ "tf_legacy_loss": false,
170
+ "pruned_heads": {},
171
+ "tie_word_embeddings": true,
172
+ "chunk_size_feed_forward": 0,
173
+ "is_encoder_decoder": false,
174
+ "is_decoder": false,
175
+ "cross_attention_hidden_size": null,
176
+ "add_cross_attention": false,
177
+ "tie_encoder_decoder": false,
178
+ "max_length": 20,
179
+ "min_length": 0,
180
+ "do_sample": false,
181
+ "early_stopping": false,
182
+ "num_beams": 1,
183
+ "num_beam_groups": 1,
184
+ "diversity_penalty": 0.0,
185
+ "temperature": 1.0,
186
+ "top_k": 50,
187
+ "top_p": 1.0,
188
+ "typical_p": 1.0,
189
+ "repetition_penalty": 1.0,
190
+ "length_penalty": 1.0,
191
+ "no_repeat_ngram_size": 0,
192
+ "encoder_no_repeat_ngram_size": 0,
193
+ "bad_words_ids": null,
194
+ "num_return_sequences": 1,
195
+ "output_scores": false,
196
+ "return_dict_in_generate": false,
197
+ "forced_bos_token_id": null,
198
+ "forced_eos_token_id": null,
199
+ "remove_invalid_values": false,
200
+ "exponential_decay_length_penalty": null,
201
+ "suppress_tokens": null,
202
+ "begin_suppress_tokens": null,
203
+ "architectures": null,
204
+ "finetuning_task": null,
205
+ "id2label": {
206
+ "0": "LABEL_0",
207
+ "1": "LABEL_1"
208
+ },
209
+ "label2id": {
210
+ "LABEL_0": 0,
211
+ "LABEL_1": 1
212
+ },
213
+ "tokenizer_class": null,
214
+ "prefix": null,
215
+ "bos_token_id": null,
216
+ "pad_token_id": null,
217
+ "eos_token_id": null,
218
+ "sep_token_id": null,
219
+ "decoder_start_token_id": null,
220
+ "task_specific_params": null,
221
+ "problem_type": null,
222
+ "_name_or_path": "",
223
+ "_attn_implementation_autoset": false,
224
+ "model_type": "siglip_vision_model",
225
+ "num_image_tokens": 1024,
226
+ "num_positions": 4096,
227
+ "projection_dim": 4608,
228
+ "vision_use_head": false,
229
+ "hidden_size": 1152,
230
+ "intermediate_size": 4304,
231
+ "num_hidden_layers": 27,
232
+ "num_attention_heads": 16,
233
+ "num_channels": 3,
234
+ "patch_size": 14,
235
+ "image_size": 448,
236
+ "attention_dropout": 0.0,
237
+ "layer_norm_eps": 1e-06,
238
+ "hidden_act": "gelu_pytorch_tanh"
239
+ }
240
+ }
model-00001-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2be1e7458d35fc121469c163396b811adf0e0d5d6b9650ea6057ab2a011bfdbf
3
+ size 5122441994
model-00002-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4af7e3037fbe60d588fda9264e8d2fe85239d5b068eba234144cec80a8a7beea
3
+ size 5322763220
model-00003-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01fabb600607ce4c343b95a793ae35ff5fee270f80b6589ade5dbc6fb5fa3c5c
3
+ size 5322763237
model-00004-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2441fa4bed73e0beb3ce9d8fb45c4efc602df66cde6f7da0df0f0e4b96f611f9
3
+ size 5209479142
model-00005-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:277cfc18125738b112c2a99265a02501f16b1beb07d803b533b3f1ea16f9f976
3
+ size 5322763294
model-00006-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f427c19cb3f12fb8db77942094f2141c5dfe89d334dd89fecdb704fb9b090e3
3
+ size 5322763268
model-00007-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3bdd17910f5b81ffbac9577bc2bf5fbe128c8e057423bf9b39d2a6d3d0143a73
3
+ size 5209479140
model-00008-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6240a668e532c22460131e9494b005f5d127c4bdc4490616f813bef28f72ec39
3
+ size 5322763294
model-00009-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9717b0b57ddc5e420a11d5b22846657c99e43e86d0a594a69f2404c872a196c8
3
+ size 5322763272
model-00010-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdd18908405039be9dd74f889ffef8373221dd1755ef399ccd84b853897a7f1e
3
+ size 5209479150
model-00011-of-00011.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6b429401be573b3304c1547a28224965274c678e1454b3e74873b8e194999e4
3
+ size 2615412550
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,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "SiglipImageProcessor",
12
+ "image_seq_length": 1024,
13
+ "image_std": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "processor_class": "PaliGemmaProcessor",
19
+ "resample": 3,
20
+ "rescale_factor": 0.00392156862745098,
21
+ "size": {
22
+ "height": 448,
23
+ "width": 448
24
+ }
25
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "<image>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ }
10
+ ],
11
+ "bos_token": {
12
+ "content": "<bos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "eos_token": {
19
+ "content": "<eos>",
20
+ "lstrip": false,
21
+ "normalized": false,
22
+ "rstrip": false,
23
+ "single_word": false
24
+ },
25
+ "pad_token": {
26
+ "content": "<pad>",
27
+ "lstrip": false,
28
+ "normalized": false,
29
+ "rstrip": false,
30
+ "single_word": false
31
+ },
32
+ "unk_token": {
33
+ "content": "<unk>",
34
+ "lstrip": false,
35
+ "normalized": false,
36
+ "rstrip": false,
37
+ "single_word": false
38
+ }
39
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:172fab587d68c56b63eb3620057c62dfd15e503079ff7fce584692e3fd5bf4da
3
+ size 34600820
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff