Abdoul-AI commited on
Commit
3f45b1c
·
verified ·
1 Parent(s): cddef52

Upload folder using huggingface_hub

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