Update README.md
Browse files
README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
---
|
2 |
language:
|
3 |
- en
|
|
|
4 |
pipeline_tag: text-generation
|
5 |
tags:
|
6 |
- facebook
|
@@ -8,6 +9,8 @@ tags:
|
|
8 |
- pytorch
|
9 |
- llama
|
10 |
- llama-3
|
|
|
|
|
11 |
license: other
|
12 |
license_name: llama3
|
13 |
license_link: LICENSE
|
@@ -15,130 +18,152 @@ extra_gated_prompt: >-
|
|
15 |
### META LLAMA 3 COMMUNITY LICENSE AGREEMENT
|
16 |
|
17 |
Meta Llama 3 Version Release Date: April 18, 2024
|
18 |
-
|
19 |
-
"Agreement" means the terms and conditions for use, reproduction, distribution and modification of the
|
20 |
-
Llama Materials set forth herein.
|
21 |
|
22 |
-
"
|
23 |
-
|
24 |
|
25 |
-
"
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
28 |
person or entity if you are entering in this Agreement on their behalf.
|
29 |
|
30 |
-
"Meta Llama 3" means the foundational large language models and software and
|
31 |
-
machine-learning model code, trained model weights,
|
32 |
-
|
|
|
33 |
https://llama.meta.com/llama-downloads.
|
34 |
|
35 |
-
"Llama Materials" means, collectively, Meta’s proprietary Meta Llama 3 and
|
36 |
-
portion thereof) made available under this Agreement.
|
37 |
|
38 |
-
"Meta" or "we" means Meta Platforms Ireland Limited (if you are located in or,
|
39 |
-
principal place of business is in the EEA or
|
40 |
-
outside of the EEA
|
|
|
41 |
|
42 |
1. License Rights and Redistribution.
|
43 |
|
44 |
-
a. Grant of Rights. You are granted a non-exclusive, worldwide,
|
45 |
-
limited license under Meta’s intellectual
|
46 |
-
|
47 |
-
|
|
|
48 |
|
49 |
b. Redistribution and Use.
|
50 |
|
51 |
-
i. If you distribute or make available the Llama Materials (or any derivative
|
52 |
-
thereof), or a product or service that uses any of them, including
|
53 |
-
a copy of this Agreement with any such
|
54 |
-
Llama
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
70 |
reference into this Agreement.
|
71 |
|
72 |
-
v. You will not use the Llama Materials or any output or results of the Llama
|
73 |
-
improve any other large language model (excluding Meta Llama 3 or
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
|
|
|
|
|
|
|
|
88 |
RESULTS.
|
89 |
|
90 |
-
4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE
|
91 |
-
LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS
|
92 |
-
OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS
|
93 |
-
|
94 |
-
|
|
|
95 |
|
96 |
5. Intellectual Property.
|
97 |
|
98 |
-
a. No trademark licenses are granted under this Agreement, and in connection
|
99 |
-
Materials, neither Meta nor Licensee may use any name or mark
|
100 |
-
or any of its affiliates, except as
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
Agreement
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
### Meta Llama 3 Acceptable Use Policy
|
132 |
|
133 |
-
Meta is committed to promoting safe and fair use of its tools and features,
|
134 |
-
access or use Meta Llama 3, you agree to this
|
135 |
-
this policy can be
|
|
|
|
|
136 |
|
137 |
#### Prohibited Uses
|
138 |
|
139 |
-
We want everyone to use Meta Llama 3 safely and responsibly. You agree you
|
140 |
-
others to use, Meta Llama 3 to:
|
141 |
-
|
142 |
1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
|
143 |
1. Violence or terrorism
|
144 |
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
|
@@ -152,24 +177,29 @@ extra_gated_prompt: >-
|
|
152 |
5. 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
|
153 |
6. 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
|
154 |
7. 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
|
155 |
-
2. Engage in, promote, incite, facilitate, or assist in the planning or
|
|
|
|
|
156 |
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
|
157 |
2. Guns and illegal weapons (including weapon development)
|
158 |
3. Illegal drugs and regulated/controlled substances
|
159 |
4. Operation of critical infrastructure, transportation technologies, or heavy machinery
|
160 |
5. Self-harm or harm to others, including suicide, cutting, and eating disorders
|
161 |
6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
|
162 |
-
3. Intentionally deceive or mislead others, including use of Meta Llama 3
|
|
|
163 |
1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
|
164 |
2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
|
165 |
3. Generating, promoting, or further distributing spam
|
166 |
4. Impersonating another individual without consent, authorization, or legal right
|
167 |
5. Representing that the use of Meta Llama 3 or outputs are human-generated
|
168 |
6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
|
169 |
-
4. Fail to appropriately disclose to end users any known dangers of your AI
|
170 |
-
|
171 |
-
|
172 |
-
of this Policy
|
|
|
|
|
173 |
* Reporting issues with the model: [https://github.com/meta-llama/llama3](https://github.com/meta-llama/llama3)
|
174 |
* Reporting risky content generated by the model:
|
175 |
developers.facebook.com/llama_output_feedback
|
@@ -181,27 +211,34 @@ extra_gated_fields:
|
|
181 |
Date of birth: date_picker
|
182 |
Country: country
|
183 |
Affiliation: text
|
184 |
-
geo: ip_location
|
185 |
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
|
186 |
-
extra_gated_description:
|
|
|
|
|
|
|
187 |
extra_gated_button_content: Submit
|
188 |
widget:
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
|
|
|
|
|
|
|
|
205 |
inference:
|
206 |
parameters:
|
207 |
max_new_tokens: 300
|
|
|
1 |
---
|
2 |
language:
|
3 |
- en
|
4 |
+
- zh
|
5 |
pipeline_tag: text-generation
|
6 |
tags:
|
7 |
- facebook
|
|
|
9 |
- pytorch
|
10 |
- llama
|
11 |
- llama-3
|
12 |
+
- 4-bit
|
13 |
+
- bnb-4bit
|
14 |
license: other
|
15 |
license_name: llama3
|
16 |
license_link: LICENSE
|
|
|
18 |
### META LLAMA 3 COMMUNITY LICENSE AGREEMENT
|
19 |
|
20 |
Meta Llama 3 Version Release Date: April 18, 2024
|
|
|
|
|
|
|
21 |
|
22 |
+
"Agreement" means the terms and conditions for use, reproduction, distribution
|
23 |
+
and modification of the Llama Materials set forth herein.
|
24 |
|
25 |
+
"Documentation" means the specifications, manuals and documentation
|
26 |
+
accompanying Meta Llama 3 distributed by Meta at
|
27 |
+
https://llama.meta.com/get-started/.
|
28 |
+
|
29 |
+
"Licensee" or "you" means you, or your employer or any other person or entity
|
30 |
+
(if you are entering into this Agreement on such person or entity’s behalf),
|
31 |
+
of the age required under applicable laws, rules or regulations to provide
|
32 |
+
legal consent and that has legal authority to bind your employer or such other
|
33 |
person or entity if you are entering in this Agreement on their behalf.
|
34 |
|
35 |
+
"Meta Llama 3" means the foundational large language models and software and
|
36 |
+
algorithms, including machine-learning model code, trained model weights,
|
37 |
+
inference-enabling code, training-enabling code, fine-tuning enabling code and
|
38 |
+
other elements of the foregoing distributed by Meta at
|
39 |
https://llama.meta.com/llama-downloads.
|
40 |
|
41 |
+
"Llama Materials" means, collectively, Meta’s proprietary Meta Llama 3 and
|
42 |
+
Documentation (and any portion thereof) made available under this Agreement.
|
43 |
|
44 |
+
"Meta" or "we" means Meta Platforms Ireland Limited (if you are located in or,
|
45 |
+
if you are an entity, your principal place of business is in the EEA or
|
46 |
+
Switzerland) and Meta Platforms, Inc. (if you are located outside of the EEA
|
47 |
+
or Switzerland).
|
48 |
|
49 |
1. License Rights and Redistribution.
|
50 |
|
51 |
+
a. Grant of Rights. You are granted a non-exclusive, worldwide,
|
52 |
+
non-transferable and royalty-free limited license under Meta’s intellectual
|
53 |
+
property or other rights owned by Meta embodied in the Llama Materials to use,
|
54 |
+
reproduce, distribute, copy, create derivative works of, and make
|
55 |
+
modifications to the Llama Materials.
|
56 |
|
57 |
b. Redistribution and Use.
|
58 |
|
59 |
+
i. If you distribute or make available the Llama Materials (or any derivative
|
60 |
+
works thereof), or a product or service that uses any of them, including
|
61 |
+
another AI model, you shall (A) provide a copy of this Agreement with any such
|
62 |
+
Llama Materials; and (B) prominently display “Built with Meta Llama 3” on a
|
63 |
+
related website, user interface, blogpost, about page, or product
|
64 |
+
documentation. If you use the Llama Materials to create, train, fine tune, or
|
65 |
+
otherwise improve an AI model, which is distributed or made available, you
|
66 |
+
shall also include “Llama 3” at the beginning of any such AI model name.
|
67 |
+
|
68 |
+
ii. If you receive Llama Materials, or any derivative works thereof, from a
|
69 |
+
Licensee as part of an integrated end user product, then Section 2 of this
|
70 |
+
Agreement will not apply to you.
|
71 |
+
|
72 |
+
iii. You must retain in all copies of the Llama Materials that you distribute
|
73 |
+
the following attribution notice within a “Notice” text file distributed as a
|
74 |
+
part of such copies: “Meta Llama 3 is licensed under the Meta Llama 3
|
75 |
+
Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.”
|
76 |
+
|
77 |
+
iv. Your use of the Llama Materials must comply with applicable laws and
|
78 |
+
regulations (including trade compliance laws and regulations) and adhere to
|
79 |
+
the Acceptable Use Policy for the Llama Materials (available at
|
80 |
+
https://llama.meta.com/llama3/use-policy), which is hereby incorporated by
|
81 |
reference into this Agreement.
|
82 |
|
83 |
+
v. You will not use the Llama Materials or any output or results of the Llama
|
84 |
+
Materials to improve any other large language model (excluding Meta Llama 3 or
|
85 |
+
derivative works thereof).
|
86 |
+
|
87 |
+
2. Additional Commercial Terms. If, on the Meta Llama 3 version release date,
|
88 |
+
the monthly active users of the products or services made available by or for
|
89 |
+
Licensee, or Licensee’s affiliates, is greater than 700 million monthly active
|
90 |
+
users in the preceding calendar month, you must request a license from Meta,
|
91 |
+
which Meta may grant to you in its sole discretion, and you are not authorized
|
92 |
+
to exercise any of the rights under this Agreement unless or until Meta
|
93 |
+
otherwise expressly grants you such rights.
|
94 |
+
|
95 |
+
3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA
|
96 |
+
MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS”
|
97 |
+
BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF
|
98 |
+
ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
|
99 |
+
WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A
|
100 |
+
PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE
|
101 |
+
APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME ANY
|
102 |
+
RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
|
103 |
RESULTS.
|
104 |
|
105 |
+
4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE
|
106 |
+
UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS
|
107 |
+
LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS
|
108 |
+
OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE
|
109 |
+
DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY
|
110 |
+
OF ANY OF THE FOREGOING.
|
111 |
|
112 |
5. Intellectual Property.
|
113 |
|
114 |
+
a. No trademark licenses are granted under this Agreement, and in connection
|
115 |
+
with the Llama Materials, neither Meta nor Licensee may use any name or mark
|
116 |
+
owned by or associated with the other or any of its affiliates, except as
|
117 |
+
required for reasonable and customary use in describing and redistributing the
|
118 |
+
Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a
|
119 |
+
license to use “Llama 3” (the “Mark”) solely as required to comply with the
|
120 |
+
last sentence of Section 1.b.i. You will comply with Meta’s brand guidelines
|
121 |
+
(currently accessible at
|
122 |
+
https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill
|
123 |
+
arising out of your use of the Mark will inure to the benefit of Meta.
|
124 |
+
|
125 |
+
b. Subject to Meta’s ownership of Llama Materials and derivatives made by or
|
126 |
+
for Meta, with respect to any derivative works and modifications of the Llama
|
127 |
+
Materials that are made by you, as between you and Meta, you are and will be
|
128 |
+
the owner of such derivative works and modifications.
|
129 |
+
|
130 |
+
c. If you institute litigation or other proceedings against Meta or any entity
|
131 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that the Llama
|
132 |
+
Materials or Meta Llama 3 outputs or results, or any portion of any of the
|
133 |
+
foregoing, constitutes infringement of intellectual property or other rights
|
134 |
+
owned or licensable by you, then any licenses granted to you under this
|
135 |
+
Agreement shall terminate as of the date such litigation or claim is filed or
|
136 |
+
instituted. You will indemnify and hold harmless Meta from and against any
|
137 |
+
claim by any third party arising out of or related to your use or distribution
|
138 |
+
of the Llama Materials.
|
139 |
+
|
140 |
+
6. Term and Termination. The term of this Agreement will commence upon your
|
141 |
+
acceptance of this Agreement or access to the Llama Materials and will
|
142 |
+
continue in full force and effect until terminated in accordance with the
|
143 |
+
terms and conditions herein. Meta may terminate this Agreement if you are in
|
144 |
+
breach of any term or condition of this Agreement. Upon termination of this
|
145 |
+
Agreement, you shall delete and cease use of the Llama Materials. Sections 3,
|
146 |
+
4 and 7 shall survive the termination of this Agreement.
|
147 |
+
|
148 |
+
7. Governing Law and Jurisdiction. This Agreement will be governed and
|
149 |
+
construed under the laws of the State of California without regard to choice
|
150 |
+
of law principles, and the UN Convention on Contracts for the International
|
151 |
+
Sale of Goods does not apply to this Agreement. The courts of California shall
|
152 |
+
have exclusive jurisdiction of any dispute arising out of this Agreement.
|
153 |
|
154 |
### Meta Llama 3 Acceptable Use Policy
|
155 |
|
156 |
+
Meta is committed to promoting safe and fair use of its tools and features,
|
157 |
+
including Meta Llama 3. If you access or use Meta Llama 3, you agree to this
|
158 |
+
Acceptable Use Policy (“Policy”). The most recent copy of this policy can be
|
159 |
+
found at
|
160 |
+
[https://llama.meta.com/llama3/use-policy](https://llama.meta.com/llama3/use-policy)
|
161 |
|
162 |
#### Prohibited Uses
|
163 |
|
164 |
+
We want everyone to use Meta Llama 3 safely and responsibly. You agree you
|
165 |
+
will not use, or allow others to use, Meta Llama 3 to: 1. Violate the law or
|
166 |
+
others’ rights, including to:
|
167 |
1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
|
168 |
1. Violence or terrorism
|
169 |
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
|
|
|
177 |
5. 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
|
178 |
6. 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
|
179 |
7. 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
|
180 |
+
2. Engage in, promote, incite, facilitate, or assist in the planning or
|
181 |
+
development of activities that present a risk of death or bodily harm to
|
182 |
+
individuals, including use of Meta Llama 3 related to the following:
|
183 |
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
|
184 |
2. Guns and illegal weapons (including weapon development)
|
185 |
3. Illegal drugs and regulated/controlled substances
|
186 |
4. Operation of critical infrastructure, transportation technologies, or heavy machinery
|
187 |
5. Self-harm or harm to others, including suicide, cutting, and eating disorders
|
188 |
6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
|
189 |
+
3. Intentionally deceive or mislead others, including use of Meta Llama 3
|
190 |
+
related to the following:
|
191 |
1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
|
192 |
2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
|
193 |
3. Generating, promoting, or further distributing spam
|
194 |
4. Impersonating another individual without consent, authorization, or legal right
|
195 |
5. Representing that the use of Meta Llama 3 or outputs are human-generated
|
196 |
6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
|
197 |
+
4. Fail to appropriately disclose to end users any known dangers of your AI
|
198 |
+
system
|
199 |
+
|
200 |
+
Please report any violation of this Policy, software “bug,” or other problems
|
201 |
+
that could lead to a violation of this Policy through one of the following
|
202 |
+
means:
|
203 |
* Reporting issues with the model: [https://github.com/meta-llama/llama3](https://github.com/meta-llama/llama3)
|
204 |
* Reporting risky content generated by the model:
|
205 |
developers.facebook.com/llama_output_feedback
|
|
|
211 |
Date of birth: date_picker
|
212 |
Country: country
|
213 |
Affiliation: text
|
214 |
+
geo: ip_location
|
215 |
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
|
216 |
+
extra_gated_description: >-
|
217 |
+
The information you provide will be collected, stored, processed and shared in
|
218 |
+
accordance with the [Meta Privacy
|
219 |
+
Policy](https://www.facebook.com/privacy/policy/).
|
220 |
extra_gated_button_content: Submit
|
221 |
widget:
|
222 |
+
- example_title: Hello
|
223 |
+
messages:
|
224 |
+
- role: user
|
225 |
+
content: Hey my name is Julien! How are you?
|
226 |
+
- example_title: Winter holidays
|
227 |
+
messages:
|
228 |
+
- role: system
|
229 |
+
content: >-
|
230 |
+
You are a helpful and honest assistant. Please, respond concisely and
|
231 |
+
truthfully.
|
232 |
+
- role: user
|
233 |
+
content: Can you recommend a good destination for Winter holidays?
|
234 |
+
- example_title: Programming assistant
|
235 |
+
messages:
|
236 |
+
- role: system
|
237 |
+
content: >-
|
238 |
+
You are a helpful and honest code and programming assistant. Please,
|
239 |
+
respond concisely and truthfully.
|
240 |
+
- role: user
|
241 |
+
content: Write a function that computes the nth fibonacci number.
|
242 |
inference:
|
243 |
parameters:
|
244 |
max_new_tokens: 300
|