Text Generation
Transformers
aashish1904 commited on
Commit
31b3f8f
·
verified ·
1 Parent(s): 6e9ca9b

Upload README.md with huggingface_hub

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