abalogh commited on
Commit
58d4672
1 Parent(s): 553656a

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
+ # abalogh/paligemma2-3b-pt-896-4bit
15
+ This model was converted to MLX format from [`google/paligemma2-3b-pt-896`]() using mlx-vlm version **0.1.4**.
16
+ Refer to the [original model card](https://huggingface.co/google/paligemma2-3b-pt-896) 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 abalogh/paligemma2-3b-pt-896-4bit --max-tokens 100 --temp 0.0
25
+ ```
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_vocab_size": 257152,
3
+ "architectures": [
4
+ "PaliGemmaForConditionalGeneration"
5
+ ],
6
+ "bos_token_id": 2,
7
+ "eos_token_id": 1,
8
+ "image_token_index": 257152,
9
+ "model_type": "paligemma",
10
+ "num_hidden_layers": 26,
11
+ "pad_token_id": 0,
12
+ "projection_dim": 2304,
13
+ "quantization": {
14
+ "group_size": 64,
15
+ "bits": 4
16
+ },
17
+ "text_config": {
18
+ "architectures": [
19
+ "Gemma2ForCausalLM"
20
+ ],
21
+ "attn_logit_softcapping": 50.0,
22
+ "cache_implementation": "hybrid",
23
+ "eos_token_id": [
24
+ 1,
25
+ 107
26
+ ],
27
+ "final_logit_softcapping": 30.0,
28
+ "hidden_act": "gelu_pytorch_tanh",
29
+ "hidden_activation": "gelu_pytorch_tanh",
30
+ "hidden_size": 2304,
31
+ "intermediate_size": 9216,
32
+ "model_type": "gemma2",
33
+ "num_attention_heads": 8,
34
+ "num_hidden_layers": 26,
35
+ "num_image_tokens": 4096,
36
+ "num_key_value_heads": 4,
37
+ "query_pre_attn_scalar": 256,
38
+ "sliding_window": 4096,
39
+ "torch_dtype": "bfloat16",
40
+ "vocab_size": 257216
41
+ },
42
+ "torch_dtype": "bfloat16",
43
+ "transformers_version": "4.47.0.dev0",
44
+ "vision_config": {
45
+ "hidden_size": 1152,
46
+ "image_size": 896,
47
+ "intermediate_size": 4352,
48
+ "model_type": "siglip_vision_model",
49
+ "num_attention_heads": 16,
50
+ "num_hidden_layers": 27,
51
+ "num_image_tokens": 4096,
52
+ "num_positions": 256,
53
+ "patch_size": 14,
54
+ "projection_dim": 2304,
55
+ "torch_dtype": "bfloat16",
56
+ "vision_use_head": false
57
+ }
58
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8e7387855598171722b32ea55927258738b05a8987f828c7c231d2d4eb44d3a
3
+ size 1711895397
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": 4096,
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": 896,
23
+ "width": 896
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