Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +29 -0
- config.json +447 -0
- generation_config.json +10 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +51 -0
- processor_config.json +5 -0
- special_tokens_map.json +36 -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,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: gemma
|
| 3 |
+
library_name: transformers
|
| 4 |
+
pipeline_tag: image-text-to-text
|
| 5 |
+
extra_gated_heading: Access Gemma on Hugging Face
|
| 6 |
+
extra_gated_prompt: To access Gemma on Hugging Face, you’re required to review and
|
| 7 |
+
agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging
|
| 8 |
+
Face and click below. Requests are processed immediately.
|
| 9 |
+
extra_gated_button_content: Acknowledge license
|
| 10 |
+
tags:
|
| 11 |
+
- automatic-speech-recognition
|
| 12 |
+
- automatic-speech-translation
|
| 13 |
+
- audio-text-to-text
|
| 14 |
+
- video-text-to-text
|
| 15 |
+
- mlx
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# mlx-community/gemma-3n-E4B-bf16
|
| 19 |
+
This model was converted to MLX format from [`google/gemma-3n-E4B`]() using mlx-vlm version **0.2.0**.
|
| 20 |
+
Refer to the [original model card](https://huggingface.co/google/gemma-3n-E4B) for more details on the model.
|
| 21 |
+
## Use with mlx
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
pip install -U mlx-vlm
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
python -m mlx_vlm.generate --model mlx-community/gemma-3n-E4B-bf16 --max-tokens 100 --temperature 0.0 --prompt "Describe this image." --image <path_to_image>
|
| 29 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Gemma3nForConditionalGeneration"
|
| 5 |
+
],
|
| 6 |
+
"audio_config": {
|
| 7 |
+
"return_dict": true,
|
| 8 |
+
"output_hidden_states": false,
|
| 9 |
+
"torchscript": false,
|
| 10 |
+
"torch_dtype": "bfloat16",
|
| 11 |
+
"use_bfloat16": false,
|
| 12 |
+
"tf_legacy_loss": false,
|
| 13 |
+
"pruned_heads": {},
|
| 14 |
+
"tie_word_embeddings": true,
|
| 15 |
+
"chunk_size_feed_forward": 0,
|
| 16 |
+
"is_encoder_decoder": false,
|
| 17 |
+
"is_decoder": false,
|
| 18 |
+
"cross_attention_hidden_size": null,
|
| 19 |
+
"add_cross_attention": false,
|
| 20 |
+
"tie_encoder_decoder": false,
|
| 21 |
+
"max_length": 20,
|
| 22 |
+
"min_length": 0,
|
| 23 |
+
"do_sample": false,
|
| 24 |
+
"early_stopping": false,
|
| 25 |
+
"num_beams": 1,
|
| 26 |
+
"num_beam_groups": 1,
|
| 27 |
+
"diversity_penalty": 0.0,
|
| 28 |
+
"temperature": 1.0,
|
| 29 |
+
"top_k": 50,
|
| 30 |
+
"top_p": 1.0,
|
| 31 |
+
"typical_p": 1.0,
|
| 32 |
+
"repetition_penalty": 1.0,
|
| 33 |
+
"length_penalty": 1.0,
|
| 34 |
+
"no_repeat_ngram_size": 0,
|
| 35 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 36 |
+
"bad_words_ids": null,
|
| 37 |
+
"num_return_sequences": 1,
|
| 38 |
+
"output_scores": false,
|
| 39 |
+
"return_dict_in_generate": false,
|
| 40 |
+
"forced_bos_token_id": null,
|
| 41 |
+
"forced_eos_token_id": null,
|
| 42 |
+
"remove_invalid_values": false,
|
| 43 |
+
"exponential_decay_length_penalty": null,
|
| 44 |
+
"suppress_tokens": null,
|
| 45 |
+
"begin_suppress_tokens": null,
|
| 46 |
+
"architectures": null,
|
| 47 |
+
"finetuning_task": null,
|
| 48 |
+
"id2label": {
|
| 49 |
+
"0": "LABEL_0",
|
| 50 |
+
"1": "LABEL_1"
|
| 51 |
+
},
|
| 52 |
+
"label2id": {
|
| 53 |
+
"LABEL_0": 0,
|
| 54 |
+
"LABEL_1": 1
|
| 55 |
+
},
|
| 56 |
+
"tokenizer_class": null,
|
| 57 |
+
"prefix": null,
|
| 58 |
+
"bos_token_id": null,
|
| 59 |
+
"pad_token_id": null,
|
| 60 |
+
"eos_token_id": null,
|
| 61 |
+
"sep_token_id": null,
|
| 62 |
+
"decoder_start_token_id": null,
|
| 63 |
+
"task_specific_params": null,
|
| 64 |
+
"problem_type": null,
|
| 65 |
+
"_name_or_path": "",
|
| 66 |
+
"conf_positional_bias_size": 256,
|
| 67 |
+
"model_type": "gemma3n_audio",
|
| 68 |
+
"sscp_conv_eps": 0.001,
|
| 69 |
+
"input_feat_size": 128,
|
| 70 |
+
"hidden_size": 1536,
|
| 71 |
+
"rms_norm_eps": 1e-06,
|
| 72 |
+
"vocab_size": 128,
|
| 73 |
+
"vocab_offset": 262272,
|
| 74 |
+
"gradient_clipping": 10000000000.0,
|
| 75 |
+
"conf_attention_chunk_size": 12,
|
| 76 |
+
"conf_attention_context_left": 13,
|
| 77 |
+
"conf_attention_context_right": 0,
|
| 78 |
+
"conf_attention_logit_cap": 50.0,
|
| 79 |
+
"conf_num_attention_heads": 8,
|
| 80 |
+
"conf_num_hidden_layers": 12,
|
| 81 |
+
"conf_conv_kernel_size": 5,
|
| 82 |
+
"conf_reduction_factor": 4,
|
| 83 |
+
"conf_residual_weight": 0.5,
|
| 84 |
+
"sscp_conv_channel_size": [
|
| 85 |
+
128,
|
| 86 |
+
32
|
| 87 |
+
],
|
| 88 |
+
"sscp_conv_group_norm_eps": 0.001,
|
| 89 |
+
"sscp_conv_kernel_size": [
|
| 90 |
+
[
|
| 91 |
+
3,
|
| 92 |
+
3
|
| 93 |
+
],
|
| 94 |
+
[
|
| 95 |
+
3,
|
| 96 |
+
3
|
| 97 |
+
]
|
| 98 |
+
],
|
| 99 |
+
"sscp_conv_stride_size": [
|
| 100 |
+
[
|
| 101 |
+
2,
|
| 102 |
+
2
|
| 103 |
+
],
|
| 104 |
+
[
|
| 105 |
+
2,
|
| 106 |
+
2
|
| 107 |
+
]
|
| 108 |
+
],
|
| 109 |
+
"output_attentions": false
|
| 110 |
+
},
|
| 111 |
+
"audio_soft_tokens_per_image": 188,
|
| 112 |
+
"audio_token_id": 262273,
|
| 113 |
+
"bad_words_ids": null,
|
| 114 |
+
"begin_suppress_tokens": null,
|
| 115 |
+
"boa_token_id": 256000,
|
| 116 |
+
"boi_token_id": 255999,
|
| 117 |
+
"bos_token_id": null,
|
| 118 |
+
"chunk_size_feed_forward": 0,
|
| 119 |
+
"cross_attention_hidden_size": null,
|
| 120 |
+
"decoder_start_token_id": null,
|
| 121 |
+
"diversity_penalty": 0.0,
|
| 122 |
+
"do_sample": false,
|
| 123 |
+
"early_stopping": false,
|
| 124 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 125 |
+
"eoa_token_id": 262272,
|
| 126 |
+
"eoi_token_id": 262144,
|
| 127 |
+
"eos_token_id": null,
|
| 128 |
+
"exponential_decay_length_penalty": null,
|
| 129 |
+
"finetuning_task": null,
|
| 130 |
+
"forced_bos_token_id": null,
|
| 131 |
+
"forced_eos_token_id": null,
|
| 132 |
+
"id2label": {
|
| 133 |
+
"0": "LABEL_0",
|
| 134 |
+
"1": "LABEL_1"
|
| 135 |
+
},
|
| 136 |
+
"image_token_id": 262145,
|
| 137 |
+
"initializer_range": 0.02,
|
| 138 |
+
"is_decoder": false,
|
| 139 |
+
"is_encoder_decoder": false,
|
| 140 |
+
"label2id": {
|
| 141 |
+
"LABEL_0": 0,
|
| 142 |
+
"LABEL_1": 1
|
| 143 |
+
},
|
| 144 |
+
"length_penalty": 1.0,
|
| 145 |
+
"max_length": 20,
|
| 146 |
+
"min_length": 0,
|
| 147 |
+
"model_type": "gemma3n",
|
| 148 |
+
"no_repeat_ngram_size": 0,
|
| 149 |
+
"num_beam_groups": 1,
|
| 150 |
+
"num_beams": 1,
|
| 151 |
+
"num_return_sequences": 1,
|
| 152 |
+
"output_attentions": false,
|
| 153 |
+
"output_hidden_states": false,
|
| 154 |
+
"output_scores": false,
|
| 155 |
+
"pad_token_id": null,
|
| 156 |
+
"prefix": null,
|
| 157 |
+
"problem_type": null,
|
| 158 |
+
"pruned_heads": {},
|
| 159 |
+
"remove_invalid_values": false,
|
| 160 |
+
"repetition_penalty": 1.0,
|
| 161 |
+
"return_dict": true,
|
| 162 |
+
"return_dict_in_generate": false,
|
| 163 |
+
"sep_token_id": null,
|
| 164 |
+
"suppress_tokens": null,
|
| 165 |
+
"task_specific_params": null,
|
| 166 |
+
"temperature": 1.0,
|
| 167 |
+
"text_config": {
|
| 168 |
+
"return_dict": true,
|
| 169 |
+
"output_hidden_states": false,
|
| 170 |
+
"torchscript": false,
|
| 171 |
+
"torch_dtype": "bfloat16",
|
| 172 |
+
"use_bfloat16": false,
|
| 173 |
+
"tf_legacy_loss": false,
|
| 174 |
+
"pruned_heads": {},
|
| 175 |
+
"tie_word_embeddings": true,
|
| 176 |
+
"chunk_size_feed_forward": 0,
|
| 177 |
+
"is_encoder_decoder": false,
|
| 178 |
+
"is_decoder": false,
|
| 179 |
+
"cross_attention_hidden_size": null,
|
| 180 |
+
"add_cross_attention": false,
|
| 181 |
+
"tie_encoder_decoder": false,
|
| 182 |
+
"max_length": 20,
|
| 183 |
+
"min_length": 0,
|
| 184 |
+
"do_sample": false,
|
| 185 |
+
"early_stopping": false,
|
| 186 |
+
"num_beams": 1,
|
| 187 |
+
"num_beam_groups": 1,
|
| 188 |
+
"diversity_penalty": 0.0,
|
| 189 |
+
"temperature": 1.0,
|
| 190 |
+
"top_k": 50,
|
| 191 |
+
"top_p": 1.0,
|
| 192 |
+
"typical_p": 1.0,
|
| 193 |
+
"repetition_penalty": 1.0,
|
| 194 |
+
"length_penalty": 1.0,
|
| 195 |
+
"no_repeat_ngram_size": 0,
|
| 196 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 197 |
+
"bad_words_ids": null,
|
| 198 |
+
"num_return_sequences": 1,
|
| 199 |
+
"output_scores": false,
|
| 200 |
+
"return_dict_in_generate": false,
|
| 201 |
+
"forced_bos_token_id": null,
|
| 202 |
+
"forced_eos_token_id": null,
|
| 203 |
+
"remove_invalid_values": false,
|
| 204 |
+
"exponential_decay_length_penalty": null,
|
| 205 |
+
"suppress_tokens": null,
|
| 206 |
+
"begin_suppress_tokens": null,
|
| 207 |
+
"architectures": null,
|
| 208 |
+
"finetuning_task": null,
|
| 209 |
+
"id2label": {
|
| 210 |
+
"0": "LABEL_0",
|
| 211 |
+
"1": "LABEL_1"
|
| 212 |
+
},
|
| 213 |
+
"label2id": {
|
| 214 |
+
"LABEL_0": 0,
|
| 215 |
+
"LABEL_1": 1
|
| 216 |
+
},
|
| 217 |
+
"tokenizer_class": null,
|
| 218 |
+
"prefix": null,
|
| 219 |
+
"bos_token_id": 2,
|
| 220 |
+
"pad_token_id": 0,
|
| 221 |
+
"eos_token_id": 1,
|
| 222 |
+
"sep_token_id": null,
|
| 223 |
+
"decoder_start_token_id": null,
|
| 224 |
+
"task_specific_params": null,
|
| 225 |
+
"problem_type": null,
|
| 226 |
+
"_name_or_path": "",
|
| 227 |
+
"altup_lr_multiplier": 1.0,
|
| 228 |
+
"model_type": "gemma3n_text",
|
| 229 |
+
"query_pre_attn_scalar": 256,
|
| 230 |
+
"vocab_size": 262400,
|
| 231 |
+
"vocab_size_per_layer_input": 262144,
|
| 232 |
+
"max_position_embeddings": 32768,
|
| 233 |
+
"hidden_size": 2048,
|
| 234 |
+
"intermediate_size": [
|
| 235 |
+
16384,
|
| 236 |
+
16384,
|
| 237 |
+
16384,
|
| 238 |
+
16384,
|
| 239 |
+
16384,
|
| 240 |
+
16384,
|
| 241 |
+
16384,
|
| 242 |
+
16384,
|
| 243 |
+
16384,
|
| 244 |
+
16384,
|
| 245 |
+
16384,
|
| 246 |
+
16384,
|
| 247 |
+
16384,
|
| 248 |
+
16384,
|
| 249 |
+
16384,
|
| 250 |
+
16384,
|
| 251 |
+
16384,
|
| 252 |
+
16384,
|
| 253 |
+
16384,
|
| 254 |
+
16384,
|
| 255 |
+
16384,
|
| 256 |
+
16384,
|
| 257 |
+
16384,
|
| 258 |
+
16384,
|
| 259 |
+
16384,
|
| 260 |
+
16384,
|
| 261 |
+
16384,
|
| 262 |
+
16384,
|
| 263 |
+
16384,
|
| 264 |
+
16384,
|
| 265 |
+
16384,
|
| 266 |
+
16384,
|
| 267 |
+
16384,
|
| 268 |
+
16384,
|
| 269 |
+
16384
|
| 270 |
+
],
|
| 271 |
+
"num_hidden_layers": 35,
|
| 272 |
+
"num_attention_heads": 8,
|
| 273 |
+
"head_dim": 256,
|
| 274 |
+
"num_key_value_heads": 2,
|
| 275 |
+
"initializer_range": 0.02,
|
| 276 |
+
"rms_norm_eps": 1e-06,
|
| 277 |
+
"use_cache": true,
|
| 278 |
+
"rope_theta": 1000000.0,
|
| 279 |
+
"attention_bias": false,
|
| 280 |
+
"attention_dropout": 0.0,
|
| 281 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
| 282 |
+
"sliding_window": 512,
|
| 283 |
+
"final_logit_softcapping": 30.0,
|
| 284 |
+
"layer_types": [
|
| 285 |
+
"sliding_attention",
|
| 286 |
+
"sliding_attention",
|
| 287 |
+
"sliding_attention",
|
| 288 |
+
"sliding_attention",
|
| 289 |
+
"full_attention",
|
| 290 |
+
"sliding_attention",
|
| 291 |
+
"sliding_attention",
|
| 292 |
+
"sliding_attention",
|
| 293 |
+
"sliding_attention",
|
| 294 |
+
"full_attention",
|
| 295 |
+
"sliding_attention",
|
| 296 |
+
"sliding_attention",
|
| 297 |
+
"sliding_attention",
|
| 298 |
+
"sliding_attention",
|
| 299 |
+
"full_attention",
|
| 300 |
+
"sliding_attention",
|
| 301 |
+
"sliding_attention",
|
| 302 |
+
"sliding_attention",
|
| 303 |
+
"sliding_attention",
|
| 304 |
+
"full_attention",
|
| 305 |
+
"sliding_attention",
|
| 306 |
+
"sliding_attention",
|
| 307 |
+
"sliding_attention",
|
| 308 |
+
"sliding_attention",
|
| 309 |
+
"full_attention",
|
| 310 |
+
"sliding_attention",
|
| 311 |
+
"sliding_attention",
|
| 312 |
+
"sliding_attention",
|
| 313 |
+
"sliding_attention",
|
| 314 |
+
"full_attention",
|
| 315 |
+
"sliding_attention",
|
| 316 |
+
"sliding_attention",
|
| 317 |
+
"sliding_attention",
|
| 318 |
+
"sliding_attention",
|
| 319 |
+
"full_attention"
|
| 320 |
+
],
|
| 321 |
+
"rope_local_base_freq": 10000.0,
|
| 322 |
+
"rope_scaling": null,
|
| 323 |
+
"hidden_size_per_layer_input": 256,
|
| 324 |
+
"num_kv_shared_layers": 15,
|
| 325 |
+
"altup_active_idx": 0,
|
| 326 |
+
"altup_coef_clip": 120.0,
|
| 327 |
+
"altup_correct_scale": true,
|
| 328 |
+
"altup_num_inputs": 4,
|
| 329 |
+
"laurel_rank": 64,
|
| 330 |
+
"activation_sparsity_pattern": [
|
| 331 |
+
0.95,
|
| 332 |
+
0.95,
|
| 333 |
+
0.95,
|
| 334 |
+
0.95,
|
| 335 |
+
0.95,
|
| 336 |
+
0.95,
|
| 337 |
+
0.95,
|
| 338 |
+
0.95,
|
| 339 |
+
0.95,
|
| 340 |
+
0.95,
|
| 341 |
+
0.0,
|
| 342 |
+
0.0,
|
| 343 |
+
0.0,
|
| 344 |
+
0.0,
|
| 345 |
+
0.0,
|
| 346 |
+
0.0,
|
| 347 |
+
0.0,
|
| 348 |
+
0.0,
|
| 349 |
+
0.0,
|
| 350 |
+
0.0,
|
| 351 |
+
0.0,
|
| 352 |
+
0.0,
|
| 353 |
+
0.0,
|
| 354 |
+
0.0,
|
| 355 |
+
0.0,
|
| 356 |
+
0.0,
|
| 357 |
+
0.0,
|
| 358 |
+
0.0,
|
| 359 |
+
0.0,
|
| 360 |
+
0.0,
|
| 361 |
+
0.0,
|
| 362 |
+
0.0,
|
| 363 |
+
0.0,
|
| 364 |
+
0.0,
|
| 365 |
+
0.0
|
| 366 |
+
],
|
| 367 |
+
"output_attentions": false
|
| 368 |
+
},
|
| 369 |
+
"tf_legacy_loss": false,
|
| 370 |
+
"tie_encoder_decoder": false,
|
| 371 |
+
"tie_word_embeddings": true,
|
| 372 |
+
"tokenizer_class": null,
|
| 373 |
+
"top_k": 50,
|
| 374 |
+
"top_p": 1.0,
|
| 375 |
+
"torchscript": false,
|
| 376 |
+
"transformers_version": "4.53.0.dev0",
|
| 377 |
+
"typical_p": 1.0,
|
| 378 |
+
"use_bfloat16": false,
|
| 379 |
+
"vision_config": {
|
| 380 |
+
"return_dict": true,
|
| 381 |
+
"output_hidden_states": false,
|
| 382 |
+
"torchscript": false,
|
| 383 |
+
"torch_dtype": "bfloat16",
|
| 384 |
+
"use_bfloat16": false,
|
| 385 |
+
"tf_legacy_loss": false,
|
| 386 |
+
"pruned_heads": {},
|
| 387 |
+
"tie_word_embeddings": true,
|
| 388 |
+
"chunk_size_feed_forward": 0,
|
| 389 |
+
"is_encoder_decoder": false,
|
| 390 |
+
"is_decoder": false,
|
| 391 |
+
"cross_attention_hidden_size": null,
|
| 392 |
+
"add_cross_attention": false,
|
| 393 |
+
"tie_encoder_decoder": false,
|
| 394 |
+
"max_length": 20,
|
| 395 |
+
"min_length": 0,
|
| 396 |
+
"do_sample": false,
|
| 397 |
+
"early_stopping": false,
|
| 398 |
+
"num_beams": 1,
|
| 399 |
+
"num_beam_groups": 1,
|
| 400 |
+
"diversity_penalty": 0.0,
|
| 401 |
+
"temperature": 1.0,
|
| 402 |
+
"top_k": 50,
|
| 403 |
+
"top_p": 1.0,
|
| 404 |
+
"typical_p": 1.0,
|
| 405 |
+
"repetition_penalty": 1.0,
|
| 406 |
+
"length_penalty": 1.0,
|
| 407 |
+
"no_repeat_ngram_size": 0,
|
| 408 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 409 |
+
"bad_words_ids": null,
|
| 410 |
+
"num_return_sequences": 1,
|
| 411 |
+
"output_scores": false,
|
| 412 |
+
"return_dict_in_generate": false,
|
| 413 |
+
"forced_bos_token_id": null,
|
| 414 |
+
"forced_eos_token_id": null,
|
| 415 |
+
"remove_invalid_values": false,
|
| 416 |
+
"exponential_decay_length_penalty": null,
|
| 417 |
+
"suppress_tokens": null,
|
| 418 |
+
"begin_suppress_tokens": null,
|
| 419 |
+
"architectures": null,
|
| 420 |
+
"finetuning_task": null,
|
| 421 |
+
"tokenizer_class": null,
|
| 422 |
+
"prefix": null,
|
| 423 |
+
"bos_token_id": null,
|
| 424 |
+
"pad_token_id": null,
|
| 425 |
+
"eos_token_id": null,
|
| 426 |
+
"sep_token_id": null,
|
| 427 |
+
"decoder_start_token_id": null,
|
| 428 |
+
"task_specific_params": null,
|
| 429 |
+
"problem_type": null,
|
| 430 |
+
"_name_or_path": "",
|
| 431 |
+
"label_names": [
|
| 432 |
+
"LABEL_0",
|
| 433 |
+
"LABEL_1"
|
| 434 |
+
],
|
| 435 |
+
"model_type": "gemma3n_vision",
|
| 436 |
+
"num_classes": 2,
|
| 437 |
+
"initializer_range": 0.02,
|
| 438 |
+
"do_pooling": true,
|
| 439 |
+
"architecture": "mobilenetv5_300m_enc",
|
| 440 |
+
"hidden_size": 2048,
|
| 441 |
+
"vocab_size": 128,
|
| 442 |
+
"vocab_offset": 262144,
|
| 443 |
+
"rms_norm_eps": 1e-06,
|
| 444 |
+
"output_attentions": false
|
| 445 |
+
},
|
| 446 |
+
"vision_soft_tokens_per_image": 256
|
| 447 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 2,
|
| 3 |
+
"cache_implementation": "hybrid",
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 1,
|
| 6 |
+
"pad_token_id": 0,
|
| 7 |
+
"top_k": 64,
|
| 8 |
+
"top_p": 0.95,
|
| 9 |
+
"transformers_version": "4.53.0.dev0"
|
| 10 |
+
}
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0da5ef554b8ead02b4d257cce087a502748fa9c3df9af9e020959b07b8b7ae6
|
| 3 |
+
size 5361861720
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61a756c8b1aef0785674452574b7a2e34575ce1eafdbb20504c254865a0acf24
|
| 3 |
+
size 3586985605
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74024367e782d8f70dd102d68536b8e28df720a3c1951b083784d87083933845
|
| 3 |
+
size 4784658158
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f177f7ffa6f39f6293964c4c8697601daf28d84a64650ece10c032c0615f3da
|
| 3 |
+
size 3041461107
|
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,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": null,
|
| 3 |
+
"data_format": "channels_first",
|
| 4 |
+
"default_to_square": false,
|
| 5 |
+
"device": null,
|
| 6 |
+
"disable_grouping": null,
|
| 7 |
+
"dither": 0.0,
|
| 8 |
+
"do_center_crop": null,
|
| 9 |
+
"do_convert_rgb": null,
|
| 10 |
+
"do_normalize": false,
|
| 11 |
+
"do_rescale": true,
|
| 12 |
+
"do_resize": true,
|
| 13 |
+
"feature_size": 128,
|
| 14 |
+
"fft_length": 1024,
|
| 15 |
+
"fft_overdrive": true,
|
| 16 |
+
"frame_length": 512,
|
| 17 |
+
"hop_length": 160,
|
| 18 |
+
"image_mean": [
|
| 19 |
+
0.5,
|
| 20 |
+
0.5,
|
| 21 |
+
0.5
|
| 22 |
+
],
|
| 23 |
+
"image_processor_type": "SiglipImageProcessorFast",
|
| 24 |
+
"image_seq_length": 256,
|
| 25 |
+
"image_std": [
|
| 26 |
+
0.5,
|
| 27 |
+
0.5,
|
| 28 |
+
0.5
|
| 29 |
+
],
|
| 30 |
+
"input_data_format": null,
|
| 31 |
+
"input_scale_factor": 1.0,
|
| 32 |
+
"max_frequency": 7600.0,
|
| 33 |
+
"mel_floor": 1e-05,
|
| 34 |
+
"min_frequency": 125.0,
|
| 35 |
+
"padding_side": "right",
|
| 36 |
+
"padding_value": 0.0,
|
| 37 |
+
"per_bin_mean": null,
|
| 38 |
+
"per_bin_stddev": null,
|
| 39 |
+
"preemphasis": 0.97,
|
| 40 |
+
"preemphasis_htk_flavor": true,
|
| 41 |
+
"processor_class": "Gemma3nProcessor",
|
| 42 |
+
"resample": 2,
|
| 43 |
+
"rescale_factor": 0.00392156862745098,
|
| 44 |
+
"return_attention_mask": false,
|
| 45 |
+
"return_tensors": null,
|
| 46 |
+
"sampling_rate": 16000,
|
| 47 |
+
"size": {
|
| 48 |
+
"height": 768,
|
| 49 |
+
"width": 768
|
| 50 |
+
}
|
| 51 |
+
}
|
processor_config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"audio_seq_length": 188,
|
| 3 |
+
"image_seq_length": 256,
|
| 4 |
+
"processor_class": "Gemma3nProcessor"
|
| 5 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"audio_token": "<audio_soft_token>",
|
| 3 |
+
"boa_token": "<start_of_audio>",
|
| 4 |
+
"boi_token": "<start_of_image>",
|
| 5 |
+
"bos_token": {
|
| 6 |
+
"content": "<bos>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"eoa_token": "<end_of_audio>",
|
| 13 |
+
"eoi_token": "<end_of_image>",
|
| 14 |
+
"eos_token": {
|
| 15 |
+
"content": "<eos>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false
|
| 20 |
+
},
|
| 21 |
+
"image_token": "<image_soft_token>",
|
| 22 |
+
"pad_token": {
|
| 23 |
+
"content": "<pad>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": false,
|
| 26 |
+
"rstrip": false,
|
| 27 |
+
"single_word": false
|
| 28 |
+
},
|
| 29 |
+
"unk_token": {
|
| 30 |
+
"content": "<unk>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false
|
| 35 |
+
}
|
| 36 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6c35ee648c07754b44cd9e371c75d4caa05c4504910b7ad29b1847ee9d8ba5d
|
| 3 |
+
size 33442553
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea5f0cc48abfbfc04d14562270a32e02149a3e7035f368cc5a462786f4a59961
|
| 3 |
+
size 4696020
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|