munish0838 commited on
Commit
21abde8
1 Parent(s): e8c106a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +1251 -0
README.md ADDED
@@ -0,0 +1,1251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ language:
5
+ - en
6
+ - de
7
+ - fr
8
+ - it
9
+ - pt
10
+ - hi
11
+ - es
12
+ - th
13
+ pipeline_tag: text-generation
14
+ tags:
15
+ - facebook
16
+ - meta
17
+ - pytorch
18
+ - llama
19
+ - llama-3
20
+ license: llama3.1
21
+ extra_gated_prompt: >-
22
+ ### LLAMA 3.1 COMMUNITY LICENSE AGREEMENT
23
+
24
+ Llama 3.1 Version Release Date: July 23, 2024
25
+
26
+ "Agreement" means the terms and conditions for use, reproduction, distribution
27
+ and modification of the Llama Materials set forth herein.
28
+
29
+ "Documentation" means the specifications, manuals and documentation
30
+ accompanying Llama 3.1 distributed by Meta at
31
+ https://llama.meta.com/doc/overview.
32
+
33
+ "Licensee" or "you" means you, or your employer or any other person or entity
34
+ (if you are entering into this Agreement on such person or entity’s behalf),
35
+ of the age required under applicable laws, rules or regulations to provide
36
+ legal consent and that has legal authority to bind your employer or such other
37
+ person or entity if you are entering in this Agreement on their behalf.
38
+
39
+ "Llama 3.1" means the foundational large language models and software and
40
+ algorithms, including machine-learning model code, trained model weights,
41
+ inference-enabling code, training-enabling code, fine-tuning enabling code and
42
+ other elements of the foregoing distributed by Meta at
43
+ https://llama.meta.com/llama-downloads.
44
+
45
+ "Llama Materials" means, collectively, Meta’s proprietary Llama 3.1 and
46
+ Documentation (and any portion thereof) made available under this Agreement.
47
+
48
+ "Meta" or "we" means Meta Platforms Ireland Limited (if you are located in or,
49
+ if you are an entity, your principal place of business is in the EEA or
50
+ Switzerland) and Meta Platforms, Inc. (if you are located outside of the EEA
51
+ or Switzerland).
52
+
53
+ 1. License Rights and Redistribution.
54
+
55
+ a. Grant of Rights. You are granted a non-exclusive, worldwide,
56
+ non-transferable and royalty-free limited license under Meta’s intellectual
57
+ property or other rights owned by Meta embodied in the Llama Materials to use,
58
+ reproduce, distribute, copy, create derivative works of, and make
59
+ modifications to the Llama Materials.
60
+
61
+ b. Redistribution and Use.
62
+
63
+ i. If you distribute or make available the Llama Materials (or any derivative
64
+ works thereof), or a product or service (including another AI model) that
65
+ contains any of them, you shall (A) provide a copy of this Agreement with any
66
+ such Llama Materials; and (B) prominently display “Built with Llama” on a
67
+ related website, user interface, blogpost, about page, or product
68
+ documentation. If you use the Llama Materials or any outputs or results of the
69
+ Llama Materials to create, train, fine tune, or otherwise improve an AI model,
70
+ which is distributed or made available, you shall also include “Llama” at the
71
+ beginning of any such AI model name.
72
+
73
+ ii. If you receive Llama Materials, or any derivative works thereof, from a
74
+ Licensee as part of an integrated end user product, then Section 2 of this
75
+ Agreement will not apply to you.
76
+
77
+ iii. You must retain in all copies of the Llama Materials that you distribute
78
+ the following attribution notice within a “Notice” text file distributed as a
79
+ part of such copies: “Llama 3.1 is licensed under the Llama 3.1 Community
80
+ License, Copyright © Meta Platforms, Inc. All Rights Reserved.”
81
+
82
+ iv. Your use of the Llama Materials must comply with applicable laws and
83
+ regulations (including trade compliance laws and regulations) and adhere to
84
+ the Acceptable Use Policy for the Llama Materials (available at
85
+ https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated by
86
+ reference into this Agreement.
87
+
88
+ 2. Additional Commercial Terms. If, on the Llama 3.1 version release date, the
89
+ monthly active users of the products or services made available by or for
90
+ Licensee, or Licensee’s affiliates, is greater than 700 million monthly active
91
+ users in the preceding calendar month, you must request a license from Meta,
92
+ which Meta may grant to you in its sole discretion, and you are not authorized
93
+ to exercise any of the rights under this Agreement unless or until Meta
94
+ otherwise expressly grants you such rights.
95
+
96
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA
97
+ MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS”
98
+ BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF
99
+ ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
100
+ WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A
101
+ PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE
102
+ APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME ANY
103
+ RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
104
+ RESULTS.
105
+
106
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE
107
+ UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS
108
+ LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS
109
+ OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE
110
+ DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY
111
+ OF ANY OF THE FOREGOING.
112
+
113
+ 5. Intellectual Property.
114
+
115
+ a. No trademark licenses are granted under this Agreement, and in connection
116
+ with the Llama Materials, neither Meta nor Licensee may use any name or mark
117
+ owned by or associated with the other or any of its affiliates, except as
118
+ required for reasonable and customary use in describing and redistributing the
119
+ Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a
120
+ license to use “Llama” (the “Mark”) solely as required to comply with the last
121
+ sentence of Section 1.b.i. You will comply with Meta’s brand guidelines
122
+ (currently accessible at
123
+ https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill
124
+ arising out of your use of the Mark will inure to the benefit of Meta.
125
+
126
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or
127
+ for Meta, with respect to any derivative works and modifications of the Llama
128
+ Materials that are made by you, as between you and Meta, you are and will be
129
+ the owner of such derivative works and modifications.
130
+
131
+ c. If you institute litigation or other proceedings against Meta or any entity
132
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the Llama
133
+ Materials or Llama 3.1 outputs or results, or any portion of any of the
134
+ foregoing, constitutes infringement of intellectual property or other rights
135
+ owned or licensable by you, then any licenses granted to you under this
136
+ Agreement shall terminate as of the date such litigation or claim is filed or
137
+ instituted. You will indemnify and hold harmless Meta from and against any
138
+ claim by any third party arising out of or related to your use or distribution
139
+ of the Llama Materials.
140
+
141
+ 6. Term and Termination. The term of this Agreement will commence upon your
142
+ acceptance of this Agreement or access to the Llama Materials and will
143
+ continue in full force and effect until terminated in accordance with the
144
+ terms and conditions herein. Meta may terminate this Agreement if you are in
145
+ breach of any term or condition of this Agreement. Upon termination of this
146
+ Agreement, you shall delete and cease use of the Llama Materials. Sections 3,
147
+ 4 and 7 shall survive the termination of this Agreement.
148
+
149
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and
150
+ construed under the laws of the State of California without regard to choice
151
+ of law principles, and the UN Convention on Contracts for the International
152
+ Sale of Goods does not apply to this Agreement. The courts of California shall
153
+ have exclusive jurisdiction of any dispute arising out of this Agreement.
154
+
155
+ ### Llama 3.1 Acceptable Use Policy
156
+
157
+ Meta is committed to promoting safe and fair use of its tools and features,
158
+ including Llama 3.1. If you access or use Llama 3.1, you agree to this
159
+ Acceptable Use Policy (“Policy”). The most recent copy of this policy can be
160
+ found at
161
+ [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)
162
+
163
+ #### Prohibited Uses
164
+
165
+ We want everyone to use Llama 3.1 safely and responsibly. You agree you will
166
+ not use, or allow others to use, Llama 3.1 to:
167
+ 1. Violate the law or others’ rights, including to:
168
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
169
+ 1. Violence or terrorism
170
+ 2. Exploitation or harm to children, including the solicitation, creation, acquisition, or dissemination of child exploitative content or failure to report Child Sexual Abuse Material
171
+ 3. Human trafficking, exploitation, and sexual violence
172
+ 4. The illegal distribution of information or materials to minors, including obscene materials, or failure to employ legally required age-gating in connection with such information or materials.
173
+ 5. Sexual solicitation
174
+ 6. Any other criminal activity
175
+ 3. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
176
+ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful or harmful conduct in the provision of employment, employment benefits, credit, housing, other economic benefits, or other essential goods and services
177
+ 5. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
178
+ 6. Collect, process, disclose, generate, or infer health, demographic, or other sensitive personal or private information about individuals without rights and consents required by applicable laws
179
+ 7. Engage in or facilitate any action or generate any content that infringes, misappropriates, or otherwise violates any third-party rights, including the outputs or results of any products or services using the Llama Materials
180
+ 8. Create, generate, or facilitate the creation of malicious code, malware, computer viruses or do anything else that could disable, overburden, interfere with or impair the proper working, integrity, operation or appearance of a website or computer system
181
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or
182
+ development of activities that present a risk of death or bodily harm to
183
+ individuals, including use of Llama 3.1 related to the following:
184
+ 1. Military, warfare, nuclear industries or applications, espionage, use for materials or activities that are subject to the International Traffic Arms Regulations (ITAR) maintained by the United States Department of State
185
+ 2. Guns and illegal weapons (including weapon development)
186
+ 3. Illegal drugs and regulated/controlled substances
187
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
188
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
189
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
190
+ 3. Intentionally deceive or mislead others, including use of Llama 3.1 related
191
+ to the following:
192
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
193
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
194
+ 3. Generating, promoting, or further distributing spam
195
+ 4. Impersonating another individual without consent, authorization, or legal right
196
+ 5. Representing that the use of Llama 3.1 or outputs are human-generated
197
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
198
+ 4. Fail to appropriately disclose to end users any known dangers of your AI
199
+ system
200
+
201
+ Please report any violation of this Policy, software “bug,” or other problems
202
+ that could lead to a violation of this Policy through one of the following
203
+ means:
204
+ * Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)
205
+ * Reporting risky content generated by the model:
206
+ developers.facebook.com/llama_output_feedback
207
+ * Reporting bugs and security concerns: facebook.com/whitehat/info
208
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Meta Llama 3: LlamaUseReport@meta.com
209
+ extra_gated_fields:
210
+ First Name: text
211
+ Last Name: text
212
+ Date of birth: date_picker
213
+ Country: country
214
+ Affiliation: text
215
+ Job title:
216
+ type: select
217
+ options:
218
+ - Student
219
+ - Research Graduate
220
+ - AI researcher
221
+ - AI developer/engineer
222
+ - Reporter
223
+ - Other
224
+ geo: ip_location
225
+ By clicking Submit below I accept the terms of the license and acknowledge that the information I provide will be collected stored processed and shared in accordance with the Meta Privacy Policy: checkbox
226
+ extra_gated_description: >-
227
+ The information you provide will be collected, stored, processed and shared in
228
+ accordance with the [Meta Privacy
229
+ Policy](https://www.facebook.com/privacy/policy/).
230
+ extra_gated_button_content: Submit
231
+ library_name: transformers
232
+
233
+ ---
234
+
235
+ ![](https://cdn.discordapp.com/attachments/791342238541152306/1264099835221381251/image.png?ex=669ca436&is=669b52b6&hm=129f56187c31e1ed22cbd1bcdbc677a2baeea5090761d2f1a458c8b1ec7cca4b&)
236
+
237
+ # QuantFactory/Meta-Llama-3.1-8B-GGUF
238
+ This is quantized version of [meta-llama/Meta-Llama-3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B) created using llama.cpp
239
+
240
+ # Original Model Card
241
+
242
+
243
+ ## Model Information
244
+
245
+ 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.
246
+
247
+ **Model developer**: Meta
248
+
249
+ **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.
250
+
251
+
252
+ <table>
253
+ <tr>
254
+ <td>
255
+ </td>
256
+ <td><strong>Training Data</strong>
257
+ </td>
258
+ <td><strong>Params</strong>
259
+ </td>
260
+ <td><strong>Input modalities</strong>
261
+ </td>
262
+ <td><strong>Output modalities</strong>
263
+ </td>
264
+ <td><strong>Context length</strong>
265
+ </td>
266
+ <td><strong>GQA</strong>
267
+ </td>
268
+ <td><strong>Token count</strong>
269
+ </td>
270
+ <td><strong>Knowledge cutoff</strong>
271
+ </td>
272
+ </tr>
273
+ <tr>
274
+ <td rowspan="3" >Llama 3.1 (text only)
275
+ </td>
276
+ <td rowspan="3" >A new mix of publicly available online data.
277
+ </td>
278
+ <td>8B
279
+ </td>
280
+ <td>Multilingual Text
281
+ </td>
282
+ <td>Multilingual Text and code
283
+ </td>
284
+ <td>128k
285
+ </td>
286
+ <td>Yes
287
+ </td>
288
+ <td rowspan="3" >15T+
289
+ </td>
290
+ <td rowspan="3" >December 2023
291
+ </td>
292
+ </tr>
293
+ <tr>
294
+ <td>70B
295
+ </td>
296
+ <td>Multilingual Text
297
+ </td>
298
+ <td>Multilingual Text and code
299
+ </td>
300
+ <td>128k
301
+ </td>
302
+ <td>Yes
303
+ </td>
304
+ </tr>
305
+ <tr>
306
+ <td>405B
307
+ </td>
308
+ <td>Multilingual Text
309
+ </td>
310
+ <td>Multilingual Text and code
311
+ </td>
312
+ <td>128k
313
+ </td>
314
+ <td>Yes
315
+ </td>
316
+ </tr>
317
+ </table>
318
+
319
+
320
+ **Supported languages:** English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai.
321
+
322
+ **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.
323
+
324
+ **Model Release Date:** July 23, 2024.
325
+
326
+ **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.
327
+
328
+ **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)
329
+
330
+ 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).
331
+
332
+
333
+ ## Intended Use
334
+
335
+ **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.
336
+
337
+ **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**.
338
+
339
+ **<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.
340
+
341
+ ## How to use
342
+
343
+ This repository contains two versions of Meta-Llama-3.1-8B, for use with transformers and with the original `llama` codebase.
344
+
345
+ ### Use with transformers
346
+
347
+ 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.
348
+
349
+ Make sure to update your transformers installation via pip install --upgrade transformers.
350
+
351
+ ```python
352
+ import transformers
353
+ import torch
354
+
355
+ model_id = "meta-llama/Meta-Llama-3.1-8B"
356
+
357
+ pipeline = transformers.pipeline(
358
+ "text-generation", model=model_id, model_kwargs={"torch_dtype": torch.bfloat16}, device_map="auto"
359
+ )
360
+
361
+ pipeline("Hey how are you doing today?")
362
+ ```
363
+
364
+ ### Use with `llama`
365
+
366
+ Please, follow the instructions in the [repository](https://github.com/meta-llama/llama).
367
+
368
+ To download Original checkpoints, see the example command below leveraging `huggingface-cli`:
369
+
370
+ ```
371
+ huggingface-cli download meta-llama/Meta-Llama-3.1-8B --include "original/*" --local-dir Meta-Llama-3.1-8B
372
+ ```
373
+
374
+ ## Hardware and Software
375
+
376
+ **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.
377
+
378
+ **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.
379
+
380
+
381
+ **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.
382
+
383
+
384
+ <table>
385
+ <tr>
386
+ <td>
387
+ </td>
388
+ <td><strong>Training Time (GPU hours)</strong>
389
+ </td>
390
+ <td><strong>Training Power Consumption (W)</strong>
391
+ </td>
392
+ <td><strong>Training Location-Based Greenhouse Gas Emissions</strong>
393
+ <p>
394
+ <strong>(tons CO2eq)</strong>
395
+ </td>
396
+ <td><strong>Training Market-Based Greenhouse Gas Emissions</strong>
397
+ <p>
398
+ <strong>(tons CO2eq)</strong>
399
+ </td>
400
+ </tr>
401
+ <tr>
402
+ <td>Llama 3.1 8B
403
+ </td>
404
+ <td>1.46M
405
+ </td>
406
+ <td>700
407
+ </td>
408
+ <td>420
409
+ </td>
410
+ <td>0
411
+ </td>
412
+ </tr>
413
+ <tr>
414
+ <td>Llama 3.1 70B
415
+ </td>
416
+ <td>7.0M
417
+ </td>
418
+ <td>700
419
+ </td>
420
+ <td>2,040
421
+ </td>
422
+ <td>0
423
+ </td>
424
+ </tr>
425
+ <tr>
426
+ <td>Llama 3.1 405B
427
+ </td>
428
+ <td>30.84M
429
+ </td>
430
+ <td>700
431
+ </td>
432
+ <td>8,930
433
+ </td>
434
+ <td>0
435
+ </td>
436
+ </tr>
437
+ <tr>
438
+ <td>Total
439
+ </td>
440
+ <td>39.3M
441
+ <td>
442
+ <ul>
443
+
444
+ </ul>
445
+ </td>
446
+ <td>11,390
447
+ </td>
448
+ <td>0
449
+ </td>
450
+ </tr>
451
+ </table>
452
+
453
+
454
+
455
+ 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.
456
+
457
+
458
+ ## Training Data
459
+
460
+ **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.
461
+
462
+ **Data Freshness:** The pretraining data has a cutoff of December 2023.
463
+
464
+
465
+ ## Benchmark scores
466
+
467
+ 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.
468
+
469
+ ### Base pretrained models
470
+
471
+
472
+ <table>
473
+ <tr>
474
+ <td><strong>Category</strong>
475
+ </td>
476
+ <td><strong>Benchmark</strong>
477
+ </td>
478
+ <td><strong># Shots</strong>
479
+ </td>
480
+ <td><strong>Metric</strong>
481
+ </td>
482
+ <td><strong>Llama 3 8B</strong>
483
+ </td>
484
+ <td><strong>Llama 3.1 8B</strong>
485
+ </td>
486
+ <td><strong>Llama 3 70B</strong>
487
+ </td>
488
+ <td><strong>Llama 3.1 70B</strong>
489
+ </td>
490
+ <td><strong>Llama 3.1 405B</strong>
491
+ </td>
492
+ </tr>
493
+ <tr>
494
+ <td rowspan="7" >General
495
+ </td>
496
+ <td>MMLU
497
+ </td>
498
+ <td>5
499
+ </td>
500
+ <td>macro_avg/acc_char
501
+ </td>
502
+ <td>66.7
503
+ </td>
504
+ <td>66.7
505
+ </td>
506
+ <td>79.5
507
+ </td>
508
+ <td>79.3
509
+ </td>
510
+ <td>85.2
511
+ </td>
512
+ </tr>
513
+ <tr>
514
+ <td>MMLU-Pro (CoT)
515
+ </td>
516
+ <td>5
517
+ </td>
518
+ <td>macro_avg/acc_char
519
+ </td>
520
+ <td>36.2
521
+ </td>
522
+ <td>37.1
523
+ </td>
524
+ <td>55.0
525
+ </td>
526
+ <td>53.8
527
+ </td>
528
+ <td>61.6
529
+ </td>
530
+ </tr>
531
+ <tr>
532
+ <td>AGIEval English
533
+ </td>
534
+ <td>3-5
535
+ </td>
536
+ <td>average/acc_char
537
+ </td>
538
+ <td>47.1
539
+ </td>
540
+ <td>47.8
541
+ </td>
542
+ <td>63.0
543
+ </td>
544
+ <td>64.6
545
+ </td>
546
+ <td>71.6
547
+ </td>
548
+ </tr>
549
+ <tr>
550
+ <td>CommonSenseQA
551
+ </td>
552
+ <td>7
553
+ </td>
554
+ <td>acc_char
555
+ </td>
556
+ <td>72.6
557
+ </td>
558
+ <td>75.0
559
+ </td>
560
+ <td>83.8
561
+ </td>
562
+ <td>84.1
563
+ </td>
564
+ <td>85.8
565
+ </td>
566
+ </tr>
567
+ <tr>
568
+ <td>Winogrande
569
+ </td>
570
+ <td>5
571
+ </td>
572
+ <td>acc_char
573
+ </td>
574
+ <td>-
575
+ </td>
576
+ <td>60.5
577
+ </td>
578
+ <td>-
579
+ </td>
580
+ <td>83.3
581
+ </td>
582
+ <td>86.7
583
+ </td>
584
+ </tr>
585
+ <tr>
586
+ <td>BIG-Bench Hard (CoT)
587
+ </td>
588
+ <td>3
589
+ </td>
590
+ <td>average/em
591
+ </td>
592
+ <td>61.1
593
+ </td>
594
+ <td>64.2
595
+ </td>
596
+ <td>81.3
597
+ </td>
598
+ <td>81.6
599
+ </td>
600
+ <td>85.9
601
+ </td>
602
+ </tr>
603
+ <tr>
604
+ <td>ARC-Challenge
605
+ </td>
606
+ <td>25
607
+ </td>
608
+ <td>acc_char
609
+ </td>
610
+ <td>79.4
611
+ </td>
612
+ <td>79.7
613
+ </td>
614
+ <td>93.1
615
+ </td>
616
+ <td>92.9
617
+ </td>
618
+ <td>96.1
619
+ </td>
620
+ </tr>
621
+ <tr>
622
+ <td>Knowledge reasoning
623
+ </td>
624
+ <td>TriviaQA-Wiki
625
+ </td>
626
+ <td>5
627
+ </td>
628
+ <td>em
629
+ </td>
630
+ <td>78.5
631
+ </td>
632
+ <td>77.6
633
+ </td>
634
+ <td>89.7
635
+ </td>
636
+ <td>89.8
637
+ </td>
638
+ <td>91.8
639
+ </td>
640
+ </tr>
641
+ <tr>
642
+ <td rowspan="4" >Reading comprehension
643
+ </td>
644
+ <td>SQuAD
645
+ </td>
646
+ <td>1
647
+ </td>
648
+ <td>em
649
+ </td>
650
+ <td>76.4
651
+ </td>
652
+ <td>77.0
653
+ </td>
654
+ <td>85.6
655
+ </td>
656
+ <td>81.8
657
+ </td>
658
+ <td>89.3
659
+ </td>
660
+ </tr>
661
+ <tr>
662
+ <td>QuAC (F1)
663
+ </td>
664
+ <td>1
665
+ </td>
666
+ <td>f1
667
+ </td>
668
+ <td>44.4
669
+ </td>
670
+ <td>44.9
671
+ </td>
672
+ <td>51.1
673
+ </td>
674
+ <td>51.1
675
+ </td>
676
+ <td>53.6
677
+ </td>
678
+ </tr>
679
+ <tr>
680
+ <td>BoolQ
681
+ </td>
682
+ <td>0
683
+ </td>
684
+ <td>acc_char
685
+ </td>
686
+ <td>75.7
687
+ </td>
688
+ <td>75.0
689
+ </td>
690
+ <td>79.0
691
+ </td>
692
+ <td>79.4
693
+ </td>
694
+ <td>80.0
695
+ </td>
696
+ </tr>
697
+ <tr>
698
+ <td>DROP (F1)
699
+ </td>
700
+ <td>3
701
+ </td>
702
+ <td>f1
703
+ </td>
704
+ <td>58.4
705
+ </td>
706
+ <td>59.5
707
+ </td>
708
+ <td>79.7
709
+ </td>
710
+ <td>79.6
711
+ </td>
712
+ <td>84.8
713
+ </td>
714
+ </tr>
715
+ </table>
716
+
717
+
718
+
719
+ ### Instruction tuned models
720
+
721
+
722
+ <table>
723
+ <tr>
724
+ <td><strong>Category</strong>
725
+ </td>
726
+ <td><strong>Benchmark</strong>
727
+ </td>
728
+ <td><strong># Shots</strong>
729
+ </td>
730
+ <td><strong>Metric</strong>
731
+ </td>
732
+ <td><strong>Llama 3 8B Instruct</strong>
733
+ </td>
734
+ <td><strong>Llama 3.1 8B Instruct</strong>
735
+ </td>
736
+ <td><strong>Llama 3 70B Instruct</strong>
737
+ </td>
738
+ <td><strong>Llama 3.1 70B Instruct</strong>
739
+ </td>
740
+ <td><strong>Llama 3.1 405B Instruct</strong>
741
+ </td>
742
+ </tr>
743
+ <tr>
744
+ <td rowspan="4" >General
745
+ </td>
746
+ <td>MMLU
747
+ </td>
748
+ <td>5
749
+ </td>
750
+ <td>macro_avg/acc
751
+ </td>
752
+ <td>68.5
753
+ </td>
754
+ <td>69.4
755
+ </td>
756
+ <td>82.0
757
+ </td>
758
+ <td>83.6
759
+ </td>
760
+ <td>87.3
761
+ </td>
762
+ </tr>
763
+ <tr>
764
+ <td>MMLU (CoT)
765
+ </td>
766
+ <td>0
767
+ </td>
768
+ <td>macro_avg/acc
769
+ </td>
770
+ <td>65.3
771
+ </td>
772
+ <td>73.0
773
+ </td>
774
+ <td>80.9
775
+ </td>
776
+ <td>86.0
777
+ </td>
778
+ <td>88.6
779
+ </td>
780
+ </tr>
781
+ <tr>
782
+ <td>MMLU-Pro (CoT)
783
+ </td>
784
+ <td>5
785
+ </td>
786
+ <td>micro_avg/acc_char
787
+ </td>
788
+ <td>45.5
789
+ </td>
790
+ <td>48.3
791
+ </td>
792
+ <td>63.4
793
+ </td>
794
+ <td>66.4
795
+ </td>
796
+ <td>73.3
797
+ </td>
798
+ </tr>
799
+ <tr>
800
+ <td>IFEval
801
+ </td>
802
+ <td>
803
+ </td>
804
+ <td>
805
+ </td>
806
+ <td>76.8
807
+ </td>
808
+ <td>80.4
809
+ </td>
810
+ <td>82.9
811
+ </td>
812
+ <td>87.5
813
+ </td>
814
+ <td>88.6
815
+ </td>
816
+ </tr>
817
+ <tr>
818
+ <td rowspan="2" >Reasoning
819
+ </td>
820
+ <td>ARC-C
821
+ </td>
822
+ <td>0
823
+ </td>
824
+ <td>acc
825
+ </td>
826
+ <td>82.4
827
+ </td>
828
+ <td>83.4
829
+ </td>
830
+ <td>94.4
831
+ </td>
832
+ <td>94.8
833
+ </td>
834
+ <td>96.9
835
+ </td>
836
+ </tr>
837
+ <tr>
838
+ <td>GPQA
839
+ </td>
840
+ <td>0
841
+ </td>
842
+ <td>em
843
+ </td>
844
+ <td>34.6
845
+ </td>
846
+ <td>30.4
847
+ </td>
848
+ <td>39.5
849
+ </td>
850
+ <td>41.7
851
+ </td>
852
+ <td>50.7
853
+ </td>
854
+ </tr>
855
+ <tr>
856
+ <td rowspan="4" >Code
857
+ </td>
858
+ <td>HumanEval
859
+ </td>
860
+ <td>0
861
+ </td>
862
+ <td>pass@1
863
+ </td>
864
+ <td>60.4
865
+ </td>
866
+ <td>72.6
867
+ </td>
868
+ <td>81.7
869
+ </td>
870
+ <td>80.5
871
+ </td>
872
+ <td>89.0
873
+ </td>
874
+ </tr>
875
+ <tr>
876
+ <td>MBPP ++ base version
877
+ </td>
878
+ <td>0
879
+ </td>
880
+ <td>pass@1
881
+ </td>
882
+ <td>70.6
883
+ </td>
884
+ <td>72.8
885
+ </td>
886
+ <td>82.5
887
+ </td>
888
+ <td>86.0
889
+ </td>
890
+ <td>88.6
891
+ </td>
892
+ </tr>
893
+ <tr>
894
+ <td>Multipl-E HumanEval
895
+ </td>
896
+ <td>0
897
+ </td>
898
+ <td>pass@1
899
+ </td>
900
+ <td>-
901
+ </td>
902
+ <td>50.8
903
+ </td>
904
+ <td>-
905
+ </td>
906
+ <td>65.5
907
+ </td>
908
+ <td>75.2
909
+ </td>
910
+ </tr>
911
+ <tr>
912
+ <td>Multipl-E MBPP
913
+ </td>
914
+ <td>0
915
+ </td>
916
+ <td>pass@1
917
+ </td>
918
+ <td>-
919
+ </td>
920
+ <td>52.4
921
+ </td>
922
+ <td>-
923
+ </td>
924
+ <td>62.0
925
+ </td>
926
+ <td>65.7
927
+ </td>
928
+ </tr>
929
+ <tr>
930
+ <td rowspan="2" >Math
931
+ </td>
932
+ <td>GSM-8K (CoT)
933
+ </td>
934
+ <td>8
935
+ </td>
936
+ <td>em_maj1@1
937
+ </td>
938
+ <td>80.6
939
+ </td>
940
+ <td>84.5
941
+ </td>
942
+ <td>93.0
943
+ </td>
944
+ <td>95.1
945
+ </td>
946
+ <td>96.8
947
+ </td>
948
+ </tr>
949
+ <tr>
950
+ <td>MATH (CoT)
951
+ </td>
952
+ <td>0
953
+ </td>
954
+ <td>final_em
955
+ </td>
956
+ <td>29.1
957
+ </td>
958
+ <td>51.9
959
+ </td>
960
+ <td>51.0
961
+ </td>
962
+ <td>68.0
963
+ </td>
964
+ <td>73.8
965
+ </td>
966
+ </tr>
967
+ <tr>
968
+ <td rowspan="4" >Tool Use
969
+ </td>
970
+ <td>API-Bank
971
+ </td>
972
+ <td>0
973
+ </td>
974
+ <td>acc
975
+ </td>
976
+ <td>48.3
977
+ </td>
978
+ <td>82.6
979
+ </td>
980
+ <td>85.1
981
+ </td>
982
+ <td>90.0
983
+ </td>
984
+ <td>92.0
985
+ </td>
986
+ </tr>
987
+ <tr>
988
+ <td>BFCL
989
+ </td>
990
+ <td>0
991
+ </td>
992
+ <td>acc
993
+ </td>
994
+ <td>60.3
995
+ </td>
996
+ <td>76.1
997
+ </td>
998
+ <td>83.0
999
+ </td>
1000
+ <td>84.8
1001
+ </td>
1002
+ <td>88.5
1003
+ </td>
1004
+ </tr>
1005
+ <tr>
1006
+ <td>Gorilla Benchmark API Bench
1007
+ </td>
1008
+ <td>0
1009
+ </td>
1010
+ <td>acc
1011
+ </td>
1012
+ <td>1.7
1013
+ </td>
1014
+ <td>8.2
1015
+ </td>
1016
+ <td>14.7
1017
+ </td>
1018
+ <td>29.7
1019
+ </td>
1020
+ <td>35.3
1021
+ </td>
1022
+ </tr>
1023
+ <tr>
1024
+ <td>Nexus (0-shot)
1025
+ </td>
1026
+ <td>0
1027
+ </td>
1028
+ <td>macro_avg/acc
1029
+ </td>
1030
+ <td>18.1
1031
+ </td>
1032
+ <td>38.5
1033
+ </td>
1034
+ <td>47.8
1035
+ </td>
1036
+ <td>56.7
1037
+ </td>
1038
+ <td>58.7
1039
+ </td>
1040
+ </tr>
1041
+ <tr>
1042
+ <td>Multilingual
1043
+ </td>
1044
+ <td>Multilingual MGSM (CoT)
1045
+ </td>
1046
+ <td>0
1047
+ </td>
1048
+ <td>em
1049
+ </td>
1050
+ <td>-
1051
+ </td>
1052
+ <td>68.9
1053
+ </td>
1054
+ <td>-
1055
+ </td>
1056
+ <td>86.9
1057
+ </td>
1058
+ <td>91.6
1059
+ </td>
1060
+ </tr>
1061
+ </table>
1062
+
1063
+ #### Multilingual benchmarks
1064
+
1065
+ <table>
1066
+ <tr>
1067
+ <td><strong>Category</strong>
1068
+ </td>
1069
+ <td><strong>Benchmark</strong>
1070
+ </td>
1071
+ <td><strong>Language</strong>
1072
+ </td>
1073
+ <td><strong>Llama 3.1 8B</strong>
1074
+ </td>
1075
+ <td><strong>Llama 3.1 70B</strong>
1076
+ </td>
1077
+ <td><strong>Llama 3.1 405B</strong>
1078
+ </td>
1079
+ </tr>
1080
+ <tr>
1081
+ <td rowspan="9" ><strong>General</strong>
1082
+ </td>
1083
+ <td rowspan="9" ><strong>MMLU (5-shot, macro_avg/acc)</strong>
1084
+ </td>
1085
+ <td>Portuguese
1086
+ </td>
1087
+ <td>62.12
1088
+ </td>
1089
+ <td>80.13
1090
+ </td>
1091
+ <td>84.95
1092
+ </td>
1093
+ </tr>
1094
+ <tr>
1095
+ <td>Spanish
1096
+ </td>
1097
+ <td>62.45
1098
+ </td>
1099
+ <td>80.05
1100
+ </td>
1101
+ <td>85.08
1102
+ </td>
1103
+ </tr>
1104
+ <tr>
1105
+ <td>Italian
1106
+ </td>
1107
+ <td>61.63
1108
+ </td>
1109
+ <td>80.4
1110
+ </td>
1111
+ <td>85.04
1112
+ </td>
1113
+ </tr>
1114
+ <tr>
1115
+ <td>German
1116
+ </td>
1117
+ <td>60.59
1118
+ </td>
1119
+ <td>79.27
1120
+ </td>
1121
+ <td>84.36
1122
+ </td>
1123
+ </tr>
1124
+ <tr>
1125
+ <td>French
1126
+ </td>
1127
+ <td>62.34
1128
+ </td>
1129
+ <td>79.82
1130
+ </td>
1131
+ <td>84.66
1132
+ </td>
1133
+ </tr>
1134
+ <tr>
1135
+ <td>Hindi
1136
+ </td>
1137
+ <td>50.88
1138
+ </td>
1139
+ <td>74.52
1140
+ </td>
1141
+ <td>80.31
1142
+ </td>
1143
+ </tr>
1144
+ <tr>
1145
+ <td>Thai
1146
+ </td>
1147
+ <td>50.32
1148
+ </td>
1149
+ <td>72.95
1150
+ </td>
1151
+ <td>78.21
1152
+ </td>
1153
+ </tr>
1154
+ </table>
1155
+
1156
+
1157
+
1158
+ ## Responsibility & Safety
1159
+
1160
+ As part of our Responsible release approach, we followed a three-pronged strategy to managing trust & safety risks:
1161
+
1162
+
1163
+
1164
+ * Enable developers to deploy helpful, safe and flexible experiences for their target audience and for the use cases supported by Llama.
1165
+ * Protect developers against adversarial users aiming to exploit Llama capabilities to potentially cause harm.
1166
+ * Provide protections for the community to help prevent the misuse of our models.
1167
+
1168
+
1169
+ ### Responsible deployment
1170
+
1171
+ 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.
1172
+
1173
+
1174
+ #### Llama 3.1 instruct
1175
+
1176
+ 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.
1177
+
1178
+ **Fine-tuning data**
1179
+
1180
+ 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.
1181
+
1182
+ **Refusals and Tone**
1183
+
1184
+ 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.
1185
+
1186
+
1187
+ #### Llama 3.1 systems
1188
+
1189
+ **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.
1190
+
1191
+ 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.
1192
+
1193
+
1194
+ #### New capabilities
1195
+
1196
+ 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.
1197
+
1198
+ **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.
1199
+
1200
+ **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.
1201
+
1202
+
1203
+ ### Evaluations
1204
+
1205
+ 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.
1206
+
1207
+ 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.
1208
+
1209
+ **Red teaming**
1210
+
1211
+ 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.
1212
+
1213
+ 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.
1214
+
1215
+
1216
+ ### Critical and other risks
1217
+
1218
+ We specifically focused our efforts on mitigating the following critical risk areas:
1219
+
1220
+ **1- CBRNE (Chemical, Biological, Radiological, Nuclear, and Explosive materials) helpfulness**
1221
+
1222
+ 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.
1223
+
1224
+
1225
+ **2. Child Safety**
1226
+
1227
+ 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.
1228
+
1229
+ **3. Cyber attack enablement**
1230
+
1231
+ Our cyber attack uplift study investigated whether LLMs can enhance human capabilities in hacking tasks, both in terms of skill level and speed.
1232
+
1233
+ 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.
1234
+
1235
+ 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.
1236
+
1237
+
1238
+ ### Community
1239
+
1240
+ 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).
1241
+
1242
+ 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).
1243
+
1244
+ 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.
1245
+
1246
+
1247
+ ## Ethical Considerations and Limitations
1248
+
1249
+ 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.
1250
+
1251
+ 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.