nihaomur commited on
Commit
335db63
·
verified ·
1 Parent(s): f8928d2

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +526 -0
README.md ADDED
@@ -0,0 +1,526 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ library_name: transformers
4
+ pipeline_tag: text-generation
5
+ extra_gated_button_content: Acknowledge license
6
+ tags:
7
+ - conversational
8
+ ---
9
+ This is not the original model I made, it's google's [Gemma-2-9b-it](https://huggingface.co/google/gemma-2-9b-it) and Quantized by [llama.cpp](https://github.com/ggerganov/llama.cpp).
10
+
11
+ I quantized it with Q5_K_M strategy, your GPU VRAM should be at least 8G in order to garauntee it work perfectly.
12
+
13
+ By running some test on this AWQ model, this model is significantly brilliant.
14
+
15
+ Below is the original model card, hope you guys having fun with it.
16
+
17
+
18
+
19
+
20
+ # Gemma 2 model card
21
+
22
+ **Model Page**: [Gemma](https://ai.google.dev/gemma/docs)
23
+
24
+ **Resources and Technical Documentation**:
25
+
26
+ * [Responsible Generative AI Toolkit][rai-toolkit]
27
+ * [Gemma on Kaggle][kaggle-gemma]
28
+ * [Gemma on Vertex Model Garden][vertex-mg-gemma]
29
+
30
+ **Terms of Use**: [Terms](https://www.kaggle.com/models/google/gemma/license/consent/verify/huggingface?returnModelRepoId=google/gemma-2-9b-it)
31
+
32
+ **Authors**: Google
33
+
34
+ ## Model Information
35
+
36
+ Summary description and brief definition of inputs and outputs.
37
+
38
+ ### Description
39
+
40
+ Gemma is a family of lightweight, state-of-the-art open models from Google,
41
+ built from the same research and technology used to create the Gemini models.
42
+ They are text-to-text, decoder-only large language models, available in English,
43
+ with open weights for both pre-trained variants and instruction-tuned variants.
44
+ Gemma models are well-suited for a variety of text generation tasks, including
45
+ question answering, summarization, and reasoning. Their relatively small size
46
+ makes it possible to deploy them in environments with limited resources such as
47
+ a laptop, desktop or your own cloud infrastructure, democratizing access to
48
+ state of the art AI models and helping foster innovation for everyone.
49
+
50
+ ### Usage
51
+
52
+ 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.
53
+
54
+
55
+ #### Running the model on a single / multi GPU
56
+
57
+
58
+ ```python
59
+ # pip install accelerate
60
+ from transformers import AutoTokenizer, AutoModelForCausalLM
61
+ import torch
62
+
63
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-9b-it")
64
+ model = AutoModelForCausalLM.from_pretrained(
65
+ "google/gemma-2-9b-it",
66
+ device_map="auto",
67
+ torch_dtype=torch.bfloat16
68
+ )
69
+
70
+ input_text = "Write me a poem about Machine Learning."
71
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
72
+
73
+ outputs = model.generate(**input_ids)
74
+ print(tokenizer.decode(outputs[0]))
75
+ ```
76
+
77
+ <a name="precisions"></a>
78
+ #### Running the model on a GPU using different precisions
79
+
80
+ The native weights of this model were exported in `bfloat16` precision.
81
+
82
+ You can also use `float32` if you skip the dtype, but no precision increase will occur (model weights will just be upcasted to `float32`). See examples below.
83
+
84
+ * _Upcasting to `torch.float32`_
85
+
86
+ ```python
87
+ # pip install accelerate
88
+ from transformers import AutoTokenizer, AutoModelForCausalLM
89
+
90
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-9b-it")
91
+ model = AutoModelForCausalLM.from_pretrained(
92
+ "google/gemma-2-9b-it",
93
+ device_map="auto")
94
+
95
+ input_text = "Write me a poem about Machine Learning."
96
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
97
+
98
+ outputs = model.generate(**input_ids)
99
+ print(tokenizer.decode(outputs[0]))
100
+ ```
101
+
102
+ #### Quantized Versions through `bitsandbytes`
103
+
104
+ * _Using 8-bit precision (int8)_
105
+
106
+ ```python
107
+ # pip install bitsandbytes accelerate
108
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
109
+
110
+ quantization_config = BitsAndBytesConfig(load_in_8bit=True)
111
+
112
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-9b-it")
113
+ model = AutoModelForCausalLM.from_pretrained(
114
+ "google/gemma-2-9b-it",
115
+ quantization_config=quantization_config)
116
+
117
+ input_text = "Write me a poem about Machine Learning."
118
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
119
+
120
+ outputs = model.generate(**input_ids)
121
+ print(tokenizer.decode(outputs[0]))
122
+ ```
123
+
124
+ * _Using 4-bit precision_
125
+
126
+ ```python
127
+ # pip install bitsandbytes accelerate
128
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
129
+
130
+ quantization_config = BitsAndBytesConfig(load_in_4bit=True)
131
+
132
+ tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-9b-it")
133
+ model = AutoModelForCausalLM.from_pretrained(
134
+ "google/gemma-2-9b-it",
135
+ quantization_config=quantization_config)
136
+
137
+ input_text = "Write me a poem about Machine Learning."
138
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
139
+
140
+ outputs = model.generate(**input_ids)
141
+ print(tokenizer.decode(outputs[0]))
142
+ ```
143
+
144
+
145
+ #### Other optimizations
146
+
147
+ * _Flash Attention 2_
148
+
149
+ First make sure to install `flash-attn` in your environment `pip install flash-attn`
150
+
151
+ ```diff
152
+ model = AutoModelForCausalLM.from_pretrained(
153
+ model_id,
154
+ torch_dtype=torch.float16,
155
+ + attn_implementation="flash_attention_2"
156
+ ).to(0)
157
+ ```
158
+
159
+ ### Chat Template
160
+
161
+ The instruction-tuned models use a chat template that must be adhered to for conversational use.
162
+ The easiest way to apply it is using the tokenizer's built-in chat template, as shown in the following snippet.
163
+
164
+ Let's load the model and apply the chat template to a conversation. In this example, we'll start with a single user interaction:
165
+
166
+ ```py
167
+ from transformers import AutoTokenizer, AutoModelForCausalLM
168
+ import transformers
169
+ import torch
170
+
171
+ model_id = "google/gemma-2-9b-it"
172
+ dtype = torch.bfloat16
173
+
174
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
175
+ model = AutoModelForCausalLM.from_pretrained(
176
+ model_id,
177
+ device_map="cuda",
178
+ torch_dtype=dtype,)
179
+
180
+ chat = [
181
+ { "role": "user", "content": "Write a hello world program" },
182
+ ]
183
+ prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
184
+ ```
185
+
186
+ At this point, the prompt contains the following text:
187
+
188
+ ```
189
+ <bos><start_of_turn>user
190
+ Write a hello world program<end_of_turn>
191
+ <start_of_turn>model
192
+ ```
193
+
194
+ As you can see, each turn is preceded by a `<start_of_turn>` delimiter and then the role of the entity
195
+ (either `user`, for content supplied by the user, or `model` for LLM responses). Turns finish with
196
+ the `<end_of_turn>` token.
197
+
198
+ You can follow this format to build the prompt manually, if you need to do it without the tokenizer's
199
+ chat template.
200
+
201
+ After the prompt is ready, generation can be performed like this:
202
+
203
+ ```py
204
+ inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
205
+ outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=150)
206
+ print(tokenizer.decode(outputs[0]))
207
+ ```
208
+
209
+ ### Inputs and outputs
210
+
211
+ * **Input:** Text string, such as a question, a prompt, or a document to be
212
+ summarized.
213
+ * **Output:** Generated English-language text in response to the input, such
214
+ as an answer to a question, or a summary of a document.
215
+
216
+ ### Citation
217
+
218
+ ```none
219
+ @article{gemma_2024,
220
+ title={Gemma},
221
+ url={https://www.kaggle.com/m/3301},
222
+ DOI={10.34740/KAGGLE/M/3301},
223
+ publisher={Kaggle},
224
+ author={Gemma Team},
225
+ year={2024}
226
+ }
227
+ ```
228
+
229
+ ## Model Data
230
+
231
+ Data used for model training and how the data was processed.
232
+
233
+ ### Training Dataset
234
+
235
+ These models were trained on a dataset of text data that includes a wide variety of sources. The 27B model was trained with 13 trillion tokens and the 9B model was trained with 8 trillion tokens.
236
+ Here are the key components:
237
+
238
+ * Web Documents: A diverse collection of web text ensures the model is exposed
239
+ to a broad range of linguistic styles, topics, and vocabulary. Primarily
240
+ English-language content.
241
+ * Code: Exposing the model to code helps it to learn the syntax and patterns of
242
+ programming languages, which improves its ability to generate code or
243
+ understand code-related questions.
244
+ * Mathematics: Training on mathematical text helps the model learn logical
245
+ reasoning, symbolic representation, and to address mathematical queries.
246
+
247
+ The combination of these diverse data sources is crucial for training a powerful
248
+ language model that can handle a wide variety of different tasks and text
249
+ formats.
250
+
251
+ ### Data Preprocessing
252
+
253
+ Here are the key data cleaning and filtering methods applied to the training
254
+ data:
255
+
256
+ * CSAM Filtering: Rigorous CSAM (Child Sexual Abuse Material) filtering was
257
+ applied at multiple stages in the data preparation process to ensure the
258
+ exclusion of harmful and illegal content.
259
+ * Sensitive Data Filtering: As part of making Gemma pre-trained models safe and
260
+ reliable, automated techniques were used to filter out certain personal
261
+ information and other sensitive data from training sets.
262
+ * Additional methods: Filtering based on content quality and safety in line with
263
+ [our policies][safety-policies].
264
+
265
+ ## Implementation Information
266
+
267
+ Details about the model internals.
268
+
269
+ ### Hardware
270
+
271
+ Gemma was trained using the latest generation of
272
+ [Tensor Processing Unit (TPU)][tpu] hardware (TPUv5p).
273
+
274
+ Training large language models requires significant computational power. TPUs,
275
+ designed specifically for matrix operations common in machine learning, offer
276
+ several advantages in this domain:
277
+
278
+ * Performance: TPUs are specifically designed to handle the massive computations
279
+ involved in training LLMs. They can speed up training considerably compared to
280
+ CPUs.
281
+ * Memory: TPUs often come with large amounts of high-bandwidth memory, allowing
282
+ for the handling of large models and batch sizes during training. This can
283
+ lead to better model quality.
284
+ * Scalability: TPU Pods (large clusters of TPUs) provide a scalable solution for
285
+ handling the growing complexity of large foundation models. You can distribute
286
+ training across multiple TPU devices for faster and more efficient processing.
287
+ * Cost-effectiveness: In many scenarios, TPUs can provide a more cost-effective
288
+ solution for training large models compared to CPU-based infrastructure,
289
+ especially when considering the time and resources saved due to faster
290
+ training.
291
+ * These advantages are aligned with
292
+ [Google's commitments to operate sustainably][sustainability].
293
+
294
+ ### Software
295
+
296
+ Training was done using [JAX][jax] and [ML Pathways][ml-pathways].
297
+
298
+ JAX allows researchers to take advantage of the latest generation of hardware,
299
+ including TPUs, for faster and more efficient training of large models.
300
+
301
+ ML Pathways is Google's latest effort to build artificially intelligent systems
302
+ capable of generalizing across multiple tasks. This is specially suitable for
303
+ [foundation models][foundation-models], including large language models like
304
+ these ones.
305
+
306
+ Together, JAX and ML Pathways are used as described in the
307
+ [paper about the Gemini family of models][gemini-2-paper]; "the 'single
308
+ controller' programming model of Jax and Pathways allows a single Python
309
+ process to orchestrate the entire training run, dramatically simplifying the
310
+ development workflow."
311
+
312
+ ## Evaluation
313
+
314
+ Model evaluation metrics and results.
315
+
316
+ ### Benchmark Results
317
+
318
+ These models were evaluated against a large collection of different datasets and
319
+ metrics to cover different aspects of text generation:
320
+
321
+ | Benchmark | Metric | Gemma PT 9B | Gemma PT 27B |
322
+ | ------------------------------ | ------------- | ----------- | ------------ |
323
+ | [MMLU][mmlu] | 5-shot, top-1 | 71.3 | 75.2 |
324
+ | [HellaSwag][hellaswag] | 10-shot | 81.9 | 86.4 |
325
+ | [PIQA][piqa] | 0-shot | 81.7 | 83.2 |
326
+ | [SocialIQA][socialiqa] | 0-shot | 53.4 | 53.7 |
327
+ | [BoolQ][boolq] | 0-shot | 84.2 | 84.8 |
328
+ | [WinoGrande][winogrande] | partial score | 80.6 | 83.7 |
329
+ | [ARC-e][arc] | 0-shot | 88.0 | 88.6 |
330
+ | [ARC-c][arc] | 25-shot | 68.4 | 71.4 |
331
+ | [TriviaQA][triviaqa] | 5-shot | 76.6 | 83.7 |
332
+ | [Natural Questions][naturalq] | 5-shot | 29.2 | 34.5 |
333
+ | [HumanEval][humaneval] | pass@1 | 40.2 | 51.8 |
334
+ | [MBPP][mbpp] | 3-shot | 52.4 | 62.6 |
335
+ | [GSM8K][gsm8k] | 5-shot, maj@1 | 68.6 | 74.0 |
336
+ | [MATH][math] | 4-shot | 36.6 | 42.3 |
337
+ | [AGIEval][agieval] | 3-5-shot | 52.8 | 55.1 |
338
+ | [BIG-Bench][big-bench] | 3-shot, CoT | 68.2 | 74.9 |
339
+ | ------------------------------ | ------------- | ----------- | ------------ |
340
+
341
+ ## Ethics and Safety
342
+
343
+ Ethics and safety evaluation approach and results.
344
+
345
+ ### Evaluation Approach
346
+
347
+ Our evaluation methods include structured evaluations and internal red-teaming
348
+ testing of relevant content policies. Red-teaming was conducted by a number of
349
+ different teams, each with different goals and human evaluation metrics. These
350
+ models were evaluated against a number of different categories relevant to
351
+ ethics and safety, including:
352
+
353
+ * Text-to-Text Content Safety: Human evaluation on prompts covering safety
354
+ policies including child sexual abuse and exploitation, harassment, violence
355
+ and gore, and hate speech.
356
+ * Text-to-Text Representational Harms: Benchmark against relevant academic
357
+ datasets such as [WinoBias][winobias] and [BBQ Dataset][bbq].
358
+ * Memorization: Automated evaluation of memorization of training data, including
359
+ the risk of personally identifiable information exposure.
360
+ * Large-scale harm: Tests for "dangerous capabilities," such as chemical,
361
+ biological, radiological, and nuclear (CBRN) risks.
362
+
363
+ ### Evaluation Results
364
+
365
+ The results of ethics and safety evaluations are within acceptable thresholds
366
+ for meeting [internal policies][safety-policies] for categories such as child
367
+ safety, content safety, representational harms, memorization, large-scale harms.
368
+ On top of robust internal evaluations, the results of well-known safety
369
+ benchmarks like BBQ, BOLD, Winogender, Winobias, RealToxicity, and TruthfulQA
370
+ are shown here.
371
+
372
+ #### Gemma 2.0
373
+
374
+ | Benchmark | Metric | Gemma 2 IT 9B | Gemma 2 IT 27B |
375
+ | ------------------------ | ------------- | --------------- | ---------------- |
376
+ | [RealToxicity][realtox] | average | 8.25 | 8.84 |
377
+ | [CrowS-Pairs][crows] | top-1 | 37.47 | 36.67 |
378
+ | [BBQ Ambig][bbq] | 1-shot, top-1 | 88.58 | 85.99 |
379
+ | [BBQ Disambig][bbq] | top-1 | 82.67 | 86.94 |
380
+ | [Winogender][winogender] | top-1 | 79.17 | 77.22 |
381
+ | [TruthfulQA][truthfulqa] | | 50.27 | 51.60 |
382
+ | [Winobias 1_2][winobias] | | 78.09 | 81.94 |
383
+ | [Winobias 2_2][winobias] | | 95.32 | 97.22 |
384
+ | [Toxigen][toxigen] | | 39.30 | 38.42 |
385
+ | ------------------------ | ------------- | --------------- | ---------------- |
386
+
387
+ ## Usage and Limitations
388
+
389
+ These models have certain limitations that users should be aware of.
390
+
391
+ ### Intended Usage
392
+
393
+ Open Large Language Models (LLMs) have a wide range of applications across
394
+ various industries and domains. The following list of potential uses is not
395
+ comprehensive. The purpose of this list is to provide contextual information
396
+ about the possible use-cases that the model creators considered as part of model
397
+ training and development.
398
+
399
+ * Content Creation and Communication
400
+ * Text Generation: These models can be used to generate creative text formats
401
+ such as poems, scripts, code, marketing copy, and email drafts.
402
+ * Chatbots and Conversational AI: Power conversational interfaces for customer
403
+ service, virtual assistants, or interactive applications.
404
+ * Text Summarization: Generate concise summaries of a text corpus, research
405
+ papers, or reports.
406
+ * Research and Education
407
+ * Natural Language Processing (NLP) Research: These models can serve as a
408
+ foundation for researchers to experiment with NLP techniques, develop
409
+ algorithms, and contribute to the advancement of the field.
410
+ * Language Learning Tools: Support interactive language learning experiences,
411
+ aiding in grammar correction or providing writing practice.
412
+ * Knowledge Exploration: Assist researchers in exploring large bodies of text
413
+ by generating summaries or answering questions about specific topics.
414
+
415
+ ### Limitations
416
+
417
+ * Training Data
418
+ * The quality and diversity of the training data significantly influence the
419
+ model's capabilities. Biases or gaps in the training data can lead to
420
+ limitations in the model's responses.
421
+ * The scope of the training dataset determines the subject areas the model can
422
+ handle effectively.
423
+ * Context and Task Complexity
424
+ * LLMs are better at tasks that can be framed with clear prompts and
425
+ instructions. Open-ended or highly complex tasks might be challenging.
426
+ * A model's performance can be influenced by the amount of context provided
427
+ (longer context generally leads to better outputs, up to a certain point).
428
+ * Language Ambiguity and Nuance
429
+ * Natural language is inherently complex. LLMs might struggle to grasp subtle
430
+ nuances, sarcasm, or figurative language.
431
+ * Factual Accuracy
432
+ * LLMs generate responses based on information they learned from their
433
+ training datasets, but they are not knowledge bases. They may generate
434
+ incorrect or outdated factual statements.
435
+ * Common Sense
436
+ * LLMs rely on statistical patterns in language. They might lack the ability
437
+ to apply common sense reasoning in certain situations.
438
+
439
+ ### Ethical Considerations and Risks
440
+
441
+ The development of large language models (LLMs) raises several ethical concerns.
442
+ In creating an open model, we have carefully considered the following:
443
+
444
+ * Bias and Fairness
445
+ * LLMs trained on large-scale, real-world text data can reflect socio-cultural
446
+ biases embedded in the training material. These models underwent careful
447
+ scrutiny, input data pre-processing described and posterior evaluations
448
+ reported in this card.
449
+ * Misinformation and Misuse
450
+ * LLMs can be misused to generate text that is false, misleading, or harmful.
451
+ * Guidelines are provided for responsible use with the model, see the
452
+ [Responsible Generative AI Toolkit][rai-toolkit].
453
+ * Transparency and Accountability:
454
+ * This model card summarizes details on the models' architecture,
455
+ capabilities, limitations, and evaluation processes.
456
+ * A responsibly developed open model offers the opportunity to share
457
+ innovation by making LLM technology accessible to developers and researchers
458
+ across the AI ecosystem.
459
+
460
+ Risks identified and mitigations:
461
+
462
+ * Perpetuation of biases: It's encouraged to perform continuous monitoring
463
+ (using evaluation metrics, human review) and the exploration of de-biasing
464
+ techniques during model training, fine-tuning, and other use cases.
465
+ * Generation of harmful content: Mechanisms and guidelines for content safety
466
+ are essential. Developers are encouraged to exercise caution and implement
467
+ appropriate content safety safeguards based on their specific product policies
468
+ and application use cases.
469
+ * Misuse for malicious purposes: Technical limitations and developer and
470
+ end-user education can help mitigate against malicious applications of LLMs.
471
+ Educational resources and reporting mechanisms for users to flag misuse are
472
+ provided. Prohibited uses of Gemma models are outlined in the
473
+ [Gemma Prohibited Use Policy][prohibited-use].
474
+ * Privacy violations: Models were trained on data filtered for removal of PII
475
+ (Personally Identifiable Information). Developers are encouraged to adhere to
476
+ privacy regulations with privacy-preserving techniques.
477
+
478
+ ### Benefits
479
+
480
+ At the time of release, this family of models provides high-performance open
481
+ large language model implementations designed from the ground up for Responsible
482
+ AI development compared to similarly sized models.
483
+
484
+ Using the benchmark evaluation metrics described in this document, these models
485
+ have shown to provide superior performance to other, comparably-sized open model
486
+ alternatives.
487
+
488
+ [rai-toolkit]: https://ai.google.dev/responsible
489
+ [kaggle-gemma]: https://www.kaggle.com/models/google/gemma-2
490
+ [terms]: https://ai.google.dev/gemma/terms
491
+ [vertex-mg-gemma]: https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/335
492
+ [sensitive-info]: https://cloud.google.com/dlp/docs/high-sensitivity-infotypes-reference
493
+ [safety-policies]: https://storage.googleapis.com/gweb-uniblog-publish-prod/documents/2023_Google_AI_Principles_Progress_Update.pdf#page=11
494
+ [prohibited-use]: https://ai.google.dev/gemma/prohibited_use_policy
495
+ [tpu]: https://cloud.google.com/tpu/docs/intro-to-tpu
496
+ [sustainability]: https://sustainability.google/operating-sustainably/
497
+ [jax]: https://github.com/google/jax
498
+ [ml-pathways]: https://blog.google/technology/ai/introducing-pathways-next-generation-ai-architecture/
499
+ [sustainability]: https://sustainability.google/operating-sustainably/
500
+ [foundation-models]: https://ai.google/discover/foundation-models/
501
+ [gemini-2-paper]: https://goo.gle/gemma2report
502
+ [mmlu]: https://arxiv.org/abs/2009.03300
503
+ [hellaswag]: https://arxiv.org/abs/1905.07830
504
+ [piqa]: https://arxiv.org/abs/1911.11641
505
+ [socialiqa]: https://arxiv.org/abs/1904.09728
506
+ [boolq]: https://arxiv.org/abs/1905.10044
507
+ [winogrande]: https://arxiv.org/abs/1907.10641
508
+ [commonsenseqa]: https://arxiv.org/abs/1811.00937
509
+ [openbookqa]: https://arxiv.org/abs/1809.02789
510
+ [arc]: https://arxiv.org/abs/1911.01547
511
+ [triviaqa]: https://arxiv.org/abs/1705.03551
512
+ [naturalq]: https://github.com/google-research-datasets/natural-questions
513
+ [humaneval]: https://arxiv.org/abs/2107.03374
514
+ [mbpp]: https://arxiv.org/abs/2108.07732
515
+ [gsm8k]: https://arxiv.org/abs/2110.14168
516
+ [realtox]: https://arxiv.org/abs/2009.11462
517
+ [bold]: https://arxiv.org/abs/2101.11718
518
+ [crows]: https://aclanthology.org/2020.emnlp-main.154/
519
+ [bbq]: https://arxiv.org/abs/2110.08193v2
520
+ [winogender]: https://arxiv.org/abs/1804.09301
521
+ [truthfulqa]: https://arxiv.org/abs/2109.07958
522
+ [winobias]: https://arxiv.org/abs/1804.06876
523
+ [math]: https://arxiv.org/abs/2103.03874
524
+ [agieval]: https://arxiv.org/abs/2304.06364
525
+ [big-bench]: https://arxiv.org/abs/2206.04615
526
+ [toxigen]: https://arxiv.org/abs/2203.09509