Image-Text-to-Text
KerasHub
Divyasreepat commited on
Commit
704ba52
1 Parent(s): e3ac33e

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
+ assets/tokenizer/vocabulary.spm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: keras-hub
3
+ ---
4
+ This is a [`PaliGemma` model](https://keras.io/api/keras_hub/models/pali_gemma) uploaded using the KerasHub library and can be used with JAX, TensorFlow, and PyTorch backends.
5
+ Model config:
6
+ * **name:** pali_gemma_backbone
7
+ * **trainable:** True
8
+ * **vocabulary_size:** 257152
9
+ * **image_size:** 896
10
+ * **num_layers:** 26
11
+ * **num_query_heads:** 8
12
+ * **num_key_value_heads:** 4
13
+ * **hidden_dim:** 2304
14
+ * **intermediate_dim:** 18432
15
+ * **head_dim:** 256
16
+ * **vit_patch_size:** 14
17
+ * **vit_num_heads:** 16
18
+ * **vit_hidden_dim:** 1152
19
+ * **vit_num_layers:** 27
20
+ * **vit_intermediate_dim:** 4304
21
+ * **vit_pooling:** None
22
+ * **vit_classifier_activation:** None
23
+ * **vit_name:** None
24
+ * **query_head_dim_normalize:** True
25
+ * **use_post_ffw_norm:** True
26
+ * **use_post_attention_norm:** True
27
+ * **final_logit_soft_cap:** 30
28
+ * **attention_logit_soft_cap:** 50
29
+ * **sliding_window_size:** 4096
30
+ * **use_sliding_window_attention:** True
31
+ * **layer_norm_epsilon:** 1e-06
32
+ * **dropout:** 0
33
+
34
+ This model card has been generated automatically and should be completed by the model author. See [Model Cards documentation](https://huggingface.co/docs/hub/model-cards) for more information.
assets/tokenizer/vocabulary.spm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8986bb4f423f07f8c7f70d0dbe3526fb2316056c17bae71b1ea975e77a168fc6
3
+ size 4264023
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.pali_gemma.pali_gemma_backbone",
3
+ "class_name": "PaliGemmaBackbone",
4
+ "config": {
5
+ "name": "pali_gemma_backbone",
6
+ "trainable": true,
7
+ "vocabulary_size": 257152,
8
+ "image_size": 896,
9
+ "num_layers": 26,
10
+ "num_query_heads": 8,
11
+ "num_key_value_heads": 4,
12
+ "hidden_dim": 2304,
13
+ "intermediate_dim": 18432,
14
+ "head_dim": 256,
15
+ "vit_patch_size": 14,
16
+ "vit_num_heads": 16,
17
+ "vit_hidden_dim": 1152,
18
+ "vit_num_layers": 27,
19
+ "vit_intermediate_dim": 4304,
20
+ "vit_pooling": null,
21
+ "vit_classifier_activation": null,
22
+ "vit_name": null,
23
+ "query_head_dim_normalize": true,
24
+ "use_post_ffw_norm": true,
25
+ "use_post_attention_norm": true,
26
+ "final_logit_soft_cap": 30,
27
+ "attention_logit_soft_cap": 50,
28
+ "sliding_window_size": 4096,
29
+ "use_sliding_window_attention": true,
30
+ "layer_norm_epsilon": 1e-06,
31
+ "dropout": 0
32
+ },
33
+ "registered_name": "keras_hub>PaliGemmaBackbone"
34
+ }
image_converter.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.pali_gemma.pali_gemma_image_converter",
3
+ "class_name": "PaliGemmaImageConverter",
4
+ "config": {
5
+ "name": "pali_gemma_image_converter",
6
+ "trainable": true,
7
+ "dtype": {
8
+ "module": "keras",
9
+ "class_name": "DTypePolicy",
10
+ "config": {
11
+ "name": "bfloat16"
12
+ },
13
+ "registered_name": null
14
+ },
15
+ "image_size": [
16
+ 896,
17
+ 896
18
+ ],
19
+ "scale": 0.00784313725490196,
20
+ "offset": -1,
21
+ "interpolation": "bilinear",
22
+ "crop_to_aspect_ratio": true
23
+ },
24
+ "registered_name": "keras_hub>PaliGemmaImageConverter"
25
+ }
metadata.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "keras_version": "3.7.0",
3
+ "keras_hub_version": "0.17.0.dev0",
4
+ "parameter_count": 3036518640,
5
+ "date_saved": "2024-11-21@21:13:54"
6
+ }
model.weights.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c194ae62754e438b9ee5bd2ad05b004b0415f575fcf64ae489b96bca47eac9f5
3
+ size 6074804688
tokenizer.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "module": "keras_hub.src.models.pali_gemma.pali_gemma_tokenizer",
3
+ "class_name": "PaliGemmaTokenizer",
4
+ "config": {
5
+ "name": "pali_gemma_tokenizer",
6
+ "trainable": true,
7
+ "dtype": {
8
+ "module": "keras",
9
+ "class_name": "DTypePolicy",
10
+ "config": {
11
+ "name": "int32"
12
+ },
13
+ "registered_name": null
14
+ },
15
+ "config_file": "tokenizer.json",
16
+ "proto": null,
17
+ "sequence_length": null,
18
+ "add_bos": false,
19
+ "add_eos": false
20
+ },
21
+ "registered_name": "keras_hub>PaliGemmaTokenizer"
22
+ }