lucyknada commited on
Commit
7d8410c
·
verified ·
1 Parent(s): 645daf7

Upload ./README.md with huggingface_hub

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