RichardErkhov commited on
Commit
16732ff
·
verified ·
1 Parent(s): ed42e67

uploaded readme

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