Omar AbedelKader commited on
Commit
c2f99d0
·
1 Parent(s): cac7043

adding a new model

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
config.json ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma4ForConditionalGeneration"
4
+ ],
5
+ "audio_config": {
6
+ "_name_or_path": "",
7
+ "architectures": null,
8
+ "attention_chunk_size": 12,
9
+ "attention_context_left": 13,
10
+ "attention_context_right": 0,
11
+ "attention_invalid_logits_value": -1000000000.0,
12
+ "attention_logit_cap": 50.0,
13
+ "chunk_size_feed_forward": 0,
14
+ "conv_kernel_size": 5,
15
+ "dtype": "bfloat16",
16
+ "gradient_clipping": 10000000000.0,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "LABEL_0",
21
+ "1": "LABEL_1"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "is_encoder_decoder": false,
25
+ "label2id": {
26
+ "LABEL_0": 0,
27
+ "LABEL_1": 1
28
+ },
29
+ "model_type": "gemma4_audio",
30
+ "num_attention_heads": 8,
31
+ "num_hidden_layers": 12,
32
+ "output_attentions": false,
33
+ "output_hidden_states": false,
34
+ "output_proj_dims": 1536,
35
+ "problem_type": null,
36
+ "residual_weight": 0.5,
37
+ "return_dict": true,
38
+ "rms_norm_eps": 1e-06,
39
+ "subsampling_conv_channels": [
40
+ 128,
41
+ 32
42
+ ],
43
+ "use_clipped_linears": true
44
+ },
45
+ "audio_token_id": 258881,
46
+ "boa_token_id": 256000,
47
+ "boi_token_id": 255999,
48
+ "dtype": "bfloat16",
49
+ "eoa_token_id": 258883,
50
+ "eoa_token_index": 258883,
51
+ "eoi_token_id": 258882,
52
+ "image_token_id": 258880,
53
+ "initializer_range": 0.02,
54
+ "model_type": "gemma4",
55
+ "text_config": {
56
+ "attention_bias": false,
57
+ "attention_dropout": 0.0,
58
+ "attention_k_eq_v": false,
59
+ "bos_token_id": 2,
60
+ "dtype": "bfloat16",
61
+ "enable_moe_block": false,
62
+ "eos_token_id": 1,
63
+ "expert_intermediate_size": null,
64
+ "final_logit_softcapping": 30.0,
65
+ "global_head_dim": 512,
66
+ "head_dim": 256,
67
+ "hidden_activation": "gelu_pytorch_tanh",
68
+ "hidden_size": 1536,
69
+ "hidden_size_per_layer_input": 256,
70
+ "initializer_range": 0.02,
71
+ "intermediate_size": 6144,
72
+ "layer_types": [
73
+ "sliding_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "full_attention",
78
+ "sliding_attention",
79
+ "sliding_attention",
80
+ "sliding_attention",
81
+ "sliding_attention",
82
+ "full_attention",
83
+ "sliding_attention",
84
+ "sliding_attention",
85
+ "sliding_attention",
86
+ "sliding_attention",
87
+ "full_attention",
88
+ "sliding_attention",
89
+ "sliding_attention",
90
+ "sliding_attention",
91
+ "sliding_attention",
92
+ "full_attention",
93
+ "sliding_attention",
94
+ "sliding_attention",
95
+ "sliding_attention",
96
+ "sliding_attention",
97
+ "full_attention",
98
+ "sliding_attention",
99
+ "sliding_attention",
100
+ "sliding_attention",
101
+ "sliding_attention",
102
+ "full_attention",
103
+ "sliding_attention",
104
+ "sliding_attention",
105
+ "sliding_attention",
106
+ "sliding_attention",
107
+ "full_attention"
108
+ ],
109
+ "max_position_embeddings": 131072,
110
+ "model_type": "gemma4_text",
111
+ "num_attention_heads": 8,
112
+ "num_experts": null,
113
+ "num_global_key_value_heads": null,
114
+ "num_hidden_layers": 35,
115
+ "num_key_value_heads": 1,
116
+ "num_kv_shared_layers": 20,
117
+ "pad_token_id": 0,
118
+ "rms_norm_eps": 1e-06,
119
+ "rope_parameters": {
120
+ "full_attention": {
121
+ "partial_rotary_factor": 0.25,
122
+ "rope_theta": 1000000.0,
123
+ "rope_type": "proportional"
124
+ },
125
+ "sliding_attention": {
126
+ "rope_theta": 10000.0,
127
+ "rope_type": "default"
128
+ }
129
+ },
130
+ "sliding_window": 512,
131
+ "tie_word_embeddings": true,
132
+ "top_k_experts": null,
133
+ "use_bidirectional_attention": null,
134
+ "use_cache": true,
135
+ "use_double_wide_mlp": true,
136
+ "vocab_size": 262144,
137
+ "vocab_size_per_layer_input": 262144
138
+ },
139
+ "tie_word_embeddings": true,
140
+ "transformers_version": "5.5.0.dev0",
141
+ "video_token_id": 258884,
142
+ "vision_config": {
143
+ "_name_or_path": "",
144
+ "architectures": null,
145
+ "attention_bias": false,
146
+ "attention_dropout": 0.0,
147
+ "chunk_size_feed_forward": 0,
148
+ "default_output_length": 280,
149
+ "dtype": "bfloat16",
150
+ "global_head_dim": 64,
151
+ "head_dim": 64,
152
+ "hidden_activation": "gelu_pytorch_tanh",
153
+ "hidden_size": 768,
154
+ "id2label": {
155
+ "0": "LABEL_0",
156
+ "1": "LABEL_1"
157
+ },
158
+ "initializer_range": 0.02,
159
+ "intermediate_size": 3072,
160
+ "is_encoder_decoder": false,
161
+ "label2id": {
162
+ "LABEL_0": 0,
163
+ "LABEL_1": 1
164
+ },
165
+ "max_position_embeddings": 131072,
166
+ "model_type": "gemma4_vision",
167
+ "num_attention_heads": 12,
168
+ "num_hidden_layers": 16,
169
+ "num_key_value_heads": 12,
170
+ "output_attentions": false,
171
+ "output_hidden_states": false,
172
+ "patch_size": 16,
173
+ "pooling_kernel_size": 3,
174
+ "position_embedding_size": 10240,
175
+ "problem_type": null,
176
+ "return_dict": true,
177
+ "rms_norm_eps": 1e-06,
178
+ "rope_parameters": {
179
+ "rope_theta": 100.0,
180
+ "rope_type": "default"
181
+ },
182
+ "standardize": false,
183
+ "use_clipped_linears": true
184
+ },
185
+ "vision_soft_tokens_per_image": 280
186
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
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
+ "top_k": 64,
8
+ "top_p": 0.95,
9
+ "transformers_version": "5.5.0.dev0"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76dc84a5a805a2c8b91e9ccc00b8dbf8f4a99bf0d56ab25832f6e6addd4f7f57
3
+ size 10246621918
processor_config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "do_convert_rgb": true,
27
+ "do_normalize": false,
28
+ "do_rescale": true,
29
+ "do_resize": true,
30
+ "image_mean": [
31
+ 0.0,
32
+ 0.0,
33
+ 0.0
34
+ ],
35
+ "image_processor_type": "Gemma4ImageProcessor",
36
+ "image_seq_length": 280,
37
+ "image_std": [
38
+ 1.0,
39
+ 1.0,
40
+ 1.0
41
+ ],
42
+ "max_soft_tokens": 280,
43
+ "patch_size": 16,
44
+ "pooling_kernel_size": 3,
45
+ "resample": 3,
46
+ "rescale_factor": 0.00392156862745098
47
+ },
48
+ "image_seq_length": 280,
49
+ "processor_class": "Gemma4Processor",
50
+ "video_processor": {
51
+ "do_convert_rgb": true,
52
+ "do_normalize": true,
53
+ "do_rescale": true,
54
+ "do_resize": true,
55
+ "do_sample_frames": true,
56
+ "image_mean": [
57
+ 0.0,
58
+ 0.0,
59
+ 0.0
60
+ ],
61
+ "image_std": [
62
+ 1.0,
63
+ 1.0,
64
+ 1.0
65
+ ],
66
+ "max_soft_tokens": 70,
67
+ "num_frames": 32,
68
+ "patch_size": 16,
69
+ "pooling_kernel_size": 3,
70
+ "resample": 3,
71
+ "rescale_factor": 0.00392156862745098,
72
+ "return_metadata": false,
73
+ "video_processor_type": "Gemma4VideoProcessor"
74
+ }
75
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12bac982b793c44b03d52a250a9f0d0b666813da566b910c24a6da0695fd11e6
3
+ size 32170070
tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "audio_token": "<|audio|>",
4
+ "backend": "tokenizers",
5
+ "boa_token": "<|audio>",
6
+ "boi_token": "<|image>",
7
+ "bos_token": "<bos>",
8
+ "eoa_token": "<audio|>",
9
+ "eoc_token": "<channel|>",
10
+ "eoi_token": "<image|>",
11
+ "eos_token": "<eos>",
12
+ "eot_token": "<turn|>",
13
+ "escape_token": "<|\"|>",
14
+ "etc_token": "<tool_call|>",
15
+ "etd_token": "<tool|>",
16
+ "etr_token": "<tool_response|>",
17
+ "extra_special_tokens": [
18
+ "<|video|>"
19
+ ],
20
+ "image_token": "<|image|>",
21
+ "mask_token": "<mask>",
22
+ "model_max_length": 1000000000000000019884624838656,
23
+ "pad_token": "<pad>",
24
+ "padding_side": "left",
25
+ "processor_class": "Gemma4Processor",
26
+ "soc_token": "<|channel>",
27
+ "sot_token": "<|turn>",
28
+ "stc_token": "<|tool_call>",
29
+ "std_token": "<|tool>",
30
+ "str_token": "<|tool_response>",
31
+ "think_token": "<|think|>",
32
+ "tokenizer_class": "GemmaTokenizer",
33
+ "unk_token": "<unk>"
34
+ }