rainjay commited on
Commit
8dbc9a1
1 Parent(s): a91c2cf

Update README.md

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