Mungert commited on
Commit
983a156
·
verified ·
0 Parent(s):

Super-squash history to reclaim storage

Browse files
.gitattributes ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ gemma-3n-E4B-it-f16.gguf filter=lfs diff=lfs merge=lfs -text
37
+ gemma-3n-E4B-it-f16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
38
+ gemma-3n-E4B-it-bf16_q8_0.gguf filter=lfs diff=lfs merge=lfs -text
39
+ gemma-3n-E4B-it-f16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
40
+ gemma-3n-E4B-it-bf16_q6_k.gguf filter=lfs diff=lfs merge=lfs -text
41
+ gemma-3n-E4B-it-f16_q4_k.gguf filter=lfs diff=lfs merge=lfs -text
42
+ gemma-3n-E4B-it-bf16_q4_k.gguf filter=lfs diff=lfs merge=lfs -text
43
+ gemma-3n-E4B-it-q2_k_l.gguf filter=lfs diff=lfs merge=lfs -text
44
+ gemma-3n-E4B-it-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
45
+ gemma-3n-E4B-it-q4_k_l.gguf filter=lfs diff=lfs merge=lfs -text
46
+ gemma-3n-E4B-it-q5_k_l.gguf filter=lfs diff=lfs merge=lfs -text
47
+ gemma-3n-E4B-it-q6_k_l.gguf filter=lfs diff=lfs merge=lfs -text
48
+ gemma-3n-E4B-it-q2_k_m.gguf filter=lfs diff=lfs merge=lfs -text
49
+ gemma-3n-E4B-it-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
50
+ gemma-3n-E4B-it-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
51
+ gemma-3n-E4B-it-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
52
+ gemma-3n-E4B-it-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
53
+ gemma-3n-E4B-it-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
54
+ gemma-3n-E4B-it-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
55
+ gemma-3n-E4B-it-q6_k_m.gguf filter=lfs diff=lfs merge=lfs -text
56
+ gemma-3n-E4B-it-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
57
+ gemma-3n-E4B-it-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ gemma-3n-E4B-it-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
59
+ gemma-3n-E4B-it-q4_0_l.gguf filter=lfs diff=lfs merge=lfs -text
60
+ gemma-3n-E4B-it-q4_1_l.gguf filter=lfs diff=lfs merge=lfs -text
61
+ gemma-3n-E4B-it-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
62
+ gemma-3n-E4B-it-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
63
+ gemma-3n-E4B-it-q5_0_l.gguf filter=lfs diff=lfs merge=lfs -text
64
+ gemma-3n-E4B-it-q5_1_l.gguf filter=lfs diff=lfs merge=lfs -text
65
+ gemma-3n-E4B-it-iq3_xs.gguf filter=lfs diff=lfs merge=lfs -text
66
+ gemma-3n-E4B-it-iq3_s.gguf filter=lfs diff=lfs merge=lfs -text
67
+ gemma-3n-E4B-it-iq3_m.gguf filter=lfs diff=lfs merge=lfs -text
68
+ gemma-3n-E4B-it-iq4_xs.gguf filter=lfs diff=lfs merge=lfs -text
69
+ gemma-3n-E4B-it-iq4_nl.gguf filter=lfs diff=lfs merge=lfs -text
70
+ gemma-3n-E4B-it.imatrix filter=lfs diff=lfs merge=lfs -text
71
+ gemma-3n-E4B-it-bf16.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,613 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: >-
7
+ To access Gemma on Hugging Face, you’re required to review and agree to
8
+ Google’s usage license. To do this, please ensure you’re logged in to Hugging
9
+ Face and click below. Requests are processed immediately.
10
+ extra_gated_button_content: Acknowledge license
11
+ base_model: google/gemma-3n-E4B
12
+ tags:
13
+ - automatic-speech-recognition
14
+ - automatic-speech-translation
15
+ - audio-text-to-text
16
+ - video-text-to-text
17
+ ---
18
+
19
+ # <span style="color: #7FFF7F;">gemma-3n-E4B-it GGUF Models</span>
20
+
21
+
22
+ ## <span style="color: #7F7FFF;">Model Generation Details</span>
23
+
24
+ This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`bf9087f5`](https://github.com/ggerganov/llama.cpp/commit/bf9087f59aab940cf312b85a67067ce33d9e365a).
25
+
26
+
27
+
28
+
29
+
30
+
31
+ ---
32
+
33
+ <a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
34
+ Click here to get info on choosing the right GGUF model format
35
+ </a>
36
+
37
+ ---
38
+
39
+
40
+
41
+ <!--Begin Original Model Card-->
42
+
43
+
44
+ > [!Note]
45
+ > This repository corresponds to the launch version of Gemma 3n E4B IT (Instruct), to be used with Hugging Face `transformers`,
46
+ > supporting text, audio, and vision (image and video) inputs.
47
+ >
48
+ > Gemma 3n models have multiple architecture innovations:
49
+ > * They are available in two sizes based on [effective parameters](https://ai.google.dev/gemma/docs/gemma-3n#parameters). While the raw parameter count of this model is 8B, the architecture design allows the model to be run with a memory footprint comparable to a traditional 4B model by offloading low-utilization matrices from the accelerator.
50
+ > * They use a MatFormer architecture that allows nesting sub-models within the E4B model. We provide one sub-model (an [E2B](https://huggingface.co/google/gemma-3n-E2B-it)), or you can access a spectrum of custom-sized models using the [Mix-and-Match method](https://goo.gle/gemma3n-matformer-lab).
51
+ >
52
+ > Learn more about these techniques in the [technical blog post](https://developers.googleblog.com/en/introducing-gemma-3n-developer-guide)
53
+ > and the [Gemma documentation](https://ai.google.dev/gemma/docs/gemma-3n).
54
+
55
+ # Gemma 3n model card
56
+
57
+ **Model Page**: [Gemma 3n](https://ai.google.dev/gemma/docs/gemma-3n)
58
+
59
+ **Resources and Technical Documentation**:
60
+
61
+ - [Responsible Generative AI Toolkit](https://ai.google.dev/responsible)
62
+ - [Gemma on Kaggle](https://www.kaggle.com/models/google/gemma-3n)
63
+ - [Gemma on HuggingFace](https://huggingface.co/collections/google/gemma-3n-685065323f5984ef315c93f4)
64
+ - [Gemma on Vertex Model Garden](https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/gemma3n)
65
+
66
+ **Terms of Use**: [Terms](https://ai.google.dev/gemma/terms)\
67
+ **Authors**: Google DeepMind
68
+
69
+ ## Model Information
70
+
71
+ Summary description and brief definition of inputs and outputs.
72
+
73
+ ### Description
74
+
75
+ Gemma is a family of lightweight, state-of-the-art open models from Google,
76
+ built from the same research and technology used to create the Gemini models.
77
+ Gemma 3n models are designed for efficient execution on low-resource devices.
78
+ They are capable of multimodal input, handling text, image, video, and audio
79
+ input, and generating text outputs, with open weights for pre-trained and
80
+ instruction-tuned variants. These models were trained with data in over 140
81
+ spoken languages.
82
+
83
+ Gemma 3n models use selective parameter activation technology to reduce resource
84
+ requirements. This technique allows the models to operate at an effective size
85
+ of 2B and 4B parameters, which is lower than the total number of parameters they
86
+ contain. For more information on Gemma 3n's efficient parameter management
87
+ technology, see the
88
+ [Gemma 3n](https://ai.google.dev/gemma/docs/gemma-3n#parameters)
89
+ page.
90
+
91
+ ### Inputs and outputs
92
+
93
+ - **Input:**
94
+ - Text string, such as a question, a prompt, or a document to be
95
+ summarized
96
+ - Images, normalized to 256x256, 512x512, or 768x768 resolution
97
+ and encoded to 256 tokens each
98
+ - Audio data encoded to 6.25 tokens per second from a single channel
99
+ - Total input context of 32K tokens
100
+ - **Output:**
101
+ - Generated text in response to the input, such as an answer to a
102
+ question, analysis of image content, or a summary of a document
103
+ - Total output length up to 32K tokens, subtracting the request
104
+ input tokens
105
+
106
+ ### Usage
107
+
108
+ Below, there are some code snippets on how to get quickly started with running
109
+ the model. First, install the Transformers library. Gemma 3n is supported
110
+ starting from transformers 4.53.0.
111
+
112
+ ```sh
113
+ $ pip install -U transformers
114
+ ```
115
+
116
+ Then, copy the snippet from the section that is relevant for your use case.
117
+
118
+ #### Running with the `pipeline` API
119
+
120
+ You can initialize the model and processor for inference with `pipeline` as
121
+ follows.
122
+
123
+ ```python
124
+ from transformers import pipeline
125
+ import torch
126
+
127
+ pipe = pipeline(
128
+ "image-text-to-text",
129
+ model="google/gemma-3n-e4b-it",
130
+ device="cuda",
131
+ torch_dtype=torch.bfloat16,
132
+ )
133
+ ```
134
+
135
+ With instruction-tuned models, you need to use chat templates to process our
136
+ inputs first. Then, you can pass it to the pipeline.
137
+
138
+ ```python
139
+ messages = [
140
+ {
141
+ "role": "system",
142
+ "content": [{"type": "text", "text": "You are a helpful assistant."}]
143
+ },
144
+ {
145
+ "role": "user",
146
+ "content": [
147
+ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
148
+ {"type": "text", "text": "What animal is on the candy?"}
149
+ ]
150
+ }
151
+ ]
152
+
153
+ output = pipe(text=messages, max_new_tokens=200)
154
+ print(output[0]["generated_text"][-1]["content"])
155
+ # Okay, let's take a look!
156
+ # Based on the image, the animal on the candy is a **turtle**.
157
+ # You can see the shell shape and the head and legs.
158
+ ```
159
+
160
+ #### Running the model on a single GPU
161
+
162
+ ```python
163
+ from transformers import AutoProcessor, Gemma3nForConditionalGeneration
164
+ from PIL import Image
165
+ import requests
166
+ import torch
167
+
168
+ model_id = "google/gemma-3n-e4b-it"
169
+
170
+ model = Gemma3nForConditionalGeneration.from_pretrained(model_id, device_map="auto", torch_dtype=torch.bfloat16,).eval()
171
+
172
+ processor = AutoProcessor.from_pretrained(model_id)
173
+
174
+ messages = [
175
+ {
176
+ "role": "system",
177
+ "content": [{"type": "text", "text": "You are a helpful assistant."}]
178
+ },
179
+ {
180
+ "role": "user",
181
+ "content": [
182
+ {"type": "image", "image": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/bee.jpg"},
183
+ {"type": "text", "text": "Describe this image in detail."}
184
+ ]
185
+ }
186
+ ]
187
+
188
+ inputs = processor.apply_chat_template(
189
+ messages,
190
+ add_generation_prompt=True,
191
+ tokenize=True,
192
+ return_dict=True,
193
+ return_tensors="pt",
194
+ ).to(model.device)
195
+
196
+ input_len = inputs["input_ids"].shape[-1]
197
+
198
+ with torch.inference_mode():
199
+ generation = model.generate(**inputs, max_new_tokens=100, do_sample=False)
200
+ generation = generation[0][input_len:]
201
+
202
+ decoded = processor.decode(generation, skip_special_tokens=True)
203
+ print(decoded)
204
+
205
+ # **Overall Impression:** The image is a close-up shot of a vibrant garden scene,
206
+ # focusing on a cluster of pink cosmos flowers and a busy bumblebee.
207
+ # It has a slightly soft, natural feel, likely captured in daylight.
208
+ ```
209
+
210
+ ### Citation
211
+
212
+ ```
213
+ @article{gemma_3n_2025,
214
+ title={Gemma 3n},
215
+ url={https://ai.google.dev/gemma/docs/gemma-3n},
216
+ publisher={Google DeepMind},
217
+ author={Gemma Team},
218
+ year={2025}
219
+ }
220
+ ```
221
+
222
+ ## Model Data
223
+
224
+ Data used for model training and how the data was processed.
225
+
226
+ ### Training Dataset
227
+
228
+ These models were trained on a dataset that includes a wide variety of sources
229
+ totalling approximately 11 trillion tokens. The knowledge cutoff date for the
230
+ training data was June 2024. Here are the key components:
231
+
232
+ - **Web Documents**: A diverse collection of web text ensures the model
233
+ is exposed to a broad range of linguistic styles, topics, and vocabulary.
234
+ The training dataset includes content in over 140 languages.
235
+ - **Code**: Exposing the model to code helps it to learn the syntax and
236
+ patterns of programming languages, which improves its ability to generate
237
+ code and understand code-related questions.
238
+ - **Mathematics**: Training on mathematical text helps the model learn
239
+ logical reasoning, symbolic representation, and to address mathematical queries.
240
+ - **Images**: A wide range of images enables the model to perform image
241
+ analysis and visual data extraction tasks.
242
+ - Audio: A diverse set of sound samples enables the model to recognize
243
+ speech, transcribe text from recordings, and identify information in audio data.
244
+
245
+ The combination of these diverse data sources is crucial for training a
246
+ powerful multimodal model that can handle a wide variety of different tasks and
247
+ data formats.
248
+
249
+ ### Data Preprocessing
250
+
251
+ Here are the key data cleaning and filtering methods applied to the training
252
+ data:
253
+
254
+ - **CSAM Filtering**: Rigorous CSAM (Child Sexual Abuse Material)
255
+ filtering was applied at multiple stages in the data preparation process to
256
+ ensure the exclusion of harmful and illegal content.
257
+ - **Sensitive Data Filtering**: As part of making Gemma pre-trained models
258
+ safe and reliable, automated techniques were used to filter out certain
259
+ personal information and other sensitive data from training sets.
260
+ - **Additional methods**: Filtering based on content quality and safety in
261
+ line with
262
+ [our policies](https://ai.google/static/documents/ai-responsibility-update-published-february-2025.pdf).
263
+
264
+ ## Implementation Information
265
+
266
+ Details about the model internals.
267
+
268
+ ### Hardware
269
+
270
+ Gemma was trained using [Tensor Processing Unit
271
+ (TPU)](https://cloud.google.com/tpu/docs/intro-to-tpu) hardware (TPUv4p, TPUv5p
272
+ and TPUv5e). Training generative models requires significant computational
273
+ power. TPUs, designed specifically for matrix operations common in machine
274
+ learning, offer several advantages in this domain:
275
+
276
+ - **Performance**: TPUs are specifically designed to handle the massive
277
+ computations involved in training generative models. They can speed up
278
+ training considerably compared to CPUs.
279
+ - **Memory**: TPUs often come with large amounts of high-bandwidth memory,
280
+ allowing for the handling of large models and batch sizes during training.
281
+ This can lead to better model quality.
282
+ - **Scalability**: TPU Pods (large clusters of TPUs) provide a scalable
283
+ solution for handling the growing complexity of large foundation models.
284
+ You can distribute training across multiple TPU devices for faster and more
285
+ efficient processing.
286
+ - **Cost-effectiveness**: In many scenarios, TPUs can provide a more
287
+ cost-effective solution for training large models compared to CPU-based
288
+ infrastructure, especially when considering the time and resources saved
289
+ due to faster training.
290
+
291
+ These advantages are aligned with
292
+ [Google's commitments to operate sustainably](https://sustainability.google/operating-sustainably/).
293
+
294
+ ### Software
295
+
296
+ Training was done using [JAX](https://github.com/jax-ml/jax) and
297
+ [ML Pathways](https://blog.google/technology/ai/introducing-pathways-next-generation-ai-architecture/).
298
+ JAX allows researchers to take advantage of the latest generation of hardware,
299
+ including TPUs, for faster and more efficient training of large models. ML
300
+ Pathways is Google's latest effort to build artificially intelligent systems
301
+ capable of generalizing across multiple tasks. This is specially suitable for
302
+ foundation models, including large language models like these ones.
303
+
304
+ Together, JAX and ML Pathways are used as described in the
305
+ [paper about the Gemini family of models](https://goo.gle/gemma2report):
306
+ *"the 'single controller' programming model of Jax and Pathways allows a single
307
+ Python process to orchestrate the entire training run, dramatically simplifying
308
+ the development workflow."*
309
+
310
+ ## Evaluation
311
+
312
+ Model evaluation metrics and results.
313
+
314
+ ### Benchmark Results
315
+
316
+ These models were evaluated at full precision (float32) against a large
317
+ collection of different datasets and metrics to cover different aspects of
318
+ content generation. Evaluation results marked with **IT** are for
319
+ instruction-tuned models. Evaluation results marked with **PT** are for
320
+ pre-trained models.
321
+
322
+ #### Reasoning and factuality
323
+
324
+ | Benchmark | Metric | n-shot | E2B PT | E4B PT |
325
+ | ------------------------------ |----------------|----------|:--------:|:--------:|
326
+ | [HellaSwag][hellaswag] | Accuracy | 10-shot | 72.2 | 78.6 |
327
+ | [BoolQ][boolq] | Accuracy | 0-shot | 76.4 | 81.6 |
328
+ | [PIQA][piqa] | Accuracy | 0-shot | 78.9 | 81.0 |
329
+ | [SocialIQA][socialiqa] | Accuracy | 0-shot | 48.8 | 50.0 |
330
+ | [TriviaQA][triviaqa] | Accuracy | 5-shot | 60.8 | 70.2 |
331
+ | [Natural Questions][naturalq] | Accuracy | 5-shot | 15.5 | 20.9 |
332
+ | [ARC-c][arc] | Accuracy | 25-shot | 51.7 | 61.6 |
333
+ | [ARC-e][arc] | Accuracy | 0-shot | 75.8 | 81.6 |
334
+ | [WinoGrande][winogrande] | Accuracy | 5-shot | 66.8 | 71.7 |
335
+ | [BIG-Bench Hard][bbh] | Accuracy | few-shot | 44.3 | 52.9 |
336
+ | [DROP][drop] | Token F1 score | 1-shot | 53.9 | 60.8 |
337
+
338
+ [hellaswag]: https://arxiv.org/abs/1905.07830
339
+ [boolq]: https://arxiv.org/abs/1905.10044
340
+ [piqa]: https://arxiv.org/abs/1911.11641
341
+ [socialiqa]: https://arxiv.org/abs/1904.09728
342
+ [triviaqa]: https://arxiv.org/abs/1705.03551
343
+ [naturalq]: https://github.com/google-research-datasets/natural-questions
344
+ [arc]: https://arxiv.org/abs/1911.01547
345
+ [winogrande]: https://arxiv.org/abs/1907.10641
346
+ [bbh]: https://paperswithcode.com/dataset/bbh
347
+ [drop]: https://arxiv.org/abs/1903.00161
348
+
349
+ #### Multilingual
350
+
351
+ | Benchmark | Metric | n-shot | E2B IT | E4B IT |
352
+ | ------------------------------------|-------------------------|----------|:--------:|:--------:|
353
+ | [MGSM][mgsm] | Accuracy | 0-shot | 53.1 | 60.7 |
354
+ | [WMT24++][wmt24pp] (ChrF) | Character-level F-score | 0-shot | 42.7 | 50.1 |
355
+ | [Include][include] | Accuracy | 0-shot | 38.6 | 57.2 |
356
+ | [MMLU][mmlu] (ProX) | Accuracy | 0-shot | 8.1 | 19.9 |
357
+ | [OpenAI MMLU][openai-mmlu] | Accuracy | 0-shot | 22.3 | 35.6 |
358
+ | [Global-MMLU][global-mmlu] | Accuracy | 0-shot | 55.1 | 60.3 |
359
+ | [ECLeKTic][eclektic] | ECLeKTic score | 0-shot | 2.5 | 1.9 |
360
+
361
+ [mgsm]: https://arxiv.org/abs/2210.03057
362
+ [wmt24pp]: https://arxiv.org/abs/2502.12404v1
363
+ [include]:https://arxiv.org/abs/2411.19799
364
+ [mmlu]: https://arxiv.org/abs/2009.03300
365
+ [openai-mmlu]: https://huggingface.co/datasets/openai/MMMLU
366
+ [global-mmlu]: https://huggingface.co/datasets/CohereLabs/Global-MMLU
367
+ [eclektic]: https://arxiv.org/abs/2502.21228
368
+
369
+ #### STEM and code
370
+
371
+ | Benchmark | Metric | n-shot | E2B IT | E4B IT |
372
+ | ------------------------------------|--------------------------|----------|:--------:|:--------:|
373
+ | [GPQA][gpqa] Diamond | RelaxedAccuracy/accuracy | 0-shot | 24.8 | 23.7 |
374
+ | [LiveCodeBench][lcb] v5 | pass@1 | 0-shot | 18.6 | 25.7 |
375
+ | Codegolf v2.2 | pass@1 | 0-shot | 11.0 | 16.8 |
376
+ | [AIME 2025][aime-2025] | Accuracy | 0-shot | 6.7 | 11.6 |
377
+
378
+ [gpqa]: https://arxiv.org/abs/2311.12022
379
+ [lcb]: https://arxiv.org/abs/2403.07974
380
+ [aime-2025]: https://www.vals.ai/benchmarks/aime-2025-05-09
381
+
382
+ #### Additional benchmarks
383
+
384
+ | Benchmark | Metric | n-shot | E2B IT | E4B IT |
385
+ | ------------------------------------ |------------|----------|:--------:|:--------:|
386
+ | [MMLU][mmlu] | Accuracy | 0-shot | 60.1 | 64.9 |
387
+ | [MBPP][mbpp] | pass@1 | 3-shot | 56.6 | 63.6 |
388
+ | [HumanEval][humaneval] | pass@1 | 0-shot | 66.5 | 75.0 |
389
+ | [LiveCodeBench][lcb] | pass@1 | 0-shot | 13.2 | 13.2 |
390
+ | HiddenMath | Accuracy | 0-shot | 27.7 | 37.7 |
391
+ | [Global-MMLU-Lite][global-mmlu-lite] | Accuracy | 0-shot | 59.0 | 64.5 |
392
+ | [MMLU][mmlu] (Pro) | Accuracy | 0-shot | 40.5 | 50.6 |
393
+
394
+ [gpqa]: https://arxiv.org/abs/2311.12022
395
+ [mbpp]: https://arxiv.org/abs/2108.07732
396
+ [humaneval]: https://arxiv.org/abs/2107.03374
397
+ [lcb]: https://arxiv.org/abs/2403.07974
398
+ [global-mmlu-lite]: https://huggingface.co/datasets/CohereForAI/Global-MMLU-Lite
399
+
400
+ ## Ethics and Safety
401
+
402
+ Ethics and safety evaluation approach and results.
403
+
404
+ ### Evaluation Approach
405
+
406
+ Our evaluation methods include structured evaluations and internal red-teaming
407
+ testing of relevant content policies. Red-teaming was conducted by a number of
408
+ different teams, each with different goals and human evaluation metrics. These
409
+ models were evaluated against a number of different categories relevant to
410
+ ethics and safety, including:
411
+
412
+ - **Child Safety**: Evaluation of text-to-text and image to text prompts
413
+ covering child safety policies, including child sexual abuse and
414
+ exploitation.
415
+ - **Content Safety:** Evaluation of text-to-text and image to text prompts
416
+ covering safety policies including, harassment, violence and gore, and hate
417
+ speech.
418
+ - **Representational Harms**: Evaluation of text-to-text and image to text
419
+ prompts covering safety policies including bias, stereotyping, and harmful
420
+ associations or inaccuracies.
421
+
422
+ In addition to development level evaluations, we conduct "assurance
423
+ evaluations" which are our 'arms-length' internal evaluations for responsibility
424
+ governance decision making. They are conducted separately from the model
425
+ development team, to inform decision making about release. High level findings
426
+ are fed back to the model team, but prompt sets are held-out to prevent
427
+ overfitting and preserve the results' ability to inform decision making. Notable
428
+ assurance evaluation results are reported to our Responsibility & Safety Council
429
+ as part of release review.
430
+
431
+ ### Evaluation Results
432
+
433
+ For all areas of safety testing, we saw safe levels of performance across the
434
+ categories of child safety, content safety, and representational harms relative
435
+ to previous Gemma models. All testing was conducted without safety filters to
436
+ evaluate the model capabilities and behaviors. For text-to-text, image-to-text,
437
+ and audio-to-text, and across all model sizes, the model produced minimal policy
438
+ violations, and showed significant improvements over previous Gemma models'
439
+ performance with respect to high severity violations. A limitation of our
440
+ evaluations was they included primarily English language prompts.
441
+
442
+ ## Usage and Limitations
443
+
444
+ These models have certain limitations that users should be aware of.
445
+
446
+ ### Intended Usage
447
+
448
+ Open generative models have a wide range of applications across various
449
+ industries and domains. The following list of potential uses is not
450
+ comprehensive. The purpose of this list is to provide contextual information
451
+ about the possible use-cases that the model creators considered as part of model
452
+ training and development.
453
+
454
+ - Content Creation and Communication
455
+ - **Text Generation**: Generate creative text formats such as
456
+ poems, scripts, code, marketing copy, and email drafts.
457
+ - **Chatbots and Conversational AI**: Power conversational
458
+ interfaces for customer service, virtual assistants, or interactive
459
+ applications.
460
+ - **Text Summarization**: Generate concise summaries of a text
461
+ corpus, research papers, or reports.
462
+ - **Image Data Extraction**: Extract, interpret, and summarize
463
+ visual data for text communications.
464
+ - **Audio Data Extraction**: Transcribe spoken language, translate speech
465
+ to text in other languages, and analyze sound-based data.
466
+ - Research and Education
467
+ - **Natural Language Processing (NLP) and generative model
468
+ Research**: These models can serve as a foundation for researchers to
469
+ experiment with generative models and NLP techniques, develop
470
+ algorithms, and contribute to the advancement of the field.
471
+ - **Language Learning Tools**: Support interactive language
472
+ learning experiences, aiding in grammar correction or providing writing
473
+ practice.
474
+ - **Knowledge Exploration**: Assist researchers in exploring large
475
+ bodies of data by generating summaries or answering questions about
476
+ specific topics.
477
+
478
+ ### Limitations
479
+
480
+ - Training Data
481
+ - The quality and diversity of the training data significantly
482
+ influence the model's capabilities. Biases or gaps in the training data
483
+ can lead to limitations in the model's responses.
484
+ - The scope of the training dataset determines the subject areas
485
+ the model can handle effectively.
486
+ - Context and Task Complexity
487
+ - Models are better at tasks that can be framed with clear
488
+ prompts and instructions. Open-ended or highly complex tasks might be
489
+ challenging.
490
+ - A model's performance can be influenced by the amount of context
491
+ provided (longer context generally leads to better outputs, up to a
492
+ certain point).
493
+ - Language Ambiguity and Nuance
494
+ - Natural language is inherently complex. Models might struggle
495
+ to grasp subtle nuances, sarcasm, or figurative language.
496
+ - Factual Accuracy
497
+ - Models generate responses based on information they learned
498
+ from their training datasets, but they are not knowledge bases. They
499
+ may generate incorrect or outdated factual statements.
500
+ - Common Sense
501
+ - Models rely on statistical patterns in language. They might
502
+ lack the ability to apply common sense reasoning in certain situations.
503
+
504
+ ### Ethical Considerations and Risks
505
+
506
+ The development of generative models raises several ethical concerns. In
507
+ creating an open model, we have carefully considered the following:
508
+
509
+ - Bias and Fairness
510
+ - Generative models trained on large-scale, real-world text and image data
511
+ can reflect socio-cultural biases embedded in the training material.
512
+ These models underwent careful scrutiny, input data pre-processing
513
+ described and posterior evaluations reported in this card.
514
+ - Misinformation and Misuse
515
+ - Generative models can be misused to generate text that is
516
+ false, misleading, or harmful.
517
+ - Guidelines are provided for responsible use with the model, see the
518
+ [Responsible Generative AI Toolkit](https://ai.google.dev/responsible).
519
+ - Transparency and Accountability:
520
+ - This model card summarizes details on the models' architecture,
521
+ capabilities, limitations, and evaluation processes.
522
+ - A responsibly developed open model offers the opportunity to
523
+ share innovation by making generative model technology accessible to
524
+ developers and researchers across the AI ecosystem.
525
+
526
+ Risks identified and mitigations:
527
+
528
+ - **Perpetuation of biases**: It's encouraged to perform continuous monitoring
529
+ (using evaluation metrics, human review) and the exploration of de-biasing
530
+ techniques during model training, fine-tuning, and other use cases.
531
+ - **Generation of harmful content**: Mechanisms and guidelines for content
532
+ safety are essential. Developers are encouraged to exercise caution and
533
+ implement appropriate content safety safeguards based on their specific
534
+ product policies and application use cases.
535
+ - **Misuse for malicious purposes**: Technical limitations and developer
536
+ and end-user education can help mitigate against malicious applications of
537
+ generative models. Educational resources and reporting mechanisms for users
538
+ to flag misuse are provided. Prohibited uses of Gemma models are outlined
539
+ in the
540
+ [Gemma Prohibited Use Policy](https://ai.google.dev/gemma/prohibited_use_policy).
541
+ - **Privacy violations**: Models were trained on data filtered for removal of
542
+ certain personal information and other sensitive data. Developers are
543
+ encouraged to adhere to privacy regulations with privacy-preserving
544
+ techniques.
545
+
546
+ ### Benefits
547
+
548
+ At the time of release, this family of models provides high-performance open
549
+ generative model implementations designed from the ground up for responsible AI
550
+ development compared to similarly sized models.
551
+
552
+ Using the benchmark evaluation metrics described in this document, these models
553
+ have shown to provide superior performance to other, comparably-sized open model
554
+ alternatives.
555
+
556
+ <!--End Original Model Card-->
557
+
558
+ ---
559
+
560
+ # <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
561
+
562
+ Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
563
+
564
+ 👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
565
+
566
+
567
+ The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : [Source Code Quantum Network Monitor](https://github.com/Mungert69). You will also find the code I use to quantize the models if you want to do it yourself [GGUFModelBuilder](https://github.com/Mungert69/GGUFModelBuilder)
568
+
569
+ 💬 **How to test**:
570
+ Choose an **AI assistant type**:
571
+ - `TurboLLM` (GPT-4.1-mini)
572
+ - `HugLLM` (Hugginface Open-source models)
573
+ - `TestLLM` (Experimental CPU-only)
574
+
575
+ ### **What I’m Testing**
576
+ I’m pushing the limits of **small open-source models for AI network monitoring**, specifically:
577
+ - **Function calling** against live network services
578
+ - **How small can a model go** while still handling:
579
+ - Automated **Nmap security scans**
580
+ - **Quantum-readiness checks**
581
+ - **Network Monitoring tasks**
582
+
583
+ 🟡 **TestLLM** – Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
584
+ - ✅ **Zero-configuration setup**
585
+ - ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
586
+ - 🔧 **Help wanted!** If you’re into **edge-device AI**, let’s collaborate!
587
+
588
+ ### **Other Assistants**
589
+ 🟢 **TurboLLM** – Uses **gpt-4.1-mini** :
590
+ - **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
591
+ - **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
592
+ - **Real-time network diagnostics and monitoring**
593
+ - **Security Audits**
594
+ - **Penetration testing** (Nmap/Metasploit)
595
+
596
+ 🔵 **HugLLM** – Latest Open-source models:
597
+ - 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
598
+
599
+ ### 💡 **Example commands you could test**:
600
+ 1. `"Give me info on my websites SSL certificate"`
601
+ 2. `"Check if my server is using quantum safe encyption for communication"`
602
+ 3. `"Run a comprehensive security audit on my server"`
603
+ 4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a [Quantum Network Monitor Agent](https://readyforquantum.com/Download/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) to run the .net code on. This is a very flexible and powerful feature. Use with caution!
604
+
605
+ ### Final Word
606
+
607
+ I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAI—all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is [open source](https://github.com/Mungert69). Feel free to use whatever you find helpful.
608
+
609
+ If you appreciate the work, please consider [buying me a coffee](https://www.buymeacoffee.com/mahadeva) ☕. Your support helps cover service costs and allows me to raise token limits for everyone.
610
+
611
+ I'm also open to job opportunities or sponsorship.
612
+
613
+ Thank you! 😊
gemma-3n-E4B-it-bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d63d57c7124d4e02e3a7e054d2bd5a6b02a4e7636bc25b4367104ee5029e3d9f
3
+ size 13740103520
gemma-3n-E4B-it-bf16_q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dcdc367addef6b076391aa5e40ff477b4dad6a52526cc922662257803bdf3fc
3
+ size 11331655520
gemma-3n-E4B-it-f16_q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7a329f2d66f724fd2335e0383972b7582a0085d66f85a40be2e891342d20340
3
+ size 11331655520
gemma-3n-E4B-it-iq3_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b8bed9c6c5444b82a9cb471d725c3d09693da442c3461376e6805893b1ae034
3
+ size 3938195584
gemma-3n-E4B-it-iq3_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:febdb0b17f1479d25ed08e9d32ab2a4d1236297b32dd1f5fc21c00c914b25279
3
+ size 3922106496
gemma-3n-E4B-it-iq3_xs.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a81a1b6eefc49d125fc01a5635e14a787b01861e25eff32d57d8424f2ea28d8d
3
+ size 3727906944
gemma-3n-E4B-it-iq4_nl.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4c9044d9f3e7f342cce68d4c6a314ee0bca7530a2b364f61bb225c6ac323be9
3
+ size 4089993344
gemma-3n-E4B-it-iq4_xs.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f5ab6c364987d70a466024b58f9767b4e815d9d8cbd9d5ba45eac2f55307aba
3
+ size 3895023744
gemma-3n-E4B-it-q2_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d3fa7852793ebe57efcd7619562105d8a9478aec044dac291739ae85bf05619
3
+ size 3913373824
gemma-3n-E4B-it-q3_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a506702a3906c93dfe7e6d1409fe3c5dadad5512281c7a06c3a3086870027d8
3
+ size 4358412416
gemma-3n-E4B-it-q3_k_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:073faeaf19fddff5853ff9e24a47e95459e848706fcab1b95e23485e8854bab0
3
+ size 3962968192
gemma-3n-E4B-it-q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6848ef0d8442c9868f5b8bd01569ae28a23b56208b0eec7ae457d5e66276af9
3
+ size 3946993792
gemma-3n-E4B-it-q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35423fb40a7e28aca1b399d498b319a88e7851b35ec94139753c4b96fca6c1da
3
+ size 4372781184
gemma-3n-E4B-it-q4_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:224119e36b7b66e0b777ab41661ddd0c110680a18de33cddc28a94371846e6df
3
+ size 4846811264
gemma-3n-E4B-it-q4_k_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97ef9fb61789b19ab01056dd506a49b3638ad3bcc05fd09da735d7f6b265e8bd
3
+ size 4729755776
gemma-3n-E4B-it-q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84f98c0f891df525f2ef1c6b84f2a8ff15976dc8a048e6652fa0fdab920681b7
3
+ size 4798568576
gemma-3n-E4B-it-q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fc75fac5ff56d2dacfe77cfde934a9851db40f7800e7b90edf399532ec686b2
3
+ size 5224355968
gemma-3n-E4B-it-q5_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e173f9df06a855b458c2a27e7b435919644f66ceab1cd5b28b39b68fa534b296
3
+ size 5264406656
gemma-3n-E4B-it-q5_k_s.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8df284a4354f39b0943f62fbf2852a9487002d649a8104e761e19bf35eefaac7
3
+ size 5223045248
gemma-3n-E4B-it-q6_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dee305393d4419c66fa05e106fc629d0dc3a517cd1ff58b1be65f8454cd6d3d8
3
+ size 5703366784
gemma-3n-E4B-it-q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50f5a1a8da1a94488a8b55b394bf463dadc619318cb8412e9c424cbce3592e15
3
+ size 7353292640
gemma-3n-E4B-it.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14b550ee66249202b4f3e745da3a18775e0d6eaaa43f3b4f01e743d65442b3a9
3
+ size 4690533