RichardErkhov commited on
Commit
3ae579f
·
verified ·
1 Parent(s): 7b4ef0f

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +459 -4
README.md CHANGED
@@ -1,4 +1,4 @@
1
- GGUF quantization made by Richard Erkhov.
2
 
3
  [Github](https://github.com/RichardErkhov)
4
 
@@ -38,6 +38,461 @@ gemma-2b - GGUF
38
 
39
 
40
 
41
- Original model description:
42
- Repo model google/gemma-2b is gated. You must be authenticated to access it.
43
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
 
3
  [Github](https://github.com/RichardErkhov)
4
 
 
38
 
39
 
40
 
41
+
42
+ Original model description:
43
+ ---
44
+ library_name: transformers
45
+ extra_gated_heading: Access Gemma on Hugging Face
46
+ extra_gated_prompt: >-
47
+ To access Gemma on Hugging Face, you’re required to review and agree to
48
+ Google’s usage license. To do this, please ensure you’re logged-in to Hugging
49
+ Face and click below. Requests are processed immediately.
50
+ extra_gated_button_content: Acknowledge license
51
+ license: gemma
52
+ ---
53
+
54
+ # Gemma Model Card
55
+
56
+ **Model Page**: [Gemma](https://ai.google.dev/gemma/docs)
57
+
58
+ This model card corresponds to the 2B base version of the Gemma model. You can also visit the model card of the [7B base model](https://huggingface.co/google/gemma-7b), [7B instruct model](https://huggingface.co/google/gemma-7b-it), and [2B instruct model](https://huggingface.co/google/gemma-2b-it).
59
+
60
+ **Resources and Technical Documentation**:
61
+
62
+ * [Gemma Technical Report](https://storage.googleapis.com/deepmind-media/gemma/gemma-report.pdf)
63
+ * [Responsible Generative AI Toolkit](https://ai.google.dev/responsible)
64
+ * [Gemma on Kaggle](https://www.kaggle.com/models/google/gemma)
65
+ * [Gemma on Vertex Model Garden](https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/335?version=gemma-2b-gg-hf)
66
+
67
+ **Terms of Use**: [Terms](https://www.kaggle.com/models/google/gemma/license/consent)
68
+
69
+ **Authors**: Google
70
+
71
+ ## Model Information
72
+
73
+ Summary description and brief definition of inputs and outputs.
74
+
75
+ ### Description
76
+
77
+ Gemma is a family of lightweight, state-of-the-art open models from Google,
78
+ built from the same research and technology used to create the Gemini models.
79
+ They are text-to-text, decoder-only large language models, available in English,
80
+ with open weights, pre-trained variants, and instruction-tuned variants. Gemma
81
+ models are well-suited for a variety of text generation tasks, including
82
+ question answering, summarization, and reasoning. Their relatively small size
83
+ makes it possible to deploy them in environments with limited resources such as
84
+ a laptop, desktop or your own cloud infrastructure, democratizing access to
85
+ state of the art AI models and helping foster innovation for everyone.
86
+
87
+ ### Context Length
88
+ Models are trained on a context length of 8192 tokens.
89
+
90
+ ### Usage
91
+
92
+ Below we share some code snippets on how to get quickly started with running the model. First make sure to `pip install -U transformers`, then copy the snippet from the section that is relevant for your usecase.
93
+
94
+
95
+ #### Fine-tuning the model
96
+
97
+ You can find fine-tuning scripts and notebook under the [`examples/` directory](https://huggingface.co/google/gemma-7b/tree/main/examples) of [`google/gemma-7b`](https://huggingface.co/google/gemma-7b) repository. To adapt it to this model, simply change the model-id to `google/gemma-2b`.
98
+ In that repository, we provide:
99
+
100
+ * A script to perform Supervised Fine-Tuning (SFT) on UltraChat dataset using QLoRA
101
+ * A script to perform SFT using FSDP on TPU devices
102
+ * A notebook that you can run on a free-tier Google Colab instance to perform SFT on English quotes dataset
103
+
104
+
105
+
106
+ #### Running the model on a CPU
107
+
108
+
109
+ ```python
110
+ from transformers import AutoTokenizer, AutoModelForCausalLM
111
+
112
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b")
113
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2b")
114
+
115
+ input_text = "Write me a poem about Machine Learning."
116
+ input_ids = tokenizer(input_text, return_tensors="pt")
117
+
118
+ outputs = model.generate(**input_ids)
119
+ print(tokenizer.decode(outputs[0]))
120
+ ```
121
+
122
+
123
+ #### Running the model on a single / multi GPU
124
+
125
+
126
+ ```python
127
+ # pip install accelerate
128
+ from transformers import AutoTokenizer, AutoModelForCausalLM
129
+
130
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b")
131
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2b", device_map="auto")
132
+
133
+ input_text = "Write me a poem about Machine Learning."
134
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
135
+
136
+ outputs = model.generate(**input_ids)
137
+ print(tokenizer.decode(outputs[0]))
138
+ ```
139
+
140
+
141
+ #### Running the model on a GPU using different precisions
142
+
143
+ * _Using `torch.float16`_
144
+
145
+ ```python
146
+ # pip install accelerate
147
+ from transformers import AutoTokenizer, AutoModelForCausalLM
148
+
149
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b")
150
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2b", device_map="auto", revision="float16")
151
+
152
+ input_text = "Write me a poem about Machine Learning."
153
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
154
+
155
+ outputs = model.generate(**input_ids)
156
+ print(tokenizer.decode(outputs[0]))
157
+ ```
158
+
159
+ * _Using `torch.bfloat16`_
160
+
161
+ ```python
162
+ # pip install accelerate
163
+ from transformers import AutoTokenizer, AutoModelForCausalLM
164
+
165
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b")
166
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2b", device_map="auto", torch_dtype=torch.bfloat16)
167
+
168
+ input_text = "Write me a poem about Machine Learning."
169
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
170
+
171
+ outputs = model.generate(**input_ids)
172
+ print(tokenizer.decode(outputs[0]))
173
+ ```
174
+
175
+ #### Quantized Versions through `bitsandbytes`
176
+
177
+ * _Using 8-bit precision (int8)_
178
+
179
+ ```python
180
+ # pip install bitsandbytes accelerate
181
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
182
+
183
+ quantization_config = BitsAndBytesConfig(load_in_8bit=True)
184
+
185
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b")
186
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2b", quantization_config=quantization_config)
187
+
188
+ input_text = "Write me a poem about Machine Learning."
189
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
190
+
191
+ outputs = model.generate(**input_ids)
192
+ print(tokenizer.decode(outputs[0]))
193
+ ```
194
+
195
+ * _Using 4-bit precision_
196
+
197
+ ```python
198
+ # pip install bitsandbytes accelerate
199
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
200
+
201
+ quantization_config = BitsAndBytesConfig(load_in_4bit=True)
202
+
203
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2b")
204
+ model = AutoModelForCausalLM.from_pretrained("google/gemma-2b", quantization_config=quantization_config)
205
+
206
+ input_text = "Write me a poem about Machine Learning."
207
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
208
+
209
+ outputs = model.generate(**input_ids)
210
+ print(tokenizer.decode(outputs[0]))
211
+ ```
212
+
213
+
214
+ #### Other optimizations
215
+
216
+ * _Flash Attention 2_
217
+
218
+ First make sure to install `flash-attn` in your environment `pip install flash-attn`
219
+
220
+ ```diff
221
+ model = AutoModelForCausalLM.from_pretrained(
222
+ model_id,
223
+ torch_dtype=torch.float16,
224
+ + attn_implementation="flash_attention_2"
225
+ ).to(0)
226
+ ```
227
+
228
+ ### Inputs and outputs
229
+
230
+ * **Input:** Text string, such as a question, a prompt, or a document to be
231
+ summarized.
232
+ * **Output:** Generated English-language text in response to the input, such
233
+ as an answer to a question, or a summary of a document.
234
+
235
+ ## Model Data
236
+
237
+ Data used for model training and how the data was processed.
238
+
239
+ ### Training Dataset
240
+
241
+ These models were trained on a dataset of text data that includes a wide variety
242
+ of sources, totaling 6 trillion tokens. Here are the key components:
243
+
244
+ * Web Documents: A diverse collection of web text ensures the model is exposed
245
+ to a broad range of linguistic styles, topics, and vocabulary. Primarily
246
+ English-language content.
247
+ * Code: Exposing the model to code helps it to learn the syntax and patterns of
248
+ programming languages, which improves its ability to generate code or
249
+ understand code-related questions.
250
+ * Mathematics: Training on mathematical text helps the model learn logical
251
+ reasoning, symbolic representation, and to address mathematical queries.
252
+
253
+ The combination of these diverse data sources is crucial for training a powerful
254
+ language model that can handle a wide variety of different tasks and text
255
+ formats.
256
+
257
+ ### Data Preprocessing
258
+
259
+ Here are the key data cleaning and filtering methods applied to the training
260
+ data:
261
+
262
+ * CSAM Filtering: Rigorous CSAM (Child Sexual Abuse Material) filtering was
263
+ applied at multiple stages in the data preparation process to ensure the
264
+ exclusion of harmful and illegal content
265
+ * Sensitive Data Filtering: As part of making Gemma pre-trained models safe and
266
+ reliable, automated techniques were used to filter out certain personal
267
+ information and other sensitive data from training sets.
268
+ * Additional methods: Filtering based on content quality and safely in line with
269
+ [our policies](https://storage.googleapis.com/gweb-uniblog-publish-prod/documents/2023_Google_AI_Principles_Progress_Update.pdf#page=11).
270
+
271
+ ## Implementation Information
272
+
273
+ Details about the model internals.
274
+
275
+ ### Hardware
276
+
277
+ Gemma was trained using the latest generation of
278
+ [Tensor Processing Unit (TPU)](https://cloud.google.com/tpu/docs/intro-to-tpu) hardware (TPUv5e).
279
+
280
+ Training large language models requires significant computational power. TPUs,
281
+ designed specifically for matrix operations common in machine learning, offer
282
+ several advantages in this domain:
283
+
284
+ * Performance: TPUs are specifically designed to handle the massive computations
285
+ involved in training LLMs. They can speed up training considerably compared to
286
+ CPUs.
287
+ * Memory: TPUs often come with large amounts of high-bandwidth memory, allowing
288
+ for the handling of large models and batch sizes during training. This can
289
+ lead to better model quality.
290
+ * Scalability: TPU Pods (large clusters of TPUs) provide a scalable solution for
291
+ handling the growing complexity of large foundation models. You can distribute
292
+ training across multiple TPU devices for faster and more efficient processing.
293
+ * Cost-effectiveness: In many scenarios, TPUs can provide a more cost-effective
294
+ solution for training large models compared to CPU-based infrastructure,
295
+ especially when considering the time and resources saved due to faster
296
+ training.
297
+ * These advantages are aligned with
298
+ [Google's commitments to operate sustainably](https://sustainability.google/operating-sustainably/).
299
+
300
+ ### Software
301
+
302
+ Training was done using [JAX](https://github.com/google/jax) and [ML Pathways](https://blog.google/technology/ai/introducing-pathways-next-generation-ai-architecture/ml-pathways).
303
+
304
+ JAX allows researchers to take advantage of the latest generation of hardware,
305
+ including TPUs, for faster and more efficient training of large models.
306
+
307
+ ML Pathways is Google's latest effort to build artificially intelligent systems
308
+ capable of generalizing across multiple tasks. This is specially suitable for
309
+ [foundation models](https://ai.google/discover/foundation-models/), including large language models like
310
+ these ones.
311
+
312
+ Together, JAX and ML Pathways are used as described in the
313
+ [paper about the Gemini family of models](https://arxiv.org/abs/2312.11805); "the 'single
314
+ controller' programming model of Jax and Pathways allows a single Python
315
+ process to orchestrate the entire training run, dramatically simplifying the
316
+ development workflow."
317
+
318
+ ## Evaluation
319
+
320
+ Model evaluation metrics and results.
321
+
322
+ ### Benchmark Results
323
+
324
+ These models were evaluated against a large collection of different datasets and
325
+ metrics to cover different aspects of text generation:
326
+
327
+ | Benchmark | Metric | 2B Params | 7B Params |
328
+ | ------------------------------ | ------------- | ----------- | --------- |
329
+ | [MMLU](https://arxiv.org/abs/2009.03300) | 5-shot, top-1 | 42.3 | 64.3 |
330
+ | [HellaSwag](https://arxiv.org/abs/1905.07830) | 0-shot |71.4 | 81.2 |
331
+ | [PIQA](https://arxiv.org/abs/1911.11641) | 0-shot | 77.3 | 81.2 |
332
+ | [SocialIQA](https://arxiv.org/abs/1904.09728) | 0-shot | 49.7 | 51.8 |
333
+ | [BooIQ](https://arxiv.org/abs/1905.10044) | 0-shot | 69.4 | 83.2 |
334
+ | [WinoGrande](https://arxiv.org/abs/1907.10641) | partial score | 65.4 | 72.3 |
335
+ | [CommonsenseQA](https://arxiv.org/abs/1811.00937) | 7-shot | 65.3 | 71.3 |
336
+ | [OpenBookQA](https://arxiv.org/abs/1809.02789) | | 47.8 | 52.8 |
337
+ | [ARC-e](https://arxiv.org/abs/1911.01547) | | 73.2 | 81.5 |
338
+ | [ARC-c](https://arxiv.org/abs/1911.01547) | | 42.1 | 53.2 |
339
+ | [TriviaQA](https://arxiv.org/abs/1705.03551) | 5-shot | 53.2 | 63.4 |
340
+ | [Natural Questions](https://github.com/google-research-datasets/natural-questions) | 5-shot | 12.5 | 23 |
341
+ | [HumanEval](https://arxiv.org/abs/2107.03374) | pass@1 | 22.0 | 32.3 |
342
+ | [MBPP](https://arxiv.org/abs/2108.07732) | 3-shot | 29.2 | 44.4 |
343
+ | [GSM8K](https://arxiv.org/abs/2110.14168) | maj@1 | 17.7 | 46.4 |
344
+ | [MATH](https://arxiv.org/abs/2108.07732) | 4-shot | 11.8 | 24.3 |
345
+ | [AGIEval](https://arxiv.org/abs/2304.06364) | | 24.2 | 41.7 |
346
+ | [BIG-Bench](https://arxiv.org/abs/2206.04615) | | 35.2 | 55.1 |
347
+ | ------------------------------ | ------------- | ----------- | --------- |
348
+ | **Average** | | **45.0** | **56.9** |
349
+
350
+ ## Ethics and Safety
351
+
352
+ Ethics and safety evaluation approach and results.
353
+
354
+ ### Evaluation Approach
355
+
356
+ Our evaluation methods include structured evaluations and internal red-teaming
357
+ testing of relevant content policies. Red-teaming was conducted by a number of
358
+ different teams, each with different goals and human evaluation metrics. These
359
+ models were evaluated against a number of different categories relevant to
360
+ ethics and safety, including:
361
+
362
+ * Text-to-Text Content Safety: Human evaluation on prompts covering safety
363
+ policies including child sexual abuse and exploitation, harassment, violence
364
+ and gore, and hate speech.
365
+ * Text-to-Text Representational Harms: Benchmark against relevant academic
366
+ datasets such as [WinoBias](https://arxiv.org/abs/1804.06876) and [BBQ Dataset](https://arxiv.org/abs/2110.08193v2).
367
+ * Memorization: Automated evaluation of memorization of training data, including
368
+ the risk of personally identifiable information exposure.
369
+ * Large-scale harm: Tests for "dangerous capabilities," such as chemical,
370
+ biological, radiological, and nuclear (CBRN) risks.
371
+
372
+ ### Evaluation Results
373
+
374
+ The results of ethics and safety evaluations are within acceptable thresholds
375
+ for meeting [internal policies](https://storage.googleapis.com/gweb-uniblog-publish-prod/documents/2023_Google_AI_Principles_Progress_Update.pdf#page=11) for categories such as child
376
+ safety, content safety, representational harms, memorization, large-scale harms.
377
+ On top of robust internal evaluations, the results of well known safety
378
+ benchmarks like BBQ, BOLD, Winogender, Winobias, RealToxicity, and TruthfulQA
379
+ are shown here.
380
+
381
+ **Update**: These numbers reflect the new numbers from the updated v1.1 IT models. For the original v1 numbers, please consult the technical report's appendix for the results.
382
+
383
+ | Benchmark | Metric | Gemma v1.1 IT 2B | Gemma v1.1 IT 7B |
384
+ | ------------------------------ | ------------- | ----------- | --------- |
385
+ | [RealToxicity](https://arxiv.org/abs/2009.11462) | average | 6.86 | 7.90 |
386
+ | [BOLD](https://arxiv.org/abs/2101.11718) | | 45.57 | 49.08 |
387
+ | [CrowS-Pairs](https://aclanthology.org/2020.emnlp-main.154/) | top-1 | 45.82 | 51.33 |
388
+ | [BBQ Ambig](https://arxiv.org/abs/2110.08193v2) | 1-shot, top-1 | 62.58 | 92.54 |
389
+ | [BBQ Disambig](https://arxiv.org/abs/2110.08193v2) | top-1 | 54.62 | 71.99 |
390
+ | [Winogender](https://arxiv.org/abs/1804.09301) | top-1 | 51.25 | 54.17 |
391
+ | [TruthfulQA](https://arxiv.org/abs/2109.07958) | | 31.81 | 44.84 |
392
+ | [Winobias 1_2](https://arxiv.org/abs/1804.06876) | | 56.12 | 59.09 |
393
+ | [Winobias 2_2](https://arxiv.org/abs/1804.06876) | | 91.10 | 92.23 |
394
+ | [Toxigen](https://arxiv.org/abs/2203.09509) | | 29.77 | 39.59 |
395
+ | ------------------------------ | ------------- | ----------- | --------- |
396
+
397
+
398
+ ## Usage and Limitations
399
+
400
+ These models have certain limitations that users should be aware of.
401
+
402
+ ### Intended Usage
403
+
404
+ Open Large Language Models (LLMs) have a wide range of applications across
405
+ various industries and domains. The following list of potential uses is not
406
+ comprehensive. The purpose of this list is to provide contextual information
407
+ about the possible use-cases that the model creators considered as part of model
408
+ training and development.
409
+
410
+ * Content Creation and Communication
411
+ * Text Generation: These models can be used to generate creative text formats
412
+ such as poems, scripts, code, marketing copy, and email drafts.
413
+ * Chatbots and Conversational AI: Power conversational interfaces for customer
414
+ service, virtual assistants, or interactive applications.
415
+ * Text Summarization: Generate concise summaries of a text corpus, research
416
+ papers, or reports.
417
+ * Research and Education
418
+ * Natural Language Processing (NLP) Research: These models can serve as a
419
+ foundation for researchers to experiment with NLP techniques, develop
420
+ algorithms, and contribute to the advancement of the field.
421
+ * Language Learning Tools: Support interactive language learning experiences,
422
+ aiding in grammar correction or providing writing practice.
423
+ * Knowledge Exploration: Assist researchers in exploring large bodies of text
424
+ by generating summaries or answering questions about specific topics.
425
+
426
+ ### Limitations
427
+
428
+ * Training Data
429
+ * The quality and diversity of the training data significantly influence the
430
+ model's capabilities. Biases or gaps in the training data can lead to
431
+ limitations in the model's responses.
432
+ * The scope of the training dataset determines the subject areas the model can
433
+ handle effectively.
434
+ * Context and Task Complexity
435
+ * LLMs are better at tasks that can be framed with clear prompts and
436
+ instructions. Open-ended or highly complex tasks might be challenging.
437
+ * A model's performance can be influenced by the amount of context provided
438
+ (longer context generally leads to better outputs, up to a certain point).
439
+ * Language Ambiguity and Nuance
440
+ * Natural language is inherently complex. LLMs might struggle to grasp subtle
441
+ nuances, sarcasm, or figurative language.
442
+ * Factual Accuracy
443
+ * LLMs generate responses based on information they learned from their
444
+ training datasets, but they are not knowledge bases. They may generate
445
+ incorrect or outdated factual statements.
446
+ * Common Sense
447
+ * LLMs rely on statistical patterns in language. They might lack the ability
448
+ to apply common sense reasoning in certain situations.
449
+
450
+ ### Ethical Considerations and Risks
451
+
452
+ The development of large language models (LLMs) raises several ethical concerns.
453
+ In creating an open model, we have carefully considered the following:
454
+
455
+ * Bias and Fairness
456
+ * LLMs trained on large-scale, real-world text data can reflect socio-cultural
457
+ biases embedded in the training material. These models underwent careful
458
+ scrutiny, input data pre-processing described and posterior evaluations
459
+ reported in this card.
460
+ * Misinformation and Misuse
461
+ * LLMs can be misused to generate text that is false, misleading, or harmful.
462
+ * Guidelines are provided for responsible use with the model, see the
463
+ [Responsible Generative AI Toolkit](http://ai.google.dev/gemma/responsible).
464
+ * Transparency and Accountability:
465
+ * This model card summarizes details on the models' architecture,
466
+ capabilities, limitations, and evaluation processes.
467
+ * A responsibly developed open model offers the opportunity to share
468
+ innovation by making LLM technology accessible to developers and researchers
469
+ across the AI ecosystem.
470
+
471
+ Risks identified and mitigations:
472
+
473
+ * Perpetuation of biases: It's encouraged to perform continuous monitoring
474
+ (using evaluation metrics, human review) and the exploration of de-biasing
475
+ techniques during model training, fine-tuning, and other use cases.
476
+ * Generation of harmful content: Mechanisms and guidelines for content safety
477
+ are essential. Developers are encouraged to exercise caution and implement
478
+ appropriate content safety safeguards based on their specific product policies
479
+ and application use cases.
480
+ * Misuse for malicious purposes: Technical limitations and developer and
481
+ end-user education can help mitigate against malicious applications of LLMs.
482
+ Educational resources and reporting mechanisms for users to flag misuse are
483
+ provided. Prohibited uses of Gemma models are outlined in the
484
+ [Gemma Prohibited Use Policy](https://ai.google.dev/gemma/prohibited_use_policy).
485
+ * Privacy violations: Models were trained on data filtered for removal of PII
486
+ (Personally Identifiable Information). Developers are encouraged to adhere to
487
+ privacy regulations with privacy-preserving techniques.
488
+
489
+ ### Benefits
490
+
491
+ At the time of release, this family of models provides high-performance open
492
+ large language model implementations designed from the ground up for Responsible
493
+ AI development compared to similarly sized models.
494
+
495
+ Using the benchmark evaluation metrics described in this document, these models
496
+ have shown to provide superior performance to other, comparably-sized open model
497
+ alternatives.
498
+