0utsideness commited on
Commit
4abea37
·
verified ·
1 Parent(s): ff65d8a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +561 -199
README.md CHANGED
@@ -1,199 +1,561 @@
1
- ---
2
- library_name: transformers
3
- tags: []
4
- ---
5
-
6
- # Model Card for Model ID
7
-
8
- <!-- Provide a quick summary of what the model is/does. -->
9
-
10
-
11
-
12
- ## Model Details
13
-
14
- ### Model Description
15
-
16
- <!-- Provide a longer summary of what this model is. -->
17
-
18
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
-
20
- - **Developed by:** [More Information Needed]
21
- - **Funded by [optional]:** [More Information Needed]
22
- - **Shared by [optional]:** [More Information Needed]
23
- - **Model type:** [More Information Needed]
24
- - **Language(s) (NLP):** [More Information Needed]
25
- - **License:** [More Information Needed]
26
- - **Finetuned from model [optional]:** [More Information Needed]
27
-
28
- ### Model Sources [optional]
29
-
30
- <!-- Provide the basic links for the model. -->
31
-
32
- - **Repository:** [More Information Needed]
33
- - **Paper [optional]:** [More Information Needed]
34
- - **Demo [optional]:** [More Information Needed]
35
-
36
- ## Uses
37
-
38
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
-
40
- ### Direct Use
41
-
42
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
-
44
- [More Information Needed]
45
-
46
- ### Downstream Use [optional]
47
-
48
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
-
50
- [More Information Needed]
51
-
52
- ### Out-of-Scope Use
53
-
54
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
-
56
- [More Information Needed]
57
-
58
- ## Bias, Risks, and Limitations
59
-
60
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
-
62
- [More Information Needed]
63
-
64
- ### Recommendations
65
-
66
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
-
68
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
-
70
- ## How to Get Started with the Model
71
-
72
- Use the code below to get started with the model.
73
-
74
- [More Information Needed]
75
-
76
- ## Training Details
77
-
78
- ### Training Data
79
-
80
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
-
82
- [More Information Needed]
83
-
84
- ### Training Procedure
85
-
86
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
-
88
- #### Preprocessing [optional]
89
-
90
- [More Information Needed]
91
-
92
-
93
- #### Training Hyperparameters
94
-
95
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
-
97
- #### Speeds, Sizes, Times [optional]
98
-
99
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
-
101
- [More Information Needed]
102
-
103
- ## Evaluation
104
-
105
- <!-- This section describes the evaluation protocols and provides the results. -->
106
-
107
- ### Testing Data, Factors & Metrics
108
-
109
- #### Testing Data
110
-
111
- <!-- This should link to a Dataset Card if possible. -->
112
-
113
- [More Information Needed]
114
-
115
- #### Factors
116
-
117
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
-
119
- [More Information Needed]
120
-
121
- #### Metrics
122
-
123
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
-
125
- [More Information Needed]
126
-
127
- ### Results
128
-
129
- [More Information Needed]
130
-
131
- #### Summary
132
-
133
-
134
-
135
- ## Model Examination [optional]
136
-
137
- <!-- Relevant interpretability work for the model goes here -->
138
-
139
- [More Information Needed]
140
-
141
- ## Environmental Impact
142
-
143
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
-
145
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
-
147
- - **Hardware Type:** [More Information Needed]
148
- - **Hours used:** [More Information Needed]
149
- - **Cloud Provider:** [More Information Needed]
150
- - **Compute Region:** [More Information Needed]
151
- - **Carbon Emitted:** [More Information Needed]
152
-
153
- ## Technical Specifications [optional]
154
-
155
- ### Model Architecture and Objective
156
-
157
- [More Information Needed]
158
-
159
- ### Compute Infrastructure
160
-
161
- [More Information Needed]
162
-
163
- #### Hardware
164
-
165
- [More Information Needed]
166
-
167
- #### Software
168
-
169
- [More Information Needed]
170
-
171
- ## Citation [optional]
172
-
173
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
-
175
- **BibTeX:**
176
-
177
- [More Information Needed]
178
-
179
- **APA:**
180
-
181
- [More Information Needed]
182
-
183
- ## Glossary [optional]
184
-
185
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
-
187
- [More Information Needed]
188
-
189
- ## More Information [optional]
190
-
191
- [More Information Needed]
192
-
193
- ## Model Card Authors [optional]
194
-
195
- [More Information Needed]
196
-
197
- ## Model Card Contact
198
-
199
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-3-270m
3
+ license: gemma
4
+ tags:
5
+ - gemma3
6
+ - gemma
7
+ - google
8
+ - heretic
9
+ - uncensored
10
+ - decensored
11
+ - abliterated
12
+ pipeline_tag: text-generation
13
+ library_name: transformers
14
+ extra_gated_heading: Access Gemma on Hugging Face
15
+ extra_gated_prompt: To access Gemma on Hugging Face, you’re required to review and
16
+ agree to Google’s usage license. To do this, please ensure you’re logged in to Hugging
17
+ Face and click below. Requests are processed immediately.
18
+ extra_gated_button_content: Acknowledge license
19
+ ---
20
+ # This is a decensored version of [google/gemma-3-270m-it](https://huggingface.co/google/gemma-3-270m-it), made using [Heretic](https://github.com/p-e-w/heretic) v1.1.0
21
+
22
+ ## Abliteration parameters
23
+
24
+ | Parameter | Value |
25
+ | :-------- | :---: |
26
+ | **direction_index** | 13.06 |
27
+ | **attn.o_proj.max_weight** | 1.30 |
28
+ | **attn.o_proj.max_weight_position** | 16.75 |
29
+ | **attn.o_proj.min_weight** | 0.92 |
30
+ | **attn.o_proj.min_weight_distance** | 6.40 |
31
+ | **mlp.down_proj.max_weight** | 1.24 |
32
+ | **mlp.down_proj.max_weight_position** | 15.79 |
33
+ | **mlp.down_proj.min_weight** | 1.15 |
34
+ | **mlp.down_proj.min_weight_distance** | 2.78 |
35
+
36
+ ## Performance
37
+
38
+ | Metric | This model | Original model ([google/gemma-3-270m-it](https://huggingface.co/google/gemma-3-270m-it)) |
39
+ | :----- | :--------: | :---------------------------: |
40
+ | **hello - test1** | hai ;3 | hai ;3 |
41
+ | **hello - test2** | hai ;3 | hai ;3 |
42
+ | **RefusalRate - small** | 87/100 | 74/100 |
43
+ | **RefusalRate - tiny** | 46/50 | 41/50 |
44
+ | **KLDivergence** | 0.6884 | 0.0000 |
45
+
46
+ -----
47
+
48
+
49
+ # Gemma 3 model card
50
+
51
+ **Model Page**: [Gemma](https://ai.google.dev/gemma/docs/core)
52
+
53
+ **Resources and Technical Documentation**:
54
+
55
+ * [Gemma 3 Technical Report][g3-tech-report]
56
+ * [Responsible Generative AI Toolkit][rai-toolkit]
57
+ * [Gemma on Kaggle][kaggle-gemma]
58
+ * [Gemma on Vertex Model Garden][vertex-mg-gemma3]
59
+
60
+ **Terms of Use**: [Terms][terms]
61
+
62
+ **Authors**: Google DeepMind
63
+
64
+ ## Model Information
65
+
66
+ Summary description and brief definition of inputs and outputs.
67
+
68
+ ### Description
69
+
70
+ Gemma is a family of lightweight, state-of-the-art open models from Google,
71
+ built from the same research and technology used to create the Gemini models.
72
+ Gemma 3 models are multimodal, handling text and image input and generating text
73
+ output, with open weights for both pre-trained variants and instruction-tuned
74
+ variants. Gemma 3 has a large, 128K context window, multilingual support in over
75
+ 140 languages, and is available in more sizes than previous versions. Gemma 3
76
+ models are well-suited for a variety of text generation and image understanding
77
+ tasks, including question answering, summarization, and reasoning. Their
78
+ relatively small size makes it possible to deploy them in environments with
79
+ limited resources such as laptops, desktops or your own cloud infrastructure,
80
+ democratizing access to state of the art AI models and helping foster innovation
81
+ for everyone.
82
+
83
+ ### Inputs and outputs
84
+
85
+ - **Input:**
86
+ - Text string, such as a question, a prompt, or a document to be summarized
87
+ - Images, normalized to 896 x 896 resolution and encoded to 256 tokens
88
+ each, for the 4B, 12B, and 27B sizes.
89
+ - Total input context of 128K tokens for the 4B, 12B, and 27B sizes, and
90
+ 32K tokens for the 1B and 270M sizes.
91
+
92
+ - **Output:**
93
+ - Generated text in response to the input, such as an answer to a
94
+ question, analysis of image content, or a summary of a document
95
+ - Total output context up to 128K tokens for the 4B, 12B, and 27B sizes,
96
+ and 32K tokens for the 1B and 270M sizes per request, subtracting the
97
+ request input tokens
98
+
99
+ ### Citation
100
+
101
+ ```none
102
+ @article{gemma_2025,
103
+ title={Gemma 3},
104
+ url={https://arxiv.org/abs/2503.19786},
105
+ publisher={Google DeepMind},
106
+ author={Gemma Team},
107
+ year={2025}
108
+ }
109
+ ```
110
+
111
+ ## Model Data
112
+
113
+ Data used for model training and how the data was processed.
114
+
115
+ ### Training Dataset
116
+
117
+ These models were trained on a dataset of text data that includes a wide variety
118
+ of sources. The 27B model was trained with 14 trillion tokens, the 12B model was
119
+ trained with 12 trillion tokens, 4B model was trained with 4 trillion tokens,
120
+ the 1B with 2 trillion tokens, and the 270M with 6 trillion tokens. The
121
+ knowledge cutoff date for the training data was August 2024. Here are the key
122
+ components:
123
+
124
+ - Web Documents: A diverse collection of web text ensures the model is
125
+ exposed to a broad range of linguistic styles, topics, and vocabulary. The
126
+ training dataset includes content in over 140 languages.
127
+ - Code: Exposing the model to code helps it to learn the syntax and
128
+ patterns of programming languages, which improves its ability to generate
129
+ code and understand code-related questions.
130
+ - Mathematics: Training on mathematical text helps the model learn logical
131
+ reasoning, symbolic representation, and to address mathematical queries.
132
+ - Images: A wide range of images enables the model to perform image
133
+ analysis and visual data extraction tasks.
134
+
135
+ The combination of these diverse data sources is crucial for training a powerful
136
+ multimodal model that can handle a wide variety of different tasks and data
137
+ formats.
138
+
139
+ ### Data Preprocessing
140
+
141
+ Here are the key data cleaning and filtering methods applied to the training
142
+ data:
143
+
144
+ - CSAM Filtering: Rigorous CSAM (Child Sexual Abuse Material) filtering
145
+ was applied at multiple stages in the data preparation process to ensure
146
+ the exclusion of harmful and illegal content.
147
+ - Sensitive Data Filtering: As part of making Gemma pre-trained models
148
+ safe and reliable, automated techniques were used to filter out certain
149
+ personal information and other sensitive data from training sets.
150
+ - Additional methods: Filtering based on content quality and safety in
151
+ line with [our policies][safety-policies].
152
+
153
+ ## Implementation Information
154
+
155
+ Details about the model internals.
156
+
157
+ ### Hardware
158
+
159
+ Gemma was trained using [Tensor Processing Unit (TPU)][tpu] hardware (TPUv4p,
160
+ TPUv5p and TPUv5e). Training vision-language models (VLMS) requires significant
161
+ computational power. TPUs, designed specifically for matrix operations common in
162
+ machine learning, offer several advantages in this domain:
163
+
164
+ - Performance: TPUs are specifically designed to handle the massive
165
+ computations involved in training VLMs. They can speed up training
166
+ considerably compared to CPUs.
167
+ - Memory: TPUs often come with large amounts of high-bandwidth memory,
168
+ allowing for the handling of large models and batch sizes during training.
169
+ This can lead to better model quality.
170
+ - Scalability: TPU Pods (large clusters of TPUs) provide a scalable
171
+ solution for handling the growing complexity of large foundation models.
172
+ You can distribute training across multiple TPU devices for faster and more
173
+ efficient processing.
174
+ - Cost-effectiveness: In many scenarios, TPUs can provide a more
175
+ cost-effective solution for training large models compared to CPU-based
176
+ infrastructure, especially when considering the time and resources saved
177
+ due to faster training.
178
+ - These advantages are aligned with
179
+ [Google's commitments to operate sustainably][sustainability].
180
+
181
+ ### Software
182
+
183
+ Training was done using [JAX][jax] and [ML Pathways][ml-pathways].
184
+
185
+ JAX allows researchers to take advantage of the latest generation of hardware,
186
+ including TPUs, for faster and more efficient training of large models. ML
187
+ Pathways is Google's latest effort to build artificially intelligent systems
188
+ capable of generalizing across multiple tasks. This is specially suitable for
189
+ foundation models, including large language models like these ones.
190
+
191
+ Together, JAX and ML Pathways are used as described in the
192
+ [paper about the Gemini family of models][gemini-2-paper]; *"the 'single
193
+ controller' programming model of Jax and Pathways allows a single Python
194
+ process to orchestrate the entire training run, dramatically simplifying the
195
+ development workflow."*
196
+
197
+ ## Evaluation
198
+
199
+ Model evaluation metrics and results.
200
+
201
+ ### Benchmark Results
202
+
203
+ These models were evaluated against a large collection of different datasets and
204
+ metrics to cover different aspects of text generation. Evaluation results marked
205
+ with **IT** are for instruction-tuned models. Evaluation results marked with
206
+ **PT** are for pre-trained models.
207
+
208
+ #### Gemma 3 270M
209
+
210
+ | **Benchmark** | **n-shot** | **Gemma 3 PT 270M** |
211
+ | :------------------------ | :-----------: | ------------------: |
212
+ | [HellaSwag][hellaswag] | 10-shot | 40.9 |
213
+ | [BoolQ][boolq] | 0-shot | 61.4 |
214
+ | [PIQA][piqa] | 0-shot | 67.7 |
215
+ | [TriviaQA][triviaqa] | 5-shot | 15.4 |
216
+ | [ARC-c][arc] | 25-shot | 29.0 |
217
+ | [ARC-e][arc] | 0-shot | 57.7 |
218
+ | [WinoGrande][winogrande] | 5-shot | 52.0 |
219
+
220
+ [hellaswag]: https://arxiv.org/abs/1905.07830
221
+ [boolq]: https://arxiv.org/abs/1905.10044
222
+ [piqa]: https://arxiv.org/abs/1911.11641
223
+ [triviaqa]: https://arxiv.org/abs/1705.03551
224
+ [arc]: https://arxiv.org/abs/1911.01547
225
+ [winogrande]: https://arxiv.org/abs/1907.10641
226
+
227
+ | **Benchmark** | **n-shot** | **Gemma 3 IT 270m** |
228
+ | :------------------------ | :-----------: | ------------------: |
229
+ | [HellaSwag][hellaswag] | 0-shot | 37.7 |
230
+ | [PIQA][piqa] | 0-shot | 66.2 |
231
+ | [ARC-c][arc] | 0-shot | 28.2 |
232
+ | [WinoGrande][winogrande] | 0-shot | 52.3 |
233
+ | [BIG-Bench Hard][bbh] | few-shot | 26.7 |
234
+ | [IF Eval][ifeval] | 0-shot | 51.2 |
235
+
236
+ [hellaswag]: https://arxiv.org/abs/1905.07830
237
+ [piqa]: https://arxiv.org/abs/1911.11641
238
+ [arc]: https://arxiv.org/abs/1911.01547
239
+ [winogrande]: https://arxiv.org/abs/1907.10641
240
+ [bbh]: https://paperswithcode.com/dataset/bbh
241
+ [bbh]: https://paperswithcode.com/dataset/bbh
242
+ [ifeval]: https://arxiv.org/abs/2311.07911
243
+
244
+ #### Gemma 3 1B, 4B, 12B & 27B
245
+
246
+ ##### Reasoning and factuality
247
+
248
+ | Benchmark | n-shot | Gemma 3 IT 1B | Gemma 3 IT 4B | Gemma 3 IT 12B | Gemma 3 IT 27B |
249
+ |--------------------------------|--------|:-------------:|:-------------:|:--------------:|:--------------:|
250
+ | [GPQA][gpqa] Diamond | 0-shot | 19.2 | 30.8 | 40.9 | 42.4 |
251
+ | [SimpleQA][simpleqa] | 0-shot | 2.2 | 4.0 | 6.3 | 10.0 |
252
+ | [FACTS Grounding][facts-grdg] | - | 36.4 | 70.1 | 75.8 | 74.9 |
253
+ | [BIG-Bench Hard][bbh] | 0-shot | 39.1 | 72.2 | 85.7 | 87.6 |
254
+ | [BIG-Bench Extra Hard][bbeh] | 0-shot | 7.2 | 11.0 | 16.3 | 19.3 |
255
+ | [IFEval][ifeval] | 0-shot | 80.2 | 90.2 | 88.9 | 90.4 |
256
+
257
+ | Benchmark | n-shot | Gemma 3 PT 1B | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
258
+ | ------------------------------ |----------|:--------------:|:-------------:|:--------------:|:--------------:|
259
+ | [HellaSwag][hellaswag] | 10-shot | 62.3 | 77.2 | 84.2 | 85.6 |
260
+ | [BoolQ][boolq] | 0-shot | 63.2 | 72.3 | 78.8 | 82.4 |
261
+ | [PIQA][piqa] | 0-shot | 73.8 | 79.6 | 81.8 | 83.3 |
262
+ | [SocialIQA][socialiqa] | 0-shot | 48.9 | 51.9 | 53.4 | 54.9 |
263
+ | [TriviaQA][triviaqa] | 5-shot | 39.8 | 65.8 | 78.2 | 85.5 |
264
+ | [Natural Questions][naturalq] | 5-shot | 9.48 | 20.0 | 31.4 | 36.1 |
265
+ | [ARC-c][arc] | 25-shot | 38.4 | 56.2 | 68.9 | 70.6 |
266
+ | [ARC-e][arc] | 0-shot | 73.0 | 82.4 | 88.3 | 89.0 |
267
+ | [WinoGrande][winogrande] | 5-shot | 58.2 | 64.7 | 74.3 | 78.8 |
268
+ | [BIG-Bench Hard][bbh] | few-shot | 28.4 | 50.9 | 72.6 | 77.7 |
269
+ | [DROP][drop] | 1-shot | 42.4 | 60.1 | 72.2 | 77.2 |
270
+
271
+ [gpqa]: https://arxiv.org/abs/2311.12022
272
+ [simpleqa]: https://arxiv.org/abs/2411.04368
273
+ [facts-grdg]: https://goo.gle/FACTS_paper
274
+ [bbeh]: https://github.com/google-deepmind/bbeh
275
+ [ifeval]: https://arxiv.org/abs/2311.07911
276
+ [hellaswag]: https://arxiv.org/abs/1905.07830
277
+ [boolq]: https://arxiv.org/abs/1905.10044
278
+ [piqa]: https://arxiv.org/abs/1911.11641
279
+ [socialiqa]: https://arxiv.org/abs/1904.09728
280
+ [triviaqa]: https://arxiv.org/abs/1705.03551
281
+ [naturalq]: https://github.com/google-research-datasets/natural-questions
282
+ [arc]: https://arxiv.org/abs/1911.01547
283
+ [winogrande]: https://arxiv.org/abs/1907.10641
284
+ [bbh]: https://paperswithcode.com/dataset/bbh
285
+ [drop]: https://arxiv.org/abs/1903.00161
286
+
287
+ ##### STEM and code
288
+
289
+ | Benchmark | n-shot | Gemma 3 IT 1B | Gemma 3 IT 4B | Gemma 3 IT 12B | Gemma 3 IT 27B |
290
+ |----------------------------|--------|:-------------:|:-------------:|:--------------:|:--------------:|
291
+ | [MMLU][mmlu] (Pro) | 0-shot | 14.7 | 43.6 | 60.6 | 67.5 |
292
+ | [LiveCodeBench][lcb] | 0-shot | 1.9 | 12.6 | 24.6 | 29.7 |
293
+ | [Bird-SQL][bird-sql] (dev) | - | 6.4 | 36.3 | 47.9 | 54.4 |
294
+ | [Math][math] | 0-shot | 48.0 | 75.6 | 83.8 | 89.0 |
295
+ | HiddenMath | 0-shot | 15.8 | 43.0 | 54.5 | 60.3 |
296
+ | [MBPP][mbpp] | 3-shot | 35.2 | 63.2 | 73.0 | 74.4 |
297
+ | [HumanEval][humaneval] | 0-shot | 41.5 | 71.3 | 85.4 | 87.8 |
298
+ | [Natural2Code][nat2code] | 0-shot | 56.0 | 70.3 | 80.7 | 84.5 |
299
+ | [GSM8K][gsm8k] | 0-shot | 62.8 | 89.2 | 94.4 | 95.9 |
300
+
301
+ | Benchmark | n-shot | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
302
+ | ------------------------------ |----------------|:-------------:|:--------------:|:--------------:|
303
+ | [MMLU][mmlu] | 5-shot | 59.6 | 74.5 | 78.6 |
304
+ | [MMLU][mmlu] (Pro COT) | 5-shot | 29.2 | 45.3 | 52.2 |
305
+ | [AGIEval][agieval] | 3-5-shot | 42.1 | 57.4 | 66.2 |
306
+ | [MATH][math] | 4-shot | 24.2 | 43.3 | 50.0 |
307
+ | [GSM8K][gsm8k] | 8-shot | 38.4 | 71.0 | 82.6 |
308
+ | [GPQA][gpqa] | 5-shot | 15.0 | 25.4 | 24.3 |
309
+ | [MBPP][mbpp] | 3-shot | 46.0 | 60.4 | 65.6 |
310
+ | [HumanEval][humaneval] | 0-shot | 36.0 | 45.7 | 48.8 |
311
+
312
+ [mmlu]: https://arxiv.org/abs/2009.03300
313
+ [agieval]: https://arxiv.org/abs/2304.06364
314
+ [math]: https://arxiv.org/abs/2103.03874
315
+ [gsm8k]: https://arxiv.org/abs/2110.14168
316
+ [gpqa]: https://arxiv.org/abs/2311.12022
317
+ [mbpp]: https://arxiv.org/abs/2108.07732
318
+ [humaneval]: https://arxiv.org/abs/2107.03374
319
+ [lcb]: https://arxiv.org/abs/2403.07974
320
+ [bird-sql]: https://arxiv.org/abs/2305.03111
321
+ [nat2code]: https://arxiv.org/abs/2405.04520
322
+
323
+ #### Multilingual
324
+
325
+ | Benchmark | n-shot | Gemma 3 IT 1B | Gemma 3 IT 4B | Gemma 3 IT 12B | Gemma 3 IT 27B |
326
+ |--------------------------------------|--------|:-------------:|:-------------:|:--------------:|:--------------:|
327
+ | [Global-MMLU-Lite][global-mmlu-lite] | 0-shot | 34.2 | 54.5 | 69.5 | 75.1 |
328
+ | [ECLeKTic][eclektic] | 0-shot | 1.4 | 4.6 | 10.3 | 16.7 |
329
+ | [WMT24++][wmt24pp] | 0-shot | 35.9 | 46.8 | 51.6 | 53.4 |
330
+
331
+ | Benchmark | Gemma 3 PT 1B | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
332
+ | ------------------------------------ |:-------------:|:-------------:|:--------------:|:--------------:|
333
+ | [MGSM][mgsm] | 2.04 | 34.7 | 64.3 | 74.3 |
334
+ | [Global-MMLU-Lite][global-mmlu-lite] | 24.9 | 57.0 | 69.4 | 75.7 |
335
+ | [WMT24++][wmt24pp] (ChrF) | 36.7 | 48.4 | 53.9 | 55.7 |
336
+ | [FloRes][flores] | 29.5 | 39.2 | 46.0 | 48.8 |
337
+ | [XQuAD][xquad] (all) | 43.9 | 68.0 | 74.5 | 76.8 |
338
+ | [ECLeKTic][eclektic] | 4.69 | 11.0 | 17.2 | 24.4 |
339
+ | [IndicGenBench][indicgenbench] | 41.4 | 57.2 | 61.7 | 63.4 |
340
+
341
+ [mgsm]: https://arxiv.org/abs/2210.03057
342
+ [flores]: https://arxiv.org/abs/2106.03193
343
+ [xquad]: https://arxiv.org/abs/1910.11856v3
344
+ [global-mmlu-lite]: https://huggingface.co/datasets/CohereForAI/Global-MMLU-Lite
345
+ [wmt24pp]: https://arxiv.org/abs/2502.12404v1
346
+ [eclektic]: https://arxiv.org/abs/2502.21228
347
+ [indicgenbench]: https://arxiv.org/abs/2404.16816
348
+
349
+ ##### Multimodal
350
+
351
+ | Benchmark | Gemma 3 IT 4B | Gemma 3 IT 12B | Gemma 3 IT 27B |
352
+ |-----------------------------------|:-------------:|:--------------:|:--------------:|
353
+ | [MMMU][mmmu] (val) | 48.8 | 59.6 | 64.9 |
354
+ | [DocVQA][docvqa] | 75.8 | 87.1 | 86.6 |
355
+ | [InfoVQA][info-vqa] | 50.0 | 64.9 | 70.6 |
356
+ | [TextVQA][textvqa] | 57.8 | 67.7 | 65.1 |
357
+ | [AI2D][ai2d] | 74.8 | 84.2 | 84.5 |
358
+ | [ChartQA][chartqa] | 68.8 | 75.7 | 78.0 |
359
+ | [VQAv2][vqav2] (val) | 62.4 | 71.6 | 71.0 |
360
+ | [MathVista][mathvista] (testmini) | 50.0 | 62.9 | 67.6 |
361
+
362
+ | Benchmark | Gemma 3 PT 4B | Gemma 3 PT 12B | Gemma 3 PT 27B |
363
+ | ------------------------------ |:-------------:|:--------------:|:--------------:|
364
+ | [COCOcap][coco-cap] | 102 | 111 | 116 |
365
+ | [DocVQA][docvqa] (val) | 72.8 | 82.3 | 85.6 |
366
+ | [InfoVQA][info-vqa] (val) | 44.1 | 54.8 | 59.4 |
367
+ | [MMMU][mmmu] (pt) | 39.2 | 50.3 | 56.1 |
368
+ | [TextVQA][textvqa] (val) | 58.9 | 66.5 | 68.6 |
369
+ | [RealWorldQA][realworldqa] | 45.5 | 52.2 | 53.9 |
370
+ | [ReMI][remi] | 27.3 | 38.5 | 44.8 |
371
+ | [AI2D][ai2d] | 63.2 | 75.2 | 79.0 |
372
+ | [ChartQA][chartqa] | 63.6 | 74.7 | 76.3 |
373
+ | [VQAv2][vqav2] | 63.9 | 71.2 | 72.9 |
374
+ | [BLINK][blinkvqa] | 38.0 | 35.9 | 39.6 |
375
+ | [OKVQA][okvqa] | 51.0 | 58.7 | 60.2 |
376
+ | [TallyQA][tallyqa] | 42.5 | 51.8 | 54.3 |
377
+ | [SpatialSense VQA][ss-vqa] | 50.9 | 60.0 | 59.4 |
378
+ | [CountBenchQA][countbenchqa] | 26.1 | 17.8 | 68.0 |
379
+
380
+ [coco-cap]: https://cocodataset.org/#home
381
+ [docvqa]: https://www.docvqa.org/
382
+ [info-vqa]: https://arxiv.org/abs/2104.12756
383
+ [mmmu]: https://arxiv.org/abs/2311.16502
384
+ [textvqa]: https://textvqa.org/
385
+ [realworldqa]: https://paperswithcode.com/dataset/realworldqa
386
+ [remi]: https://arxiv.org/html/2406.09175v1
387
+ [ai2d]: https://allenai.org/data/diagrams
388
+ [chartqa]: https://arxiv.org/abs/2203.10244
389
+ [vqav2]: https://visualqa.org/index.html
390
+ [blinkvqa]: https://arxiv.org/abs/2404.12390
391
+ [okvqa]: https://okvqa.allenai.org/
392
+ [tallyqa]: https://arxiv.org/abs/1810.12440
393
+ [ss-vqa]: https://arxiv.org/abs/1908.02660
394
+ [countbenchqa]: https://github.com/google-research/big_vision/blob/main/big_vision/datasets/countbenchqa/
395
+ [mathvista]: https://arxiv.org/abs/2310.02255
396
+
397
+ ## Ethics and Safety
398
+
399
+ Ethics and safety evaluation approach and results.
400
+
401
+ ### Evaluation Approach
402
+
403
+ Our evaluation methods include structured evaluations and internal red-teaming
404
+ testing of relevant content policies. Red-teaming was conducted by a number of
405
+ different teams, each with different goals and human evaluation metrics. These
406
+ models were evaluated against a number of different categories relevant to
407
+ ethics and safety, including:
408
+
409
+ - **Child Safety**: Evaluation of text-to-text and image to text prompts
410
+ covering child safety policies, including child sexual abuse and
411
+ exploitation.
412
+ - **Content Safety:** Evaluation of text-to-text and image to text prompts
413
+ covering safety policies including, harassment, violence and gore, and hate
414
+ speech.
415
+ - **Representational Harms**: Evaluation of text-to-text and image to text
416
+ prompts covering safety policies including bias, stereotyping, and harmful
417
+ associations or inaccuracies.
418
+
419
+ In addition to development level evaluations, we conduct "assurance
420
+ evaluations" which are our 'arms-length' internal evaluations for responsibility
421
+ governance decision making. They are conducted separately from the model
422
+ development team, to inform decision making about release. High level findings
423
+ are fed back to the model team, but prompt sets are held-out to prevent
424
+ overfitting and preserve the results' ability to inform decision making.
425
+ Assurance evaluation results are reported to our Responsibility & Safety Council
426
+ as part of release review.
427
+
428
+ ### Evaluation Results
429
+
430
+ For all areas of safety testing, we saw major improvements in the categories of
431
+ child safety, content safety, and representational harms relative to previous
432
+ Gemma models. All testing was conducted without safety filters to evaluate the
433
+ model capabilities and behaviors. For both text-to-text and image-to-text, and
434
+ across all model sizes, the model produced minimal policy violations, and showed
435
+ significant improvements over previous Gemma models' performance with respect
436
+ to ungrounded inferences. A limitation of our evaluations was they included only
437
+ English language prompts.
438
+
439
+ ## Usage and Limitations
440
+
441
+ These models have certain limitations that users should be aware of.
442
+
443
+ ### Intended Usage
444
+
445
+ Open vision-language models (VLMs) models have a wide range of applications
446
+ across various industries and domains. The following list of potential uses is
447
+ not comprehensive. The purpose of this list is to provide contextual information
448
+ about the possible use-cases that the model creators considered as part of model
449
+ training and development.
450
+
451
+ - Content Creation and Communication
452
+ - Text Generation: These models can be used to generate creative text
453
+ formats such as poems, scripts, code, marketing copy, and email drafts.
454
+ - Chatbots and Conversational AI: Power conversational interfaces
455
+ for customer service, virtual assistants, or interactive applications.
456
+ - Text Summarization: Generate concise summaries of a text corpus,
457
+ research papers, or reports.
458
+ - Image Data Extraction: These models can be used to extract,
459
+ interpret, and summarize visual data for text communications.
460
+ - Research and Education
461
+ - Natural Language Processing (NLP) and VLM Research: These
462
+ models can serve as a foundation for researchers to experiment with VLM
463
+ and NLP techniques, develop algorithms, and contribute to the
464
+ advancement of the field.
465
+ - Language Learning Tools: Support interactive language learning
466
+ experiences, aiding in grammar correction or providing writing practice.
467
+ - Knowledge Exploration: Assist researchers in exploring large
468
+ bodies of text by generating summaries or answering questions about
469
+ specific topics.
470
+
471
+ ### Limitations
472
+
473
+ - Training Data
474
+ - The quality and diversity of the training data significantly
475
+ influence the model's capabilities. Biases or gaps in the training data
476
+ can lead to limitations in the model's responses.
477
+ - The scope of the training dataset determines the subject areas
478
+ the model can handle effectively.
479
+ - Context and Task Complexity
480
+ - Models are better at tasks that can be framed with clear
481
+ prompts and instructions. Open-ended or highly complex tasks might be
482
+ challenging.
483
+ - A model's performance can be influenced by the amount of context
484
+ provided (longer context generally leads to better outputs, up to a
485
+ certain point).
486
+ - Language Ambiguity and Nuance
487
+ - Natural language is inherently complex. Models might struggle
488
+ to grasp subtle nuances, sarcasm, or figurative language.
489
+ - Factual Accuracy
490
+ - Models generate responses based on information they learned
491
+ from their training datasets, but they are not knowledge bases. They
492
+ may generate incorrect or outdated factual statements.
493
+ - Common Sense
494
+ - Models rely on statistical patterns in language. They might
495
+ lack the ability to apply common sense reasoning in certain situations.
496
+
497
+ ### Ethical Considerations and Risks
498
+
499
+ The development of vision-language models (VLMs) raises several ethical
500
+ concerns. In creating an open model, we have carefully considered the following:
501
+
502
+ - Bias and Fairness
503
+ - VLMs trained on large-scale, real-world text and image data can
504
+ reflect socio-cultural biases embedded in the training material. These
505
+ models underwent careful scrutiny, input data pre-processing described
506
+ and posterior evaluations reported in this card.
507
+ - Misinformation and Misuse
508
+ - VLMs can be misused to generate text that is false, misleading,
509
+ or harmful.
510
+ - Guidelines are provided for responsible use with the model, see the
511
+ [Responsible Generative AI Toolkit][rai-toolkit].
512
+ - Transparency and Accountability:
513
+ - This model card summarizes details on the models' architecture,
514
+ capabilities, limitations, and evaluation processes.
515
+ - A responsibly developed open model offers the opportunity to
516
+ share innovation by making VLM technology accessible to developers and
517
+ researchers across the AI ecosystem.
518
+
519
+ Risks identified and mitigations:
520
+
521
+ - **Perpetuation of biases**: It's encouraged to perform continuous
522
+ monitoring (using evaluation metrics, human review) and the exploration of
523
+ de-biasing techniques during model training, fine-tuning, and other use
524
+ cases.
525
+ - **Generation of harmful content**: Mechanisms and guidelines for content
526
+ safety are essential. Developers are encouraged to exercise caution and
527
+ implement appropriate content safety safeguards based on their specific
528
+ product policies and application use cases.
529
+ - **Misuse for malicious purposes**: Technical limitations and developer
530
+ and end-user education can help mitigate against malicious applications of
531
+ VLMs. Educational resources and reporting mechanisms for users to flag
532
+ misuse are provided. Prohibited uses of Gemma models are outlined in the
533
+ [Gemma Prohibited Use Policy][prohibited-use].
534
+ - **Privacy violations**: Models were trained on data filtered for removal
535
+ of certain personal information and other sensitive data. Developers are
536
+ encouraged to adhere to privacy regulations with privacy-preserving
537
+ techniques.
538
+
539
+ ### Benefits
540
+
541
+ At the time of release, this family of models provides high-performance open
542
+ vision-language model implementations designed from the ground up for
543
+ responsible AI development compared to similarly sized models.
544
+
545
+ Using the benchmark evaluation metrics described in this document, these models
546
+ have shown to provide superior performance to other, comparably-sized open model
547
+ alternatives.
548
+
549
+ [g3-tech-report]: https://arxiv.org/abs/2503.19786
550
+ [rai-toolkit]: https://ai.google.dev/responsible
551
+ [kaggle-gemma]: https://www.kaggle.com/models/google/gemma-3
552
+ [vertex-mg-gemma3]: https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/gemma3
553
+ [terms]: https://ai.google.dev/gemma/terms
554
+ [safety-policies]: https://ai.google/static/documents/ai-responsibility-update-published-february-2025.pdf
555
+ [prohibited-use]: https://ai.google.dev/gemma/prohibited_use_policy
556
+ [tpu]: https://cloud.google.com/tpu/docs/intro-to-tpu
557
+ [sustainability]: https://sustainability.google/operating-sustainably/
558
+ [jax]: https://github.com/jax-ml/jax
559
+ [ml-pathways]: https://blog.google/technology/ai/introducing-pathways-next-generation-ai-architecture/
560
+ [sustainability]: https://sustainability.google/operating-sustainably/
561
+ [gemini-2-paper]: https://arxiv.org/abs/2312.11805