fsaudm commited on
Commit
f37de11
1 Parent(s): d58e416

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1047 -103
README.md CHANGED
@@ -1,11 +1,26 @@
1
  ---
 
 
 
 
 
 
 
 
 
2
  library_name: transformers
3
- tags: []
 
 
 
 
 
4
  ---
5
 
6
  # Model Card for Model ID
7
 
8
  <!-- Provide a quick summary of what the model is/does. -->
 
9
 
10
 
11
 
@@ -17,183 +32,1112 @@ tags: []
17
 
18
  This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
 
20
- - **Developed by:** [More Information Needed]
21
- - **Funded by [optional]:** [More Information Needed]
22
- - **Shared by [optional]:** [More Information Needed]
23
- - **Model type:** [More Information Needed]
24
- - **Language(s) (NLP):** [More Information Needed]
25
- - **License:** [More Information Needed]
26
- - **Finetuned from model [optional]:** [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
- ### Model Sources [optional]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
- <!-- Provide the basic links for the model. -->
 
 
 
31
 
32
- - **Repository:** [More Information Needed]
33
- - **Paper [optional]:** [More Information Needed]
34
- - **Demo [optional]:** [More Information Needed]
 
 
 
35
 
36
- ## Uses
37
 
38
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
 
40
- ### Direct Use
 
41
 
42
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
 
 
 
 
 
 
 
 
 
 
 
43
 
44
- [More Information Needed]
 
 
 
 
45
 
46
- ### Downstream Use [optional]
 
47
 
48
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
 
50
- [More Information Needed]
 
 
 
51
 
52
- ### Out-of-Scope Use
53
 
54
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
 
 
55
 
56
- [More Information Needed]
 
57
 
58
- ## Bias, Risks, and Limitations
59
 
60
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
 
62
- [More Information Needed]
63
 
64
- ### Recommendations
65
 
66
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
 
 
69
 
70
- ## How to Get Started with the Model
71
 
72
- Use the code below to get started with the model.
73
 
74
- [More Information Needed]
75
 
76
- ## Training Details
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
- ### Training Data
79
 
80
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
 
82
- [More Information Needed]
83
 
84
- ### Training Procedure
85
 
86
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
 
88
- #### Preprocessing [optional]
89
 
90
- [More Information Needed]
 
 
91
 
92
 
93
- #### Training Hyperparameters
94
 
95
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
 
97
- #### Speeds, Sizes, Times [optional]
98
 
99
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
 
101
- [More Information Needed]
102
 
103
- ## Evaluation
104
 
105
- <!-- This section describes the evaluation protocols and provides the results. -->
106
 
107
- ### Testing Data, Factors & Metrics
108
 
109
- #### Testing Data
110
 
111
- <!-- This should link to a Dataset Card if possible. -->
112
 
113
- [More Information Needed]
114
 
115
- #### Factors
116
 
117
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
 
119
- [More Information Needed]
120
 
121
- #### Metrics
122
 
123
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
 
125
- [More Information Needed]
126
 
127
- ### Results
128
 
129
- [More Information Needed]
130
 
131
- #### Summary
132
 
 
133
 
 
134
 
135
- ## Model Examination [optional]
136
 
137
- <!-- Relevant interpretability work for the model goes here -->
138
 
139
- [More Information Needed]
140
 
141
- ## Environmental Impact
142
 
143
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
 
145
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
 
147
- - **Hardware Type:** [More Information Needed]
148
- - **Hours used:** [More Information Needed]
149
- - **Cloud Provider:** [More Information Needed]
150
- - **Compute Region:** [More Information Needed]
151
- - **Carbon Emitted:** [More Information Needed]
152
 
153
- ## Technical Specifications [optional]
154
 
155
- ### Model Architecture and Objective
156
 
157
- [More Information Needed]
158
 
159
- ### Compute Infrastructure
160
 
161
- [More Information Needed]
162
 
163
- #### Hardware
164
 
165
- [More Information Needed]
166
 
167
- #### Software
168
 
169
- [More Information Needed]
170
 
171
- ## Citation [optional]
172
 
173
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
 
175
- **BibTeX:**
176
 
177
- [More Information Needed]
178
 
179
- **APA:**
180
 
181
- [More Information Needed]
182
 
183
- ## Glossary [optional]
184
 
185
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
-
187
- [More Information Needed]
188
-
189
- ## More Information [optional]
190
-
191
- [More Information Needed]
192
-
193
- ## Model Card Authors [optional]
194
-
195
- [More Information Needed]
196
-
197
- ## Model Card Contact
198
-
199
- [More Information Needed]
 
1
  ---
2
+ language:
3
+ - en
4
+ - de
5
+ - fr
6
+ - it
7
+ - pt
8
+ - hi
9
+ - es
10
+ - th
11
  library_name: transformers
12
+ tags:
13
+ - facebook
14
+ - meta
15
+ - pytorch
16
+ - llama
17
+ - llama-3
18
  ---
19
 
20
  # Model Card for Model ID
21
 
22
  <!-- Provide a quick summary of what the model is/does. -->
23
+ This is a quantized version of `Llama 3.1 70B Instruct`. Quantization to 8-bit using `bistandbytes` and `accelerate`.
24
 
25
 
26
 
 
32
 
33
  This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
34
 
35
+ - **Developed by:** Farid Saud
36
+ - **Funded by:** DSRS
37
+ - **Shared by:** Farid Saud
38
+ - **Model type:** Llama-3.1-70B
39
+ - **Language(s) (NLP):** Same as Llama 3.1
40
+ - **License:** llama3.1
41
+
42
+
43
+ # Original Details
44
+ Extacted from the original model's model card.
45
+
46
+
47
+ ## Model Information
48
+
49
+ The Meta Llama 3.1 collection of multilingual large language models (LLMs) is a collection of pretrained and instruction tuned generative models in 8B, 70B and 405B sizes (text in/text out). The Llama 3.1 instruction tuned text only models (8B, 70B, 405B) are optimized for multilingual dialogue use cases and outperform many of the available open source and closed chat models on common industry benchmarks.
50
+
51
+ **Model developer**: Meta
52
+
53
+ **Model Architecture:** Llama 3.1 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align with human preferences for helpfulness and safety.
54
+
55
+
56
+ <table>
57
+ <tr>
58
+ <td>
59
+ </td>
60
+ <td><strong>Training Data</strong>
61
+ </td>
62
+ <td><strong>Params</strong>
63
+ </td>
64
+ <td><strong>Input modalities</strong>
65
+ </td>
66
+ <td><strong>Output modalities</strong>
67
+ </td>
68
+ <td><strong>Context length</strong>
69
+ </td>
70
+ <td><strong>GQA</strong>
71
+ </td>
72
+ <td><strong>Token count</strong>
73
+ </td>
74
+ <td><strong>Knowledge cutoff</strong>
75
+ </td>
76
+ </tr>
77
+ <tr>
78
+ <td rowspan="3" >Llama 3.1 (text only)
79
+ </td>
80
+ <td rowspan="3" >A new mix of publicly available online data.
81
+ </td>
82
+ <td>8B
83
+ </td>
84
+ <td>Multilingual Text
85
+ </td>
86
+ <td>Multilingual Text and code
87
+ </td>
88
+ <td>128k
89
+ </td>
90
+ <td>Yes
91
+ </td>
92
+ <td rowspan="3" >15T+
93
+ </td>
94
+ <td rowspan="3" >December 2023
95
+ </td>
96
+ </tr>
97
+ <tr>
98
+ <td>70B
99
+ </td>
100
+ <td>Multilingual Text
101
+ </td>
102
+ <td>Multilingual Text and code
103
+ </td>
104
+ <td>128k
105
+ </td>
106
+ <td>Yes
107
+ </td>
108
+ </tr>
109
+ <tr>
110
+ <td>405B
111
+ </td>
112
+ <td>Multilingual Text
113
+ </td>
114
+ <td>Multilingual Text and code
115
+ </td>
116
+ <td>128k
117
+ </td>
118
+ <td>Yes
119
+ </td>
120
+ </tr>
121
+ </table>
122
+
123
+
124
+ **Supported languages:** English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai.
125
+
126
+ **Llama 3.1 family of models**. Token counts refer to pretraining data only. All model versions use Grouped-Query Attention (GQA) for improved inference scalability.
127
+
128
+ **Model Release Date:** July 23, 2024.
129
+
130
+ **Status:** This is a static model trained on an offline dataset. Future versions of the tuned models will be released as we improve model safety with community feedback.
131
+
132
+ **License:** A custom commercial license, the Llama 3.1 Community License, is available at: [https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE](https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE)
133
+
134
+ Where to send questions or comments about the model Instructions on how to provide feedback or comments on the model can be found in the model [README](https://github.com/meta-llama/llama3). For more technical information about generation parameters and recipes for how to use Llama 3.1 in applications, please go [here](https://github.com/meta-llama/llama-recipes).
135
+
136
+
137
+ ## Intended Use
138
+
139
+ **Intended Use Cases** Llama 3.1 is intended for commercial and research use in multiple languages. Instruction tuned text only models are intended for assistant-like chat, whereas pretrained models can be adapted for a variety of natural language generation tasks. The Llama 3.1 model collection also supports the ability to leverage the outputs of its models to improve other models including synthetic data generation and distillation. The Llama 3.1 Community License allows for these use cases.
140
 
141
+ **Out-of-scope** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in any other way that is prohibited by the Acceptable Use Policy and Llama 3.1 Community License. Use in languages beyond those explicitly referenced as supported in this model card**.
142
+
143
+ **<span style="text-decoration:underline;">Note</span>: Llama 3.1 has been trained on a broader collection of languages than the 8 supported languages. Developers may fine-tune Llama 3.1 models for languages beyond the 8 supported languages provided they comply with the Llama 3.1 Community License and the Acceptable Use Policy and in such cases are responsible for ensuring that any uses of Llama 3.1 in additional languages is done in a safe and responsible manner.
144
+
145
+ ## How to use
146
+
147
+ This repository contains two versions of Meta-Llama-3.1-70B-Instruct, for use with transformers and with the original `llama` codebase.
148
+
149
+ ### Use with transformers
150
+
151
+ Starting with `transformers >= 4.43.0` onward, you can run conversational inference using the Transformers `pipeline` abstraction or by leveraging the Auto classes with the `generate()` function.
152
+
153
+ Make sure to update your transformers installation via `pip install --upgrade transformers`.
154
+
155
+ See the snippet below for usage with Transformers:
156
+
157
+ ```python
158
+ import transformers
159
+ import torch
160
+
161
+ model_id = "meta-llama/Meta-Llama-3.1-70B-Instruct"
162
+
163
+ pipeline = transformers.pipeline(
164
+ "text-generation",
165
+ model=model_id,
166
+ model_kwargs={"torch_dtype": torch.bfloat16},
167
+ device_map="auto",
168
+ )
169
 
170
+ messages = [
171
+ {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
172
+ {"role": "user", "content": "Who are you?"},
173
+ ]
174
 
175
+ outputs = pipeline(
176
+ messages,
177
+ max_new_tokens=256,
178
+ )
179
+ print(outputs[0]["generated_text"][-1])
180
+ ```
181
 
182
+ ### Tool use with transformers
183
 
184
+ LLaMA-3.1 supports multiple tool use formats. You can see a full guide to prompt formatting [here](https://llama.meta.com/docs/model-cards-and-prompt-formats/llama3_1/).
185
 
186
+ Tool use is also supported through [chat templates](https://huggingface.co/docs/transformers/main/chat_templating#advanced-tool-use--function-calling) in Transformers.
187
+ Here is a quick example showing a single simple tool:
188
 
189
+ ```python
190
+ # First, define a tool
191
+ def get_current_temperature(location: str) -> float:
192
+ """
193
+ Get the current temperature at a location.
194
+
195
+ Args:
196
+ location: The location to get the temperature for, in the format "City, Country"
197
+ Returns:
198
+ The current temperature at the specified location in the specified units, as a float.
199
+ """
200
+ return 22. # A real function should probably actually get the temperature!
201
 
202
+ # Next, create a chat and apply the chat template
203
+ messages = [
204
+ {"role": "system", "content": "You are a bot that responds to weather queries."},
205
+ {"role": "user", "content": "Hey, what's the temperature in Paris right now?"}
206
+ ]
207
 
208
+ inputs = tokenizer.apply_chat_template(messages, tools=[get_current_temperature], add_generation_prompt=True)
209
+ ```
210
 
211
+ You can then generate text from this input as normal. If the model generates a tool call, you should add it to the chat like so:
212
 
213
+ ```python
214
+ tool_call = {"name": "get_current_temperature", "arguments": {"location": "Paris, France"}}
215
+ messages.append({"role": "assistant", "tool_calls": [{"type": "function", "function": tool_call}]})
216
+ ```
217
 
218
+ and then call the tool and append the result, with the `tool` role, like so:
219
 
220
+ ```python
221
+ messages.append({"role": "tool", "name": "get_current_temperature", "content": "22.0"})
222
+ ```
223
 
224
+ After that, you can `generate()` again to let the model use the tool result in the chat. Note that this was a very brief introduction to tool calling - for more information,
225
+ see the [LLaMA prompt format docs](https://llama.meta.com/docs/model-cards-and-prompt-formats/llama3_1/) and the Transformers [tool use documentation](https://huggingface.co/docs/transformers/main/chat_templating#advanced-tool-use--function-calling).
226
 
 
227
 
228
+ ### Use with `bitsandbytes`
229
 
230
+ The model checkpoints can be used in `8-bit` and `4-bit` for further memory optimisations using `bitsandbytes` and `transformers`
231
 
232
+ See the snippet below for usage:
233
 
234
+ ```python
235
+ import torch
236
+ from transformers import AutoModelForCausalLM, AutoTokenizer
237
+
238
+ model_id = "meta-llama/Meta-Llama-3.1-70B-Instruct"
239
+ quantization_config = BitsAndBytesConfig(load_in_8bit=True)
240
+
241
+ quantized_model = AutoModelForCausalLM.from_pretrained(
242
+ model_id, device_map="auto", torch_dtype=torch.bfloat16, quantization_config=quantization_config)
243
+
244
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
245
+ input_text = "What are we having for dinner?"
246
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
247
+
248
+ output = quantized_model.generate(**input_ids, max_new_tokens=10)
249
+
250
+ print(tokenizer.decode(output[0], skip_special_tokens=True))
251
+ ```
252
+
253
+ To load in 4-bit simply pass `load_in_4bit=True`
254
+
255
+ ### Use with `llama`
256
+
257
+ Please, follow the instructions in the [repository](https://github.com/meta-llama/llama).
258
+
259
+ To download Original checkpoints, see the example command below leveraging `huggingface-cli`:
260
 
261
+ ```
262
+ huggingface-cli download meta-llama/Meta-Llama-3.1-70B-Instruct --include "original/*" --local-dir Meta-Llama-3.1-70B-Instruct
263
+ ```
264
 
 
265
 
266
+ ## Hardware and Software
267
 
268
+ **Training Factors** We used custom training libraries, Meta's custom built GPU cluster, and production infrastructure for pretraining. Fine-tuning, annotation, and evaluation were also performed on production infrastructure.
269
 
270
+ **Training utilized a cumulative of** 39.3M GPU hours of computation on H100-80GB (TDP of 700W) type hardware, per the table below. Training time is the total GPU time required for training each model and power consumption is the peak power capacity per GPU device used, adjusted for power usage efficiency.
271
+
272
+
273
+ **Training Greenhouse Gas Emissions** Estimated total location-based greenhouse gas emissions were **11,390** tons CO2eq for training. Since 2020, Meta has maintained net zero greenhouse gas emissions in its global operations and matched 100% of its electricity use with renewable energy, therefore the total market-based greenhouse gas emissions for training were 0 tons CO2eq.
274
+
275
+
276
+ <table>
277
+ <tr>
278
+ <td>
279
+ </td>
280
+ <td><strong>Training Time (GPU hours)</strong>
281
+ </td>
282
+ <td><strong>Training Power Consumption (W)</strong>
283
+ </td>
284
+ <td><strong>Training Location-Based Greenhouse Gas Emissions</strong>
285
+ <p>
286
+ <strong>(tons CO2eq)</strong>
287
+ </td>
288
+ <td><strong>Training Market-Based Greenhouse Gas Emissions</strong>
289
+ <p>
290
+ <strong>(tons CO2eq)</strong>
291
+ </td>
292
+ </tr>
293
+ <tr>
294
+ <td>Llama 3.1 8B
295
+ </td>
296
+ <td>1.46M
297
+ </td>
298
+ <td>700
299
+ </td>
300
+ <td>420
301
+ </td>
302
+ <td>0
303
+ </td>
304
+ </tr>
305
+ <tr>
306
+ <td>Llama 3.1 70B
307
+ </td>
308
+ <td>7.0M
309
+ </td>
310
+ <td>700
311
+ </td>
312
+ <td>2,040
313
+ </td>
314
+ <td>0
315
+ </td>
316
+ </tr>
317
+ <tr>
318
+ <td>Llama 3.1 405B
319
+ </td>
320
+ <td>30.84M
321
+ </td>
322
+ <td>700
323
+ </td>
324
+ <td>8,930
325
+ </td>
326
+ <td>0
327
+ </td>
328
+ </tr>
329
+ <tr>
330
+ <td>Total
331
+ </td>
332
+ <td>39.3M
333
+ <td>
334
+ <ul>
335
+
336
+ </ul>
337
+ </td>
338
+ <td>11,390
339
+ </td>
340
+ <td>0
341
+ </td>
342
+ </tr>
343
+ </table>
344
+
345
+
346
+
347
+ The methodology used to determine training energy use and greenhouse gas emissions can be found [here](https://arxiv.org/pdf/2204.05149). Since Meta is openly releasing these models, the training energy use and greenhouse gas emissions will not be incurred by others.
348
+
349
+
350
+ ## Training Data
351
+
352
+ **Overview:** Llama 3.1 was pretrained on ~15 trillion tokens of data from publicly available sources. The fine-tuning data includes publicly available instruction datasets, as well as over 25M synthetically generated examples.
353
+
354
+ **Data Freshness:** The pretraining data has a cutoff of December 2023.
355
+
356
+
357
+ ## Benchmark scores
358
+
359
+ In this section, we report the results for Llama 3.1 models on standard automatic benchmarks. For all the evaluations, we use our internal evaluations library.
360
+
361
+ ### Base pretrained models
362
+
363
+
364
+ <table>
365
+ <tr>
366
+ <td><strong>Category</strong>
367
+ </td>
368
+ <td><strong>Benchmark</strong>
369
+ </td>
370
+ <td><strong># Shots</strong>
371
+ </td>
372
+ <td><strong>Metric</strong>
373
+ </td>
374
+ <td><strong>Llama 3 8B</strong>
375
+ </td>
376
+ <td><strong>Llama 3.1 8B</strong>
377
+ </td>
378
+ <td><strong>Llama 3 70B</strong>
379
+ </td>
380
+ <td><strong>Llama 3.1 70B</strong>
381
+ </td>
382
+ <td><strong>Llama 3.1 405B</strong>
383
+ </td>
384
+ </tr>
385
+ <tr>
386
+ <td rowspan="7" >General
387
+ </td>
388
+ <td>MMLU
389
+ </td>
390
+ <td>5
391
+ </td>
392
+ <td>macro_avg/acc_char
393
+ </td>
394
+ <td>66.7
395
+ </td>
396
+ <td>66.7
397
+ </td>
398
+ <td>79.5
399
+ </td>
400
+ <td>79.3
401
+ </td>
402
+ <td>85.2
403
+ </td>
404
+ </tr>
405
+ <tr>
406
+ <td>MMLU-Pro (CoT)
407
+ </td>
408
+ <td>5
409
+ </td>
410
+ <td>macro_avg/acc_char
411
+ </td>
412
+ <td>36.2
413
+ </td>
414
+ <td>37.1
415
+ </td>
416
+ <td>55.0
417
+ </td>
418
+ <td>53.8
419
+ </td>
420
+ <td>61.6
421
+ </td>
422
+ </tr>
423
+ <tr>
424
+ <td>AGIEval English
425
+ </td>
426
+ <td>3-5
427
+ </td>
428
+ <td>average/acc_char
429
+ </td>
430
+ <td>47.1
431
+ </td>
432
+ <td>47.8
433
+ </td>
434
+ <td>63.0
435
+ </td>
436
+ <td>64.6
437
+ </td>
438
+ <td>71.6
439
+ </td>
440
+ </tr>
441
+ <tr>
442
+ <td>CommonSenseQA
443
+ </td>
444
+ <td>7
445
+ </td>
446
+ <td>acc_char
447
+ </td>
448
+ <td>72.6
449
+ </td>
450
+ <td>75.0
451
+ </td>
452
+ <td>83.8
453
+ </td>
454
+ <td>84.1
455
+ </td>
456
+ <td>85.8
457
+ </td>
458
+ </tr>
459
+ <tr>
460
+ <td>Winogrande
461
+ </td>
462
+ <td>5
463
+ </td>
464
+ <td>acc_char
465
+ </td>
466
+ <td>-
467
+ </td>
468
+ <td>60.5
469
+ </td>
470
+ <td>-
471
+ </td>
472
+ <td>83.3
473
+ </td>
474
+ <td>86.7
475
+ </td>
476
+ </tr>
477
+ <tr>
478
+ <td>BIG-Bench Hard (CoT)
479
+ </td>
480
+ <td>3
481
+ </td>
482
+ <td>average/em
483
+ </td>
484
+ <td>61.1
485
+ </td>
486
+ <td>64.2
487
+ </td>
488
+ <td>81.3
489
+ </td>
490
+ <td>81.6
491
+ </td>
492
+ <td>85.9
493
+ </td>
494
+ </tr>
495
+ <tr>
496
+ <td>ARC-Challenge
497
+ </td>
498
+ <td>25
499
+ </td>
500
+ <td>acc_char
501
+ </td>
502
+ <td>79.4
503
+ </td>
504
+ <td>79.7
505
+ </td>
506
+ <td>93.1
507
+ </td>
508
+ <td>92.9
509
+ </td>
510
+ <td>96.1
511
+ </td>
512
+ </tr>
513
+ <tr>
514
+ <td>Knowledge reasoning
515
+ </td>
516
+ <td>TriviaQA-Wiki
517
+ </td>
518
+ <td>5
519
+ </td>
520
+ <td>em
521
+ </td>
522
+ <td>78.5
523
+ </td>
524
+ <td>77.6
525
+ </td>
526
+ <td>89.7
527
+ </td>
528
+ <td>89.8
529
+ </td>
530
+ <td>91.8
531
+ </td>
532
+ </tr>
533
+ <tr>
534
+ <td rowspan="4" >Reading comprehension
535
+ </td>
536
+ <td>SQuAD
537
+ </td>
538
+ <td>1
539
+ </td>
540
+ <td>em
541
+ </td>
542
+ <td>76.4
543
+ </td>
544
+ <td>77.0
545
+ </td>
546
+ <td>85.6
547
+ </td>
548
+ <td>81.8
549
+ </td>
550
+ <td>89.3
551
+ </td>
552
+ </tr>
553
+ <tr>
554
+ <td>QuAC (F1)
555
+ </td>
556
+ <td>1
557
+ </td>
558
+ <td>f1
559
+ </td>
560
+ <td>44.4
561
+ </td>
562
+ <td>44.9
563
+ </td>
564
+ <td>51.1
565
+ </td>
566
+ <td>51.1
567
+ </td>
568
+ <td>53.6
569
+ </td>
570
+ </tr>
571
+ <tr>
572
+ <td>BoolQ
573
+ </td>
574
+ <td>0
575
+ </td>
576
+ <td>acc_char
577
+ </td>
578
+ <td>75.7
579
+ </td>
580
+ <td>75.0
581
+ </td>
582
+ <td>79.0
583
+ </td>
584
+ <td>79.4
585
+ </td>
586
+ <td>80.0
587
+ </td>
588
+ </tr>
589
+ <tr>
590
+ <td>DROP (F1)
591
+ </td>
592
+ <td>3
593
+ </td>
594
+ <td>f1
595
+ </td>
596
+ <td>58.4
597
+ </td>
598
+ <td>59.5
599
+ </td>
600
+ <td>79.7
601
+ </td>
602
+ <td>79.6
603
+ </td>
604
+ <td>84.8
605
+ </td>
606
+ </tr>
607
+ </table>
608
+
609
+
610
+
611
+ ### Instruction tuned models
612
+
613
+
614
+ <table>
615
+ <tr>
616
+ <td><strong>Category</strong>
617
+ </td>
618
+ <td><strong>Benchmark</strong>
619
+ </td>
620
+ <td><strong># Shots</strong>
621
+ </td>
622
+ <td><strong>Metric</strong>
623
+ </td>
624
+ <td><strong>Llama 3 8B Instruct</strong>
625
+ </td>
626
+ <td><strong>Llama 3.1 8B Instruct</strong>
627
+ </td>
628
+ <td><strong>Llama 3 70B Instruct</strong>
629
+ </td>
630
+ <td><strong>Llama 3.1 70B Instruct</strong>
631
+ </td>
632
+ <td><strong>Llama 3.1 405B Instruct</strong>
633
+ </td>
634
+ </tr>
635
+ <tr>
636
+ <td rowspan="4" >General
637
+ </td>
638
+ <td>MMLU
639
+ </td>
640
+ <td>5
641
+ </td>
642
+ <td>macro_avg/acc
643
+ </td>
644
+ <td>68.5
645
+ </td>
646
+ <td>69.4
647
+ </td>
648
+ <td>82.0
649
+ </td>
650
+ <td>83.6
651
+ </td>
652
+ <td>87.3
653
+ </td>
654
+ </tr>
655
+ <tr>
656
+ <td>MMLU (CoT)
657
+ </td>
658
+ <td>0
659
+ </td>
660
+ <td>macro_avg/acc
661
+ </td>
662
+ <td>65.3
663
+ </td>
664
+ <td>73.0
665
+ </td>
666
+ <td>80.9
667
+ </td>
668
+ <td>86.0
669
+ </td>
670
+ <td>88.6
671
+ </td>
672
+ </tr>
673
+ <tr>
674
+ <td>MMLU-Pro (CoT)
675
+ </td>
676
+ <td>5
677
+ </td>
678
+ <td>micro_avg/acc_char
679
+ </td>
680
+ <td>45.5
681
+ </td>
682
+ <td>48.3
683
+ </td>
684
+ <td>63.4
685
+ </td>
686
+ <td>66.4
687
+ </td>
688
+ <td>73.3
689
+ </td>
690
+ </tr>
691
+ <tr>
692
+ <td>IFEval
693
+ </td>
694
+ <td>
695
+ </td>
696
+ <td>
697
+ </td>
698
+ <td>76.8
699
+ </td>
700
+ <td>80.4
701
+ </td>
702
+ <td>82.9
703
+ </td>
704
+ <td>87.5
705
+ </td>
706
+ <td>88.6
707
+ </td>
708
+ </tr>
709
+ <tr>
710
+ <td rowspan="2" >Reasoning
711
+ </td>
712
+ <td>ARC-C
713
+ </td>
714
+ <td>0
715
+ </td>
716
+ <td>acc
717
+ </td>
718
+ <td>82.4
719
+ </td>
720
+ <td>83.4
721
+ </td>
722
+ <td>94.4
723
+ </td>
724
+ <td>94.8
725
+ </td>
726
+ <td>96.9
727
+ </td>
728
+ </tr>
729
+ <tr>
730
+ <td>GPQA
731
+ </td>
732
+ <td>0
733
+ </td>
734
+ <td>em
735
+ </td>
736
+ <td>34.6
737
+ </td>
738
+ <td>30.4
739
+ </td>
740
+ <td>39.5
741
+ </td>
742
+ <td>41.7
743
+ </td>
744
+ <td>50.7
745
+ </td>
746
+ </tr>
747
+ <tr>
748
+ <td rowspan="4" >Code
749
+ </td>
750
+ <td>HumanEval
751
+ </td>
752
+ <td>0
753
+ </td>
754
+ <td>pass@1
755
+ </td>
756
+ <td>60.4
757
+ </td>
758
+ <td>72.6
759
+ </td>
760
+ <td>81.7
761
+ </td>
762
+ <td>80.5
763
+ </td>
764
+ <td>89.0
765
+ </td>
766
+ </tr>
767
+ <tr>
768
+ <td>MBPP ++ base version
769
+ </td>
770
+ <td>0
771
+ </td>
772
+ <td>pass@1
773
+ </td>
774
+ <td>70.6
775
+ </td>
776
+ <td>72.8
777
+ </td>
778
+ <td>82.5
779
+ </td>
780
+ <td>86.0
781
+ </td>
782
+ <td>88.6
783
+ </td>
784
+ </tr>
785
+ <tr>
786
+ <td>Multipl-E HumanEval
787
+ </td>
788
+ <td>0
789
+ </td>
790
+ <td>pass@1
791
+ </td>
792
+ <td>-
793
+ </td>
794
+ <td>50.8
795
+ </td>
796
+ <td>-
797
+ </td>
798
+ <td>65.5
799
+ </td>
800
+ <td>75.2
801
+ </td>
802
+ </tr>
803
+ <tr>
804
+ <td>Multipl-E MBPP
805
+ </td>
806
+ <td>0
807
+ </td>
808
+ <td>pass@1
809
+ </td>
810
+ <td>-
811
+ </td>
812
+ <td>52.4
813
+ </td>
814
+ <td>-
815
+ </td>
816
+ <td>62.0
817
+ </td>
818
+ <td>65.7
819
+ </td>
820
+ </tr>
821
+ <tr>
822
+ <td rowspan="2" >Math
823
+ </td>
824
+ <td>GSM-8K (CoT)
825
+ </td>
826
+ <td>8
827
+ </td>
828
+ <td>em_maj1@1
829
+ </td>
830
+ <td>80.6
831
+ </td>
832
+ <td>84.5
833
+ </td>
834
+ <td>93.0
835
+ </td>
836
+ <td>95.1
837
+ </td>
838
+ <td>96.8
839
+ </td>
840
+ </tr>
841
+ <tr>
842
+ <td>MATH (CoT)
843
+ </td>
844
+ <td>0
845
+ </td>
846
+ <td>final_em
847
+ </td>
848
+ <td>29.1
849
+ </td>
850
+ <td>51.9
851
+ </td>
852
+ <td>51.0
853
+ </td>
854
+ <td>68.0
855
+ </td>
856
+ <td>73.8
857
+ </td>
858
+ </tr>
859
+ <tr>
860
+ <td rowspan="4" >Tool Use
861
+ </td>
862
+ <td>API-Bank
863
+ </td>
864
+ <td>0
865
+ </td>
866
+ <td>acc
867
+ </td>
868
+ <td>48.3
869
+ </td>
870
+ <td>82.6
871
+ </td>
872
+ <td>85.1
873
+ </td>
874
+ <td>90.0
875
+ </td>
876
+ <td>92.0
877
+ </td>
878
+ </tr>
879
+ <tr>
880
+ <td>BFCL
881
+ </td>
882
+ <td>0
883
+ </td>
884
+ <td>acc
885
+ </td>
886
+ <td>60.3
887
+ </td>
888
+ <td>76.1
889
+ </td>
890
+ <td>83.0
891
+ </td>
892
+ <td>84.8
893
+ </td>
894
+ <td>88.5
895
+ </td>
896
+ </tr>
897
+ <tr>
898
+ <td>Gorilla Benchmark API Bench
899
+ </td>
900
+ <td>0
901
+ </td>
902
+ <td>acc
903
+ </td>
904
+ <td>1.7
905
+ </td>
906
+ <td>8.2
907
+ </td>
908
+ <td>14.7
909
+ </td>
910
+ <td>29.7
911
+ </td>
912
+ <td>35.3
913
+ </td>
914
+ </tr>
915
+ <tr>
916
+ <td>Nexus (0-shot)
917
+ </td>
918
+ <td>0
919
+ </td>
920
+ <td>macro_avg/acc
921
+ </td>
922
+ <td>18.1
923
+ </td>
924
+ <td>38.5
925
+ </td>
926
+ <td>47.8
927
+ </td>
928
+ <td>56.7
929
+ </td>
930
+ <td>58.7
931
+ </td>
932
+ </tr>
933
+ <tr>
934
+ <td>Multilingual
935
+ </td>
936
+ <td>Multilingual MGSM (CoT)
937
+ </td>
938
+ <td>0
939
+ </td>
940
+ <td>em
941
+ </td>
942
+ <td>-
943
+ </td>
944
+ <td>68.9
945
+ </td>
946
+ <td>-
947
+ </td>
948
+ <td>86.9
949
+ </td>
950
+ <td>91.6
951
+ </td>
952
+ </tr>
953
+ </table>
954
+
955
+ #### Multilingual benchmarks
956
+
957
+ <table>
958
+ <tr>
959
+ <td><strong>Category</strong>
960
+ </td>
961
+ <td><strong>Benchmark</strong>
962
+ </td>
963
+ <td><strong>Language</strong>
964
+ </td>
965
+ <td><strong>Llama 3.1 8B</strong>
966
+ </td>
967
+ <td><strong>Llama 3.1 70B</strong>
968
+ </td>
969
+ <td><strong>Llama 3.1 405B</strong>
970
+ </td>
971
+ </tr>
972
+ <tr>
973
+ <td rowspan="9" ><strong>General</strong>
974
+ </td>
975
+ <td rowspan="9" ><strong>MMLU (5-shot, macro_avg/acc)</strong>
976
+ </td>
977
+ <td>Portuguese
978
+ </td>
979
+ <td>62.12
980
+ </td>
981
+ <td>80.13
982
+ </td>
983
+ <td>84.95
984
+ </td>
985
+ </tr>
986
+ <tr>
987
+ <td>Spanish
988
+ </td>
989
+ <td>62.45
990
+ </td>
991
+ <td>80.05
992
+ </td>
993
+ <td>85.08
994
+ </td>
995
+ </tr>
996
+ <tr>
997
+ <td>Italian
998
+ </td>
999
+ <td>61.63
1000
+ </td>
1001
+ <td>80.4
1002
+ </td>
1003
+ <td>85.04
1004
+ </td>
1005
+ </tr>
1006
+ <tr>
1007
+ <td>German
1008
+ </td>
1009
+ <td>60.59
1010
+ </td>
1011
+ <td>79.27
1012
+ </td>
1013
+ <td>84.36
1014
+ </td>
1015
+ </tr>
1016
+ <tr>
1017
+ <td>French
1018
+ </td>
1019
+ <td>62.34
1020
+ </td>
1021
+ <td>79.82
1022
+ </td>
1023
+ <td>84.66
1024
+ </td>
1025
+ </tr>
1026
+ <tr>
1027
+ <td>Hindi
1028
+ </td>
1029
+ <td>50.88
1030
+ </td>
1031
+ <td>74.52
1032
+ </td>
1033
+ <td>80.31
1034
+ </td>
1035
+ </tr>
1036
+ <tr>
1037
+ <td>Thai
1038
+ </td>
1039
+ <td>50.32
1040
+ </td>
1041
+ <td>72.95
1042
+ </td>
1043
+ <td>78.21
1044
+ </td>
1045
+ </tr>
1046
+ </table>
1047
 
 
1048
 
 
1049
 
1050
+ ## Responsibility & Safety
1051
 
1052
+ As part of our Responsible release approach, we followed a three-pronged strategy to managing trust & safety risks:
1053
 
 
1054
 
 
1055
 
1056
+ * Enable developers to deploy helpful, safe and flexible experiences for their target audience and for the use cases supported by Llama.
1057
+ * Protect developers against adversarial users aiming to exploit Llama capabilities to potentially cause harm.
1058
+ * Provide protections for the community to help prevent the misuse of our models.
1059
 
1060
 
1061
+ ### Responsible deployment
1062
 
1063
+ Llama is a foundational technology designed to be used in a variety of use cases, examples on how Meta’s Llama models have been responsibly deployed can be found in our [Community Stories webpage](https://llama.meta.com/community-stories/). Our approach is to build the most helpful models enabling the world to benefit from the technology power, by aligning our model safety for the generic use cases addressing a standard set of harms. Developers are then in the driver seat to tailor safety for their use case, defining their own policy and deploying the models with the necessary safeguards in their Llama systems. Llama 3.1 was developed following the best practices outlined in our Responsible Use Guide, you can refer to the [Responsible Use Guide](https://llama.meta.com/responsible-use-guide/) to learn more.
1064
 
 
1065
 
1066
+ #### Llama 3.1 instruct
1067
 
1068
+ Our main objectives for conducting safety fine-tuning are to provide the research community with a valuable resource for studying the robustness of safety fine-tuning, as well as to offer developers a readily available, safe, and powerful model for various applications to reduce the developer workload to deploy safe AI systems. For more details on the safety mitigations implemented please read the Llama 3 paper.
1069
 
1070
+ **Fine-tuning data**
1071
 
1072
+ We employ a multi-faceted approach to data collection, combining human-generated data from our vendors with synthetic data to mitigate potential safety risks. We’ve developed many large language model (LLM)-based classifiers that enable us to thoughtfully select high-quality prompts and responses, enhancing data quality control.
1073
 
1074
+ **Refusals and Tone**
1075
 
1076
+ Building on the work we started with Llama 3, we put a great emphasis on model refusals to benign prompts as well as refusal tone. We included both borderline and adversarial prompts in our safety data strategy, and modified our safety data responses to follow tone guidelines.
1077
 
 
1078
 
1079
+ #### Llama 3.1 systems
1080
 
1081
+ **Large language models, including Llama 3.1, are not designed to be deployed in isolation but instead should be deployed as part of an overall AI system with additional safety guardrails as required.** Developers are expected to deploy system safeguards when building agentic systems. Safeguards are key to achieve the right helpfulness-safety alignment as well as mitigating safety and security risks inherent to the system and any integration of the model or system with external tools.
1082
 
1083
+ As part of our responsible release approach, we provide the community with [safeguards](https://llama.meta.com/trust-and-safety/) that developers should deploy with Llama models or other LLMs, including Llama Guard 3, Prompt Guard and Code Shield. All our [reference implementations](https://github.com/meta-llama/llama-agentic-system) demos contain these safeguards by default so developers can benefit from system-level safety out-of-the-box.
1084
 
 
1085
 
1086
+ #### New capabilities
1087
 
1088
+ Note that this release introduces new capabilities, including a longer context window, multilingual inputs and outputs and possible integrations by developers with third party tools. Building with these new capabilities requires specific considerations in addition to the best practices that generally apply across all Generative AI use cases.
1089
 
1090
+ **Tool-use**: Just like in standard software development, developers are responsible for the integration of the LLM with the tools and services of their choice. They should define a clear policy for their use case and assess the integrity of the third party services they use to be aware of the safety and security limitations when using this capability. Refer to the Responsible Use Guide for best practices on the safe deployment of the third party safeguards.
1091
 
1092
+ **Multilinguality**: Llama 3.1 supports 7 languages in addition to English: French, German, Hindi, Italian, Portuguese, Spanish, and Thai. Llama may be able to output text in other languages than those that meet performance thresholds for safety and helpfulness. We strongly discourage developers from using this model to converse in non-supported languages without implementing finetuning and system controls in alignment with their policies and the best practices shared in the Responsible Use Guide.
1093
 
 
1094
 
1095
+ ### Evaluations
1096
 
1097
+ We evaluated Llama models for common use cases as well as specific capabilities. Common use cases evaluations measure safety risks of systems for most commonly built applications including chat bot, coding assistant, tool calls. We built dedicated, adversarial evaluation datasets and evaluated systems composed of Llama models and Llama Guard 3 to filter input prompt and output response. It is important to evaluate applications in context, and we recommend building dedicated evaluation dataset for your use case. Prompt Guard and Code Shield are also available if relevant to the application.
1098
 
1099
+ Capability evaluations measure vulnerabilities of Llama models inherent to specific capabilities, for which were crafted dedicated benchmarks including long context, multilingual, tools calls, coding or memorization.
1100
 
1101
+ **Red teaming**
1102
 
1103
+ For both scenarios, we conducted recurring red teaming exercises with the goal of discovering risks via adversarial prompting and we used the learnings to improve our benchmarks and safety tuning datasets.
1104
 
1105
+ We partnered early with subject-matter experts in critical risk areas to understand the nature of these real-world harms and how such models may lead to unintended harm for society. Based on these conversations, we derived a set of adversarial goals for the red team to attempt to achieve, such as extracting harmful information or reprogramming the model to act in a potentially harmful capacity. The red team consisted of experts in cybersecurity, adversarial machine learning, responsible AI, and integrity in addition to multilingual content specialists with background in integrity issues in specific geographic markets.
1106
 
 
1107
 
1108
+ ### Critical and other risks
1109
 
1110
+ We specifically focused our efforts on mitigating the following critical risk areas:
1111
 
1112
+ **1- CBRNE (Chemical, Biological, Radiological, Nuclear, and Explosive materials) helpfulness**
 
 
 
 
1113
 
1114
+ To assess risks related to proliferation of chemical and biological weapons, we performed uplift testing designed to assess whether use of Llama 3.1 models could meaningfully increase the capabilities of malicious actors to plan or carry out attacks using these types of weapons.
1115
 
 
1116
 
1117
+ **2. Child Safety**
1118
 
1119
+ Child Safety risk assessments were conducted using a team of experts, to assess the model’s capability to produce outputs that could result in Child Safety risks and inform on any necessary and appropriate risk mitigations via fine tuning. We leveraged those expert red teaming sessions to expand the coverage of our evaluation benchmarks through Llama 3 model development. For Llama 3, we conducted new in-depth sessions using objective based methodologies to assess the model risks along multiple attack vectors including the additional languages Llama 3 is trained on. We also partnered with content specialists to perform red teaming exercises assessing potentially violating content while taking account of market specific nuances or experiences.
1120
 
1121
+ **3. Cyber attack enablement**
1122
 
1123
+ Our cyber attack uplift study investigated whether LLMs can enhance human capabilities in hacking tasks, both in terms of skill level and speed.
1124
 
1125
+ Our attack automation study focused on evaluating the capabilities of LLMs when used as autonomous agents in cyber offensive operations, specifically in the context of ransomware attacks. This evaluation was distinct from previous studies that considered LLMs as interactive assistants. The primary objective was to assess whether these models could effectively function as independent agents in executing complex cyber-attacks without human intervention.
1126
 
1127
+ Our study of Llama-3.1-405B’s social engineering uplift for cyber attackers was conducted to assess the effectiveness of AI models in aiding cyber threat actors in spear phishing campaigns. Please read our Llama 3.1 Cyber security whitepaper to learn more.
1128
 
 
1129
 
1130
+ ### Community
1131
 
1132
+ Generative AI safety requires expertise and tooling, and we believe in the strength of the open community to accelerate its progress. We are active members of open consortiums, including the AI Alliance, Partnership on AI and MLCommons, actively contributing to safety standardization and transparency. We encourage the community to adopt taxonomies like the MLCommons Proof of Concept evaluation to facilitate collaboration and transparency on safety and content evaluations. Our Purple Llama tools are open sourced for the community to use and widely distributed across ecosystem partners including cloud service providers. We encourage community contributions to our [Github repository](https://github.com/meta-llama/PurpleLlama).
1133
 
1134
+ We also set up the [Llama Impact Grants](https://llama.meta.com/llama-impact-grants/) program to identify and support the most compelling applications of Meta’s Llama model for societal benefit across three categories: education, climate and open innovation. The 20 finalists from the hundreds of applications can be found [here](https://llama.meta.com/llama-impact-grants/#finalists).
1135
 
1136
+ Finally, we put in place a set of resources including an [output reporting mechanism](https://developers.facebook.com/llama_output_feedback) and [bug bounty program](https://www.facebook.com/whitehat) to continuously improve the Llama technology with the help of the community.
1137
 
 
1138
 
1139
+ ## Ethical Considerations and Limitations
1140
 
1141
+ The core values of Llama 3.1 are openness, inclusivity and helpfulness. It is meant to serve everyone, and to work for a wide range of use cases. It is thus designed to be accessible to people across many different backgrounds, experiences and perspectives. Llama 3.1 addresses users and their needs as they are, without insertion unnecessary judgment or normativity, while reflecting the understanding that even content that may appear problematic in some cases can serve valuable purposes in others. It respects the dignity and autonomy of all users, especially in terms of the values of free thought and expression that power innovation and progress.
1142
 
1143
+ But Llama 3.1 is a new technology, and like any new technology, there are risks associated with its use. Testing conducted to date has not covered, nor could it cover, all scenarios. For these reasons, as with all LLMs, Llama 3.1’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 3.1 models, developers should perform safety testing and tuning tailored to their specific applications of the model. Please refer to available resources including our [Responsible Use Guide](https://llama.meta.com/responsible-use-guide), [Trust and Safety](https://llama.meta.com/trust-and-safety/) solutions, and other [resources](https://llama.meta.com/docs/get-started/) to learn more about responsible development.