bebechien RyanMullins osanseviero commited on
Commit
cb3a344
·
0 Parent(s):

initial commit

Browse files

Co-authored-by: RyanMullins <RyanMullins@users.noreply.huggingface.co>
Co-authored-by: osanseviero <osanseviero@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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,5 @@
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ pipeline_tag: image-text-to-text
4
+ ---
5
+ ⚠️ EARLY ACCESS: This is not the final model behaviour or example. They are subject to change and further improvements.
config.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma4ForConditionalGeneration"
4
+ ],
5
+ "audio_config": {
6
+ "_name_or_path": "",
7
+ "architectures": null,
8
+ "chunk_size_feed_forward": 0,
9
+ "conf_attention_chunk_size": 12,
10
+ "conf_attention_context_left": 13,
11
+ "conf_attention_context_right": 0,
12
+ "conf_attention_invalid_logits_value": -1000000000.0,
13
+ "conf_attention_logit_cap": 50.0,
14
+ "conf_conv_kernel_size": 5,
15
+ "conf_hidden_size": 1024,
16
+ "conf_num_attention_heads": 8,
17
+ "conf_num_hidden_layers": 12,
18
+ "conf_positional_bias_size": 1024,
19
+ "conf_reduction_factor": 1,
20
+ "conf_residual_weight": 0.5,
21
+ "dtype": "bfloat16",
22
+ "embedding_norm_eps": 1e-06,
23
+ "gradient_clipping": 10000000000.0,
24
+ "hidden_size": 1024,
25
+ "id2label": {
26
+ "0": "LABEL_0",
27
+ "1": "LABEL_1"
28
+ },
29
+ "input_feat_size": 128,
30
+ "is_encoder_decoder": false,
31
+ "label2id": {
32
+ "LABEL_0": 0,
33
+ "LABEL_1": 1
34
+ },
35
+ "model_type": "gemma4_audio",
36
+ "output_attentions": false,
37
+ "output_hidden_states": false,
38
+ "output_proj_dims": 1536,
39
+ "problem_type": null,
40
+ "return_dict": true,
41
+ "rms_norm_eps": 1e-06,
42
+ "sscp_conv_channel_size": [
43
+ 128,
44
+ 32
45
+ ],
46
+ "sscp_conv_eps": 1e-06,
47
+ "sscp_conv_group_norm_eps": 1e-06,
48
+ "sscp_conv_kernel_size": [
49
+ [
50
+ 3,
51
+ 3
52
+ ],
53
+ [
54
+ 3,
55
+ 3
56
+ ]
57
+ ],
58
+ "sscp_conv_norm_type": "layer_norm",
59
+ "sscp_conv_padding_type": "semicausal",
60
+ "sscp_conv_stride_size": [
61
+ [
62
+ 2,
63
+ 2
64
+ ],
65
+ [
66
+ 2,
67
+ 2
68
+ ]
69
+ ],
70
+ "sscp_conv_time_pad_bottom": null,
71
+ "sscp_conv_time_pad_top": null,
72
+ "streaming": false,
73
+ "streaming_chunk_size": 51,
74
+ "streaming_stride": 48,
75
+ "use_clipped_linears": true,
76
+ "vocab_offset": 262272,
77
+ "vocab_size": 128
78
+ },
79
+ "audio_ms_per_token": 40,
80
+ "audio_token_id": 258881,
81
+ "boa_token_id": 256000,
82
+ "boi_token_id": 255999,
83
+ "dtype": "bfloat16",
84
+ "eoa_token_id": 258883,
85
+ "eoi_token_id": 258882,
86
+ "image_token_id": 258880,
87
+ "initializer_range": 0.02,
88
+ "model_type": "gemma4",
89
+ "text_config": {
90
+ "_sliding_window_pattern": 6,
91
+ "attention_bias": false,
92
+ "attention_dropout": 0.0,
93
+ "attention_k_eq_v": false,
94
+ "attn_logit_softcapping": null,
95
+ "bos_token_id": 2,
96
+ "dtype": "bfloat16",
97
+ "enable_moe_block": false,
98
+ "eos_token_id": 1,
99
+ "expert_intermediate_size": null,
100
+ "final_logit_softcapping": 30.0,
101
+ "global_head_dim": 512,
102
+ "head_dim": 256,
103
+ "hidden_activation": "gelu_pytorch_tanh",
104
+ "hidden_size": 2560,
105
+ "hidden_size_per_layer_input": 256,
106
+ "initializer_range": 0.02,
107
+ "intermediate_size": 10240,
108
+ "layer_types": [
109
+ "sliding_attention",
110
+ "sliding_attention",
111
+ "sliding_attention",
112
+ "sliding_attention",
113
+ "sliding_attention",
114
+ "full_attention",
115
+ "sliding_attention",
116
+ "sliding_attention",
117
+ "sliding_attention",
118
+ "sliding_attention",
119
+ "sliding_attention",
120
+ "full_attention",
121
+ "sliding_attention",
122
+ "sliding_attention",
123
+ "sliding_attention",
124
+ "sliding_attention",
125
+ "sliding_attention",
126
+ "full_attention",
127
+ "sliding_attention",
128
+ "sliding_attention",
129
+ "sliding_attention",
130
+ "sliding_attention",
131
+ "sliding_attention",
132
+ "full_attention",
133
+ "sliding_attention",
134
+ "sliding_attention",
135
+ "sliding_attention",
136
+ "sliding_attention",
137
+ "sliding_attention",
138
+ "full_attention",
139
+ "sliding_attention",
140
+ "sliding_attention",
141
+ "sliding_attention",
142
+ "sliding_attention",
143
+ "sliding_attention",
144
+ "full_attention",
145
+ "sliding_attention",
146
+ "sliding_attention",
147
+ "sliding_attention",
148
+ "sliding_attention",
149
+ "sliding_attention",
150
+ "full_attention"
151
+ ],
152
+ "max_position_embeddings": 131072,
153
+ "model_type": "gemma4_text",
154
+ "num_attention_heads": 8,
155
+ "num_experts": null,
156
+ "num_global_key_value_heads": null,
157
+ "num_hidden_layers": 42,
158
+ "num_key_value_heads": 2,
159
+ "num_kv_shared_layers": 18,
160
+ "pad_token_id": 0,
161
+ "query_pre_attn_scalar": 256,
162
+ "rms_norm_eps": 1e-06,
163
+ "rope_parameters": {
164
+ "full_attention": {
165
+ "partial_rotary_factor": 0.25,
166
+ "rope_theta": 1000000.0,
167
+ "rope_type": "proportional"
168
+ },
169
+ "sliding_attention": {
170
+ "rope_theta": 10000.0,
171
+ "rope_type": "default"
172
+ }
173
+ },
174
+ "routed_layer_pattern": null,
175
+ "sliding_window": 512,
176
+ "stream_and_decode_in_f32": false,
177
+ "tie_word_embeddings": true,
178
+ "top_k_experts": null,
179
+ "use_bidirectional_attention": null,
180
+ "use_cache": true,
181
+ "use_double_wide_mlp": false,
182
+ "vocab_size": 262144,
183
+ "vocab_size_per_layer_input": 262144
184
+ },
185
+ "tie_word_embeddings": true,
186
+ "transformers_version": "5.3.0.dev0",
187
+ "vision_config": {
188
+ "attention_bias": false,
189
+ "attention_dropout": 0.0,
190
+ "default_output_length": 280,
191
+ "dtype": "bfloat16",
192
+ "global_head_dim": 64,
193
+ "head_dim": 64,
194
+ "hidden_activation": "gelu_pytorch_tanh",
195
+ "hidden_size": 768,
196
+ "intermediate_size": 3072,
197
+ "layer_types": [
198
+ "full_attention",
199
+ "full_attention",
200
+ "full_attention",
201
+ "full_attention",
202
+ "full_attention",
203
+ "full_attention",
204
+ "full_attention",
205
+ "full_attention",
206
+ "full_attention",
207
+ "full_attention",
208
+ "full_attention",
209
+ "full_attention",
210
+ "full_attention",
211
+ "full_attention",
212
+ "full_attention",
213
+ "full_attention"
214
+ ],
215
+ "max_position_embeddings": 131072,
216
+ "model_type": "",
217
+ "num_attention_heads": 12,
218
+ "num_hidden_layers": 16,
219
+ "num_key_value_heads": 12,
220
+ "patch_size": 16,
221
+ "pooling_kernel_size": 3,
222
+ "position_embedding_size": 10240,
223
+ "rms_norm_eps": 1e-06,
224
+ "rope_parameters": {
225
+ "full_attention": {
226
+ "rope_theta": 100.0,
227
+ "rope_type": "default"
228
+ }
229
+ },
230
+ "use_bidirectional_attention": "vision",
231
+ "use_clipped_linears": true
232
+ },
233
+ "vision_soft_tokens_per_image": 280
234
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "do_sample": true,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 0,
6
+ "temperature": 1.0,
7
+ "do_sample": true,
8
+ "top_k": 64,
9
+ "top_p": 0.95,
10
+ "transformers_version": "5.3.0.dev0"
11
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48ce425f13036cd3e1eebb3908b5d9749a0dec195435f95f142709795643f559
3
+ size 15992602796
processor_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_ms_per_token": 40,
3
+ "audio_seq_length": 750,
4
+ "feature_extractor": {
5
+ "dither": 0.0,
6
+ "feature_extractor_type": "Gemma4AudioFeatureExtractor",
7
+ "feature_size": 128,
8
+ "fft_length": 512,
9
+ "fft_overdrive": false,
10
+ "frame_length": 320,
11
+ "hop_length": 160,
12
+ "input_scale_factor": 1.0,
13
+ "max_frequency": 8000.0,
14
+ "mel_floor": 0.001,
15
+ "min_frequency": 0.0,
16
+ "padding_side": "right",
17
+ "padding_value": 0.0,
18
+ "per_bin_mean": null,
19
+ "per_bin_stddev": null,
20
+ "preemphasis": 0.0,
21
+ "preemphasis_htk_flavor": true,
22
+ "return_attention_mask": true,
23
+ "sampling_rate": 16000
24
+ },
25
+ "image_processor": {
26
+ "data_format": "channels_first",
27
+ "do_convert_rgb": true,
28
+ "do_normalize": false,
29
+ "do_rescale": true,
30
+ "do_resize": true,
31
+ "image_mean": [
32
+ 0.5,
33
+ 0.5,
34
+ 0.5
35
+ ],
36
+ "image_processor_type": "Gemma4ImageProcessorFast",
37
+ "image_seq_length": 280,
38
+ "image_std": [
39
+ 0.5,
40
+ 0.5,
41
+ 0.5
42
+ ],
43
+ "max_soft_tokens": 280,
44
+ "patch_size": 16,
45
+ "pooling_kernel_size": 3,
46
+ "resample": 3,
47
+ "rescale_factor": 0.00392156862745098,
48
+ "size": {
49
+ "height": 224,
50
+ "width": 224
51
+ }
52
+ },
53
+ "image_seq_length": 280,
54
+ "processor_class": "Gemma4Processor"
55
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6f9cb1153f49bc7e0c148d0c1766017aed9512f45eb33afeeb71565d29c938b
3
+ size 32169319
tokenizer_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_token": "<|audio|>",
3
+ "backend": "tokenizers",
4
+ "boa_token": "<|audio>",
5
+ "boi_token": "<|image>",
6
+ "bos_token": "<bos>",
7
+ "eoa_token": "<audio|>",
8
+ "eoc_token": "<channel|>",
9
+ "eoi_token": "<image|>",
10
+ "eos_token": "<eos>",
11
+ "eot_token": "<turn|>",
12
+ "escape_token": "<|\"|>",
13
+ "etc_token": "<tool_call|>",
14
+ "etd_token": "<tool|>",
15
+ "etr_token": "<tool_response|>",
16
+ "extra_special_tokens": [],
17
+ "image_token": "<|image|>",
18
+ "mask_token": "<mask>",
19
+ "model_max_length": 1000000000000000019884624838656,
20
+ "pad_token": "<pad>",
21
+ "padding_side": "left",
22
+ "processor_class": "Gemma4Processor",
23
+ "soc_token": "<|channel>",
24
+ "sot_token": "<|turn>",
25
+ "stc_token": "<|tool_call>",
26
+ "std_token": "<|tool>",
27
+ "str_token": "<|tool_response>",
28
+ "think_token": "<|think|>",
29
+ "tokenizer_class": "GemmaTokenizer",
30
+ "unk_token": "<unk>"
31
+ }