Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- README.md +36 -0
- chat_template.jinja +49 -0
- config.json +455 -0
- generation_config.json +13 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +50 -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,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
base_model: google/gemma-3n-E4B-it
|
11 |
+
tags:
|
12 |
+
- automatic-speech-recognition
|
13 |
+
- automatic-speech-translation
|
14 |
+
- audio-text-to-text
|
15 |
+
- video-text-to-text
|
16 |
+
- mlx
|
17 |
+
---
|
18 |
+
## 💫 Community Model> gemma-3n-E4B-it by google
|
19 |
+
|
20 |
+
*👾 [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*.
|
21 |
+
|
22 |
+
**Model creator:** [google](https://huggingface.co/google)<br>
|
23 |
+
**Original model**: [gemma-3n-E4B-it](https://huggingface.co/google/gemma-3n-E4B-it)<br>
|
24 |
+
**MLX quantization:** provided by [LM Studio team](https://x.com/lmstudio) using [mlx_vlm](https://github.com/Blaizzy/mlx-vlm)<br>
|
25 |
+
|
26 |
+
## Technical Details
|
27 |
+
|
28 |
+
8-bit quantized version of gemma-3n-E4B-it using MLX, optimized for Apple Silicon.
|
29 |
+
|
30 |
+
## Special thanks
|
31 |
+
|
32 |
+
🙏 Special thanks to the [Apple Machine Learning Research](https://github.com/ml-explore) team for creating [MLX](https://github.com/ml-explore/mlx).
|
33 |
+
|
34 |
+
## Disclaimers
|
35 |
+
|
36 |
+
LM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model. You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models. LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio.
|
chat_template.jinja
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{{ bos_token }}
|
2 |
+
{%- if messages[0]['role'] == 'system' -%}
|
3 |
+
{%- if messages[0]['content'] is string -%}
|
4 |
+
{%- set first_user_prefix = messages[0]['content'] + '
|
5 |
+
|
6 |
+
' -%}
|
7 |
+
{%- else -%}
|
8 |
+
{%- set first_user_prefix = messages[0]['content'][0]['text'] + '
|
9 |
+
|
10 |
+
' -%}
|
11 |
+
{%- endif -%}
|
12 |
+
{%- set loop_messages = messages[1:] -%}
|
13 |
+
{%- else -%}
|
14 |
+
{%- set first_user_prefix = "" -%}
|
15 |
+
{%- set loop_messages = messages -%}
|
16 |
+
{%- endif -%}
|
17 |
+
{%- for message in loop_messages -%}
|
18 |
+
{%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
|
19 |
+
{{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
|
20 |
+
{%- endif -%}
|
21 |
+
{%- if (message['role'] == 'assistant') -%}
|
22 |
+
{%- set role = "model" -%}
|
23 |
+
{%- else -%}
|
24 |
+
{%- set role = message['role'] -%}
|
25 |
+
{%- endif -%}
|
26 |
+
{{ '<start_of_turn>' + role + '
|
27 |
+
' + (first_user_prefix if loop.first else "") }}
|
28 |
+
{%- if message['content'] is string -%}
|
29 |
+
{{ message['content'] | trim }}
|
30 |
+
{%- elif message['content'] is iterable -%}
|
31 |
+
{%- for item in message['content'] -%}
|
32 |
+
{%- if item['type'] == 'audio' -%}
|
33 |
+
{{ '<audio_soft_token>' }}
|
34 |
+
{%- elif item['type'] == 'image' -%}
|
35 |
+
{{ '<image_soft_token>' }}
|
36 |
+
{%- elif item['type'] == 'text' -%}
|
37 |
+
{{ item['text'] | trim }}
|
38 |
+
{%- endif -%}
|
39 |
+
{%- endfor -%}
|
40 |
+
{%- else -%}
|
41 |
+
{{ raise_exception("Invalid content type") }}
|
42 |
+
{%- endif -%}
|
43 |
+
{{ '<end_of_turn>
|
44 |
+
' }}
|
45 |
+
{%- endfor -%}
|
46 |
+
{%- if add_generation_prompt -%}
|
47 |
+
{{'<start_of_turn>model
|
48 |
+
'}}
|
49 |
+
{%- endif -%}
|
config.json
ADDED
@@ -0,0 +1,455 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": [
|
128 |
+
1,
|
129 |
+
106
|
130 |
+
],
|
131 |
+
"exponential_decay_length_penalty": null,
|
132 |
+
"finetuning_task": null,
|
133 |
+
"forced_bos_token_id": null,
|
134 |
+
"forced_eos_token_id": null,
|
135 |
+
"id2label": {
|
136 |
+
"0": "LABEL_0",
|
137 |
+
"1": "LABEL_1"
|
138 |
+
},
|
139 |
+
"image_token_id": 262145,
|
140 |
+
"initializer_range": 0.02,
|
141 |
+
"is_decoder": false,
|
142 |
+
"is_encoder_decoder": false,
|
143 |
+
"label2id": {
|
144 |
+
"LABEL_0": 0,
|
145 |
+
"LABEL_1": 1
|
146 |
+
},
|
147 |
+
"length_penalty": 1.0,
|
148 |
+
"max_length": 20,
|
149 |
+
"min_length": 0,
|
150 |
+
"model_type": "gemma3n",
|
151 |
+
"no_repeat_ngram_size": 0,
|
152 |
+
"num_beam_groups": 1,
|
153 |
+
"num_beams": 1,
|
154 |
+
"num_return_sequences": 1,
|
155 |
+
"output_attentions": false,
|
156 |
+
"output_hidden_states": false,
|
157 |
+
"output_scores": false,
|
158 |
+
"pad_token_id": null,
|
159 |
+
"prefix": null,
|
160 |
+
"problem_type": null,
|
161 |
+
"pruned_heads": {},
|
162 |
+
"quantization": {
|
163 |
+
"group_size": 64,
|
164 |
+
"bits": 8
|
165 |
+
},
|
166 |
+
"remove_invalid_values": false,
|
167 |
+
"repetition_penalty": 1.0,
|
168 |
+
"return_dict": true,
|
169 |
+
"return_dict_in_generate": false,
|
170 |
+
"sep_token_id": null,
|
171 |
+
"suppress_tokens": null,
|
172 |
+
"task_specific_params": null,
|
173 |
+
"temperature": 1.0,
|
174 |
+
"text_config": {
|
175 |
+
"return_dict": true,
|
176 |
+
"output_hidden_states": false,
|
177 |
+
"torchscript": false,
|
178 |
+
"torch_dtype": "bfloat16",
|
179 |
+
"use_bfloat16": false,
|
180 |
+
"tf_legacy_loss": false,
|
181 |
+
"pruned_heads": {},
|
182 |
+
"tie_word_embeddings": true,
|
183 |
+
"chunk_size_feed_forward": 0,
|
184 |
+
"is_encoder_decoder": false,
|
185 |
+
"is_decoder": false,
|
186 |
+
"cross_attention_hidden_size": null,
|
187 |
+
"add_cross_attention": false,
|
188 |
+
"tie_encoder_decoder": false,
|
189 |
+
"max_length": 20,
|
190 |
+
"min_length": 0,
|
191 |
+
"do_sample": false,
|
192 |
+
"early_stopping": false,
|
193 |
+
"num_beams": 1,
|
194 |
+
"num_beam_groups": 1,
|
195 |
+
"diversity_penalty": 0.0,
|
196 |
+
"temperature": 1.0,
|
197 |
+
"top_k": 50,
|
198 |
+
"top_p": 1.0,
|
199 |
+
"typical_p": 1.0,
|
200 |
+
"repetition_penalty": 1.0,
|
201 |
+
"length_penalty": 1.0,
|
202 |
+
"no_repeat_ngram_size": 0,
|
203 |
+
"encoder_no_repeat_ngram_size": 0,
|
204 |
+
"bad_words_ids": null,
|
205 |
+
"num_return_sequences": 1,
|
206 |
+
"output_scores": false,
|
207 |
+
"return_dict_in_generate": false,
|
208 |
+
"forced_bos_token_id": null,
|
209 |
+
"forced_eos_token_id": null,
|
210 |
+
"remove_invalid_values": false,
|
211 |
+
"exponential_decay_length_penalty": null,
|
212 |
+
"suppress_tokens": null,
|
213 |
+
"begin_suppress_tokens": null,
|
214 |
+
"architectures": null,
|
215 |
+
"finetuning_task": null,
|
216 |
+
"id2label": {
|
217 |
+
"0": "LABEL_0",
|
218 |
+
"1": "LABEL_1"
|
219 |
+
},
|
220 |
+
"label2id": {
|
221 |
+
"LABEL_0": 0,
|
222 |
+
"LABEL_1": 1
|
223 |
+
},
|
224 |
+
"tokenizer_class": null,
|
225 |
+
"prefix": null,
|
226 |
+
"bos_token_id": 2,
|
227 |
+
"pad_token_id": 0,
|
228 |
+
"eos_token_id": 1,
|
229 |
+
"sep_token_id": null,
|
230 |
+
"decoder_start_token_id": null,
|
231 |
+
"task_specific_params": null,
|
232 |
+
"problem_type": null,
|
233 |
+
"_name_or_path": "",
|
234 |
+
"altup_lr_multiplier": 1.0,
|
235 |
+
"model_type": "gemma3n_text",
|
236 |
+
"query_pre_attn_scalar": 256,
|
237 |
+
"vocab_size": 262400,
|
238 |
+
"vocab_size_per_layer_input": 262144,
|
239 |
+
"max_position_embeddings": 32768,
|
240 |
+
"hidden_size": 2048,
|
241 |
+
"intermediate_size": [
|
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 |
+
16384,
|
271 |
+
16384,
|
272 |
+
16384,
|
273 |
+
16384,
|
274 |
+
16384,
|
275 |
+
16384,
|
276 |
+
16384
|
277 |
+
],
|
278 |
+
"num_hidden_layers": 35,
|
279 |
+
"num_attention_heads": 8,
|
280 |
+
"head_dim": 256,
|
281 |
+
"num_key_value_heads": 2,
|
282 |
+
"initializer_range": 0.02,
|
283 |
+
"rms_norm_eps": 1e-06,
|
284 |
+
"use_cache": true,
|
285 |
+
"rope_theta": 1000000.0,
|
286 |
+
"attention_bias": false,
|
287 |
+
"attention_dropout": 0.0,
|
288 |
+
"hidden_activation": "gelu_pytorch_tanh",
|
289 |
+
"sliding_window": 512,
|
290 |
+
"final_logit_softcapping": 30.0,
|
291 |
+
"layer_types": [
|
292 |
+
"sliding_attention",
|
293 |
+
"sliding_attention",
|
294 |
+
"sliding_attention",
|
295 |
+
"sliding_attention",
|
296 |
+
"full_attention",
|
297 |
+
"sliding_attention",
|
298 |
+
"sliding_attention",
|
299 |
+
"sliding_attention",
|
300 |
+
"sliding_attention",
|
301 |
+
"full_attention",
|
302 |
+
"sliding_attention",
|
303 |
+
"sliding_attention",
|
304 |
+
"sliding_attention",
|
305 |
+
"sliding_attention",
|
306 |
+
"full_attention",
|
307 |
+
"sliding_attention",
|
308 |
+
"sliding_attention",
|
309 |
+
"sliding_attention",
|
310 |
+
"sliding_attention",
|
311 |
+
"full_attention",
|
312 |
+
"sliding_attention",
|
313 |
+
"sliding_attention",
|
314 |
+
"sliding_attention",
|
315 |
+
"sliding_attention",
|
316 |
+
"full_attention",
|
317 |
+
"sliding_attention",
|
318 |
+
"sliding_attention",
|
319 |
+
"sliding_attention",
|
320 |
+
"sliding_attention",
|
321 |
+
"full_attention",
|
322 |
+
"sliding_attention",
|
323 |
+
"sliding_attention",
|
324 |
+
"sliding_attention",
|
325 |
+
"sliding_attention",
|
326 |
+
"full_attention"
|
327 |
+
],
|
328 |
+
"rope_local_base_freq": 10000.0,
|
329 |
+
"rope_scaling": null,
|
330 |
+
"hidden_size_per_layer_input": 256,
|
331 |
+
"num_kv_shared_layers": 15,
|
332 |
+
"altup_active_idx": 0,
|
333 |
+
"altup_coef_clip": 120.0,
|
334 |
+
"altup_correct_scale": true,
|
335 |
+
"altup_num_inputs": 4,
|
336 |
+
"laurel_rank": 64,
|
337 |
+
"activation_sparsity_pattern": [
|
338 |
+
0.95,
|
339 |
+
0.95,
|
340 |
+
0.95,
|
341 |
+
0.95,
|
342 |
+
0.95,
|
343 |
+
0.95,
|
344 |
+
0.95,
|
345 |
+
0.95,
|
346 |
+
0.95,
|
347 |
+
0.95,
|
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 |
+
0.0,
|
367 |
+
0.0,
|
368 |
+
0.0,
|
369 |
+
0.0,
|
370 |
+
0.0,
|
371 |
+
0.0,
|
372 |
+
0.0
|
373 |
+
],
|
374 |
+
"output_attentions": false
|
375 |
+
},
|
376 |
+
"tf_legacy_loss": false,
|
377 |
+
"tie_encoder_decoder": false,
|
378 |
+
"tie_word_embeddings": true,
|
379 |
+
"tokenizer_class": null,
|
380 |
+
"top_k": 50,
|
381 |
+
"top_p": 1.0,
|
382 |
+
"torchscript": false,
|
383 |
+
"transformers_version": "4.53.0",
|
384 |
+
"typical_p": 1.0,
|
385 |
+
"use_bfloat16": false,
|
386 |
+
"vision_config": {
|
387 |
+
"return_dict": true,
|
388 |
+
"output_hidden_states": false,
|
389 |
+
"torchscript": false,
|
390 |
+
"torch_dtype": "bfloat16",
|
391 |
+
"use_bfloat16": false,
|
392 |
+
"tf_legacy_loss": false,
|
393 |
+
"pruned_heads": {},
|
394 |
+
"tie_word_embeddings": true,
|
395 |
+
"chunk_size_feed_forward": 0,
|
396 |
+
"is_encoder_decoder": false,
|
397 |
+
"is_decoder": false,
|
398 |
+
"cross_attention_hidden_size": null,
|
399 |
+
"add_cross_attention": false,
|
400 |
+
"tie_encoder_decoder": false,
|
401 |
+
"max_length": 20,
|
402 |
+
"min_length": 0,
|
403 |
+
"do_sample": false,
|
404 |
+
"early_stopping": false,
|
405 |
+
"num_beams": 1,
|
406 |
+
"num_beam_groups": 1,
|
407 |
+
"diversity_penalty": 0.0,
|
408 |
+
"temperature": 1.0,
|
409 |
+
"top_k": 50,
|
410 |
+
"top_p": 1.0,
|
411 |
+
"typical_p": 1.0,
|
412 |
+
"repetition_penalty": 1.0,
|
413 |
+
"length_penalty": 1.0,
|
414 |
+
"no_repeat_ngram_size": 0,
|
415 |
+
"encoder_no_repeat_ngram_size": 0,
|
416 |
+
"bad_words_ids": null,
|
417 |
+
"num_return_sequences": 1,
|
418 |
+
"output_scores": false,
|
419 |
+
"return_dict_in_generate": false,
|
420 |
+
"forced_bos_token_id": null,
|
421 |
+
"forced_eos_token_id": null,
|
422 |
+
"remove_invalid_values": false,
|
423 |
+
"exponential_decay_length_penalty": null,
|
424 |
+
"suppress_tokens": null,
|
425 |
+
"begin_suppress_tokens": null,
|
426 |
+
"architectures": null,
|
427 |
+
"finetuning_task": null,
|
428 |
+
"tokenizer_class": null,
|
429 |
+
"prefix": null,
|
430 |
+
"bos_token_id": null,
|
431 |
+
"pad_token_id": null,
|
432 |
+
"eos_token_id": null,
|
433 |
+
"sep_token_id": null,
|
434 |
+
"decoder_start_token_id": null,
|
435 |
+
"task_specific_params": null,
|
436 |
+
"problem_type": null,
|
437 |
+
"_name_or_path": "",
|
438 |
+
"label_names": [
|
439 |
+
"LABEL_0",
|
440 |
+
"LABEL_1"
|
441 |
+
],
|
442 |
+
"model_type": "gemma3n_vision",
|
443 |
+
"num_classes": 2,
|
444 |
+
"initializer_range": 0.02,
|
445 |
+
"do_pooling": true,
|
446 |
+
"model_args": null,
|
447 |
+
"architecture": "mobilenetv5_300m_enc",
|
448 |
+
"hidden_size": 2048,
|
449 |
+
"vocab_size": 128,
|
450 |
+
"vocab_offset": 262144,
|
451 |
+
"rms_norm_eps": 1e-06,
|
452 |
+
"output_attentions": false
|
453 |
+
},
|
454 |
+
"vision_soft_tokens_per_image": 256
|
455 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 2,
|
3 |
+
"cache_implementation": "hybrid",
|
4 |
+
"do_sample": true,
|
5 |
+
"eos_token_id": [
|
6 |
+
1,
|
7 |
+
106
|
8 |
+
],
|
9 |
+
"pad_token_id": 0,
|
10 |
+
"top_k": 64,
|
11 |
+
"top_p": 0.95,
|
12 |
+
"transformers_version": "4.53.0.dev0"
|
13 |
+
}
|
model-00001-of-00002.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4810eca9f9df29c2cceed05eef8bcf298b9e7f139deaaf768f5a91d5b99703df
|
3 |
+
size 4754792848
|
model-00002-of-00002.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:efdc80a5a22431979cd9daeebd158264282cf705cb1ce5747b433068ce7bc26c
|
3 |
+
size 3862764126
|
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,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": null,
|
3 |
+
"data_format": "channels_first",
|
4 |
+
"default_to_square": false,
|
5 |
+
"device": null,
|
6 |
+
"dither": 0.0,
|
7 |
+
"do_center_crop": null,
|
8 |
+
"do_convert_rgb": null,
|
9 |
+
"do_normalize": false,
|
10 |
+
"do_rescale": true,
|
11 |
+
"do_resize": true,
|
12 |
+
"feature_size": 128,
|
13 |
+
"fft_length": 1024,
|
14 |
+
"fft_overdrive": true,
|
15 |
+
"frame_length": 512,
|
16 |
+
"hop_length": 160,
|
17 |
+
"image_mean": [
|
18 |
+
0.5,
|
19 |
+
0.5,
|
20 |
+
0.5
|
21 |
+
],
|
22 |
+
"image_processor_type": "SiglipImageProcessor",
|
23 |
+
"image_seq_length": 256,
|
24 |
+
"image_std": [
|
25 |
+
0.5,
|
26 |
+
0.5,
|
27 |
+
0.5
|
28 |
+
],
|
29 |
+
"input_data_format": null,
|
30 |
+
"input_scale_factor": 1.0,
|
31 |
+
"max_frequency": 7600.0,
|
32 |
+
"mel_floor": 1e-05,
|
33 |
+
"min_frequency": 125.0,
|
34 |
+
"padding_side": "right",
|
35 |
+
"padding_value": 0.0,
|
36 |
+
"per_bin_mean": null,
|
37 |
+
"per_bin_stddev": null,
|
38 |
+
"preemphasis": 0.97,
|
39 |
+
"preemphasis_htk_flavor": true,
|
40 |
+
"processor_class": "Gemma3nProcessor",
|
41 |
+
"resample": 2,
|
42 |
+
"rescale_factor": 0.00392156862745098,
|
43 |
+
"return_attention_mask": false,
|
44 |
+
"return_tensors": null,
|
45 |
+
"sampling_rate": 16000,
|
46 |
+
"size": {
|
47 |
+
"height": 768,
|
48 |
+
"width": 768
|
49 |
+
}
|
50 |
+
}
|
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
|
|