Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +25 -0
- added_tokens.json +3 -0
- config.json +44 -0
- model.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +25 -0
- special_tokens_map.json +39 -0
- tokenizer.json +3 -0
- tokenizer.model +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
|
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 |
+
# smdesai/paligemma-3b-mix-448-4bit
|
15 |
+
This model was converted to MLX format from [`google/paligemma-3b-mix-448`]() using mlx-vlm version **0.1.6**.
|
16 |
+
Refer to the [original model card](https://huggingface.co/google/paligemma-3b-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 smdesai/paligemma-3b-mix-448-4bit --max-tokens 100 --temp 0.0
|
25 |
+
```
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<image>": 257152
|
3 |
+
}
|
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"PaliGemmaForConditionalGeneration"
|
4 |
+
],
|
5 |
+
"bos_token_id": 2,
|
6 |
+
"eos_token_id": 1,
|
7 |
+
"hidden_size": 2048,
|
8 |
+
"ignore_index": -100,
|
9 |
+
"image_token_index": 257152,
|
10 |
+
"model_type": "paligemma",
|
11 |
+
"pad_token_id": 0,
|
12 |
+
"projection_dim": 2048,
|
13 |
+
"quantization": {
|
14 |
+
"group_size": 64,
|
15 |
+
"bits": 4
|
16 |
+
},
|
17 |
+
"text_config": {
|
18 |
+
"hidden_size": 2048,
|
19 |
+
"intermediate_size": 16384,
|
20 |
+
"model_type": "gemma",
|
21 |
+
"num_attention_heads": 8,
|
22 |
+
"num_hidden_layers": 18,
|
23 |
+
"num_image_tokens": 1024,
|
24 |
+
"num_key_value_heads": 1,
|
25 |
+
"torch_dtype": "float32",
|
26 |
+
"vocab_size": 257216
|
27 |
+
},
|
28 |
+
"torch_dtype": "float32",
|
29 |
+
"transformers_version": "4.41.0.dev0",
|
30 |
+
"vision_config": {
|
31 |
+
"hidden_size": 1152,
|
32 |
+
"image_size": 448,
|
33 |
+
"intermediate_size": 4352,
|
34 |
+
"model_type": "siglip_vision_model",
|
35 |
+
"num_attention_heads": 16,
|
36 |
+
"num_hidden_layers": 27,
|
37 |
+
"num_image_tokens": 1024,
|
38 |
+
"patch_size": 14,
|
39 |
+
"projection_dim": 2048,
|
40 |
+
"projector_hidden_act": "gelu_fast",
|
41 |
+
"vision_use_head": false
|
42 |
+
},
|
43 |
+
"vocab_size": 257216
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b2003ccb82da95bff0c23a5d205b5546f8e142dd6b40da8e68173c866d83fec
|
3 |
+
size 1648448519
|
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.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8986bb4f423f07f8c7f70d0dbe3526fb2316056c17bae71b1ea975e77a168fc6
|
3 |
+
size 4264023
|
tokenizer_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|