aashish1904 commited on
Commit
4e077e1
1 Parent(s): aaf584c

Upload README.md with huggingface_hub

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