gaunernst commited on
Commit
970cdef
·
verified ·
1 Parent(s): 79695f7

Create README.md

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