TheBloke commited on
Commit
7b01493
1 Parent(s): 1b595e2

AWQ model commit

Browse files
LICENSE.txt ADDED
@@ -0,0 +1,409 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Attribution-NonCommercial 4.0 International
2
+
3
+ Contribution: Elinas & ZeusLabs
4
+
5
+ =======================================================================
6
+
7
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
8
+ does not provide legal services or legal advice. Distribution of
9
+ Creative Commons public licenses does not create a lawyer-client or
10
+ other relationship. Creative Commons makes its licenses and related
11
+ information available on an "as-is" basis. Creative Commons gives no
12
+ warranties regarding its licenses, any material licensed under their
13
+ terms and conditions, or any related information. Creative Commons
14
+ disclaims all liability for damages resulting from their use to the
15
+ fullest extent possible.
16
+
17
+ Using Creative Commons Public Licenses
18
+
19
+ Creative Commons public licenses provide a standard set of terms and
20
+ conditions that creators and other rights holders may use to share
21
+ original works of authorship and other material subject to copyright
22
+ and certain other rights specified in the public license below. The
23
+ following considerations are for informational purposes only, are not
24
+ exhaustive, and do not form part of our licenses.
25
+
26
+ Considerations for licensors: Our public licenses are
27
+ intended for use by those authorized to give the public
28
+ permission to use material in ways otherwise restricted by
29
+ copyright and certain other rights. Our licenses are
30
+ irrevocable. Licensors should read and understand the terms
31
+ and conditions of the license they choose before applying it.
32
+ Licensors should also secure all rights necessary before
33
+ applying our licenses so that the public can reuse the
34
+ material as expected. Licensors should clearly mark any
35
+ material not subject to the license. This includes other CC-
36
+ licensed material, or material used under an exception or
37
+ limitation to copyright. More considerations for licensors:
38
+ wiki.creativecommons.org/Considerations_for_licensors
39
+
40
+ Considerations for the public: By using one of our public
41
+ licenses, a licensor grants the public permission to use the
42
+ licensed material under specified terms and conditions. If
43
+ the licensor's permission is not necessary for any reason--for
44
+ example, because of any applicable exception or limitation to
45
+ copyright--then that use is not regulated by the license. Our
46
+ licenses grant only permissions under copyright and certain
47
+ other rights that a licensor has authority to grant. Use of
48
+ the licensed material may still be restricted for other
49
+ reasons, including because others have copyright or other
50
+ rights in the material. A licensor may make special requests,
51
+ such as asking that all changes be marked or described.
52
+ Although not required by our licenses, you are encouraged to
53
+ respect those requests where reasonable. More considerations
54
+ for the public:
55
+ wiki.creativecommons.org/Considerations_for_licensees
56
+
57
+ =======================================================================
58
+
59
+ Creative Commons Attribution-NonCommercial 4.0 International Public
60
+ License
61
+
62
+ By exercising the Licensed Rights (defined below), You accept and agree
63
+ to be bound by the terms and conditions of this Creative Commons
64
+ Attribution-NonCommercial 4.0 International Public License ("Public
65
+ License"). To the extent this Public License may be interpreted as a
66
+ contract, You are granted the Licensed Rights in consideration of Your
67
+ acceptance of these terms and conditions, and the Licensor grants You
68
+ such rights in consideration of benefits the Licensor receives from
69
+ making the Licensed Material available under these terms and
70
+ conditions.
71
+
72
+
73
+ Section 1 -- Definitions.
74
+
75
+ a. Adapted Material means material subject to Copyright and Similar
76
+ Rights that is derived from or based upon the Licensed Material
77
+ and in which the Licensed Material is translated, altered,
78
+ arranged, transformed, or otherwise modified in a manner requiring
79
+ permission under the Copyright and Similar Rights held by the
80
+ Licensor. For purposes of this Public License, where the Licensed
81
+ Material is a musical work, performance, or sound recording,
82
+ Adapted Material is always produced where the Licensed Material is
83
+ synched in timed relation with a moving image.
84
+
85
+ b. Adapter's License means the license You apply to Your Copyright
86
+ and Similar Rights in Your contributions to Adapted Material in
87
+ accordance with the terms and conditions of this Public License.
88
+
89
+ c. Copyright and Similar Rights means copyright and/or similar rights
90
+ closely related to copyright including, without limitation,
91
+ performance, broadcast, sound recording, and Sui Generis Database
92
+ Rights, without regard to how the rights are labeled or
93
+ categorized. For purposes of this Public License, the rights
94
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
95
+ Rights.
96
+ d. Effective Technological Measures means those measures that, in the
97
+ absence of proper authority, may not be circumvented under laws
98
+ fulfilling obligations under Article 11 of the WIPO Copyright
99
+ Treaty adopted on December 20, 1996, and/or similar international
100
+ agreements.
101
+
102
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
103
+ any other exception or limitation to Copyright and Similar Rights
104
+ that applies to Your use of the Licensed Material.
105
+
106
+ f. Licensed Material means the artistic or literary work, database,
107
+ or other material to which the Licensor applied this Public
108
+ License.
109
+
110
+ g. Licensed Rights means the rights granted to You subject to the
111
+ terms and conditions of this Public License, which are limited to
112
+ all Copyright and Similar Rights that apply to Your use of the
113
+ Licensed Material and that the Licensor has authority to license.
114
+
115
+ h. Licensor means the individual(s) or entity(ies) granting rights
116
+ under this Public License.
117
+
118
+ i. NonCommercial means not primarily intended for or directed towards
119
+ commercial advantage or monetary compensation. For purposes of
120
+ this Public License, the exchange of the Licensed Material for
121
+ other material subject to Copyright and Similar Rights by digital
122
+ file-sharing or similar means is NonCommercial provided there is
123
+ no payment of monetary compensation in connection with the
124
+ exchange.
125
+
126
+ j. Share means to provide material to the public by any means or
127
+ process that requires permission under the Licensed Rights, such
128
+ as reproduction, public display, public performance, distribution,
129
+ dissemination, communication, or importation, and to make material
130
+ available to the public including in ways that members of the
131
+ public may access the material from a place and at a time
132
+ individually chosen by them.
133
+
134
+ k. Sui Generis Database Rights means rights other than copyright
135
+ resulting from Directive 96/9/EC of the European Parliament and of
136
+ the Council of 11 March 1996 on the legal protection of databases,
137
+ as amended and/or succeeded, as well as other essentially
138
+ equivalent rights anywhere in the world.
139
+
140
+ l. You means the individual or entity exercising the Licensed Rights
141
+ under this Public License. Your has a corresponding meaning.
142
+
143
+
144
+ Section 2 -- Scope.
145
+
146
+ a. License grant.
147
+
148
+ 1. Subject to the terms and conditions of this Public License,
149
+ the Licensor hereby grants You a worldwide, royalty-free,
150
+ non-sublicensable, non-exclusive, irrevocable license to
151
+ exercise the Licensed Rights in the Licensed Material to:
152
+
153
+ a. reproduce and Share the Licensed Material, in whole or
154
+ in part, for NonCommercial purposes only; and
155
+
156
+ b. produce, reproduce, and Share Adapted Material for
157
+ NonCommercial purposes only.
158
+
159
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
160
+ Exceptions and Limitations apply to Your use, this Public
161
+ License does not apply, and You do not need to comply with
162
+ its terms and conditions.
163
+
164
+ 3. Term. The term of this Public License is specified in Section
165
+ 6(a).
166
+
167
+ 4. Media and formats; technical modifications allowed. The
168
+ Licensor authorizes You to exercise the Licensed Rights in
169
+ all media and formats whether now known or hereafter created,
170
+ and to make technical modifications necessary to do so. The
171
+ Licensor waives and/or agrees not to assert any right or
172
+ authority to forbid You from making technical modifications
173
+ necessary to exercise the Licensed Rights, including
174
+ technical modifications necessary to circumvent Effective
175
+ Technological Measures. For purposes of this Public License,
176
+ simply making modifications authorized by this Section 2(a)
177
+ (4) never produces Adapted Material.
178
+
179
+ 5. Downstream recipients.
180
+
181
+ a. Offer from the Licensor -- Licensed Material. Every
182
+ recipient of the Licensed Material automatically
183
+ receives an offer from the Licensor to exercise the
184
+ Licensed Rights under the terms and conditions of this
185
+ Public License.
186
+
187
+ b. No downstream restrictions. You may not offer or impose
188
+ any additional or different terms or conditions on, or
189
+ apply any Effective Technological Measures to, the
190
+ Licensed Material if doing so restricts exercise of the
191
+ Licensed Rights by any recipient of the Licensed
192
+ Material.
193
+
194
+ 6. No endorsement. Nothing in this Public License constitutes or
195
+ may be construed as permission to assert or imply that You
196
+ are, or that Your use of the Licensed Material is, connected
197
+ with, or sponsored, endorsed, or granted official status by,
198
+ the Licensor or others designated to receive attribution as
199
+ provided in Section 3(a)(1)(A)(i).
200
+
201
+ b. Other rights.
202
+
203
+ 1. Moral rights, such as the right of integrity, are not
204
+ licensed under this Public License, nor are publicity,
205
+ privacy, and/or other similar personality rights; however, to
206
+ the extent possible, the Licensor waives and/or agrees not to
207
+ assert any such rights held by the Licensor to the limited
208
+ extent necessary to allow You to exercise the Licensed
209
+ Rights, but not otherwise.
210
+
211
+ 2. Patent and trademark rights are not licensed under this
212
+ Public License.
213
+
214
+ 3. To the extent possible, the Licensor waives any right to
215
+ collect royalties from You for the exercise of the Licensed
216
+ Rights, whether directly or through a collecting society
217
+ under any voluntary or waivable statutory or compulsory
218
+ licensing scheme. In all other cases the Licensor expressly
219
+ reserves any right to collect such royalties, including when
220
+ the Licensed Material is used other than for NonCommercial
221
+ purposes.
222
+
223
+
224
+ Section 3 -- License Conditions.
225
+
226
+ Your exercise of the Licensed Rights is expressly made subject to the
227
+ following conditions.
228
+
229
+ a. Attribution.
230
+
231
+ 1. If You Share the Licensed Material (including in modified
232
+ form), You must:
233
+
234
+ a. retain the following if it is supplied by the Licensor
235
+ with the Licensed Material:
236
+
237
+ i. identification of the creator(s) of the Licensed
238
+ Material and any others designated to receive
239
+ attribution, in any reasonable manner requested by
240
+ the Licensor (including by pseudonym if
241
+ designated);
242
+
243
+ ii. a copyright notice;
244
+
245
+ iii. a notice that refers to this Public License;
246
+
247
+ iv. a notice that refers to the disclaimer of
248
+ warranties;
249
+
250
+ v. a URI or hyperlink to the Licensed Material to the
251
+ extent reasonably practicable;
252
+
253
+ b. indicate if You modified the Licensed Material and
254
+ retain an indication of any previous modifications; and
255
+
256
+ c. indicate the Licensed Material is licensed under this
257
+ Public License, and include the text of, or the URI or
258
+ hyperlink to, this Public License.
259
+
260
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
261
+ reasonable manner based on the medium, means, and context in
262
+ which You Share the Licensed Material. For example, it may be
263
+ reasonable to satisfy the conditions by providing a URI or
264
+ hyperlink to a resource that includes the required
265
+ information.
266
+
267
+ 3. If requested by the Licensor, You must remove any of the
268
+ information required by Section 3(a)(1)(A) to the extent
269
+ reasonably practicable.
270
+
271
+ 4. If You Share Adapted Material You produce, the Adapter's
272
+ License You apply must not prevent recipients of the Adapted
273
+ Material from complying with this Public License.
274
+
275
+
276
+ Section 4 -- Sui Generis Database Rights.
277
+
278
+ Where the Licensed Rights include Sui Generis Database Rights that
279
+ apply to Your use of the Licensed Material:
280
+
281
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
282
+ to extract, reuse, reproduce, and Share all or a substantial
283
+ portion of the contents of the database for NonCommercial purposes
284
+ only;
285
+
286
+ b. if You include all or a substantial portion of the database
287
+ contents in a database in which You have Sui Generis Database
288
+ Rights, then the database in which You have Sui Generis Database
289
+ Rights (but not its individual contents) is Adapted Material; and
290
+
291
+ c. You must comply with the conditions in Section 3(a) if You Share
292
+ all or a substantial portion of the contents of the database.
293
+
294
+ For the avoidance of doubt, this Section 4 supplements and does not
295
+ replace Your obligations under this Public License where the Licensed
296
+ Rights include other Copyright and Similar Rights.
297
+
298
+
299
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
300
+
301
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
302
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
303
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
304
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
305
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
306
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
307
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
308
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
309
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
310
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
311
+
312
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
313
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
314
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
315
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
316
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
317
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
318
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
319
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
320
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
321
+
322
+ c. The disclaimer of warranties and limitation of liability provided
323
+ above shall be interpreted in a manner that, to the extent
324
+ possible, most closely approximates an absolute disclaimer and
325
+ waiver of all liability.
326
+
327
+
328
+ Section 6 -- Term and Termination.
329
+
330
+ a. This Public License applies for the term of the Copyright and
331
+ Similar Rights licensed here. However, if You fail to comply with
332
+ this Public License, then Your rights under this Public License
333
+ terminate automatically.
334
+
335
+ b. Where Your right to use the Licensed Material has terminated under
336
+ Section 6(a), it reinstates:
337
+
338
+ 1. automatically as of the date the violation is cured, provided
339
+ it is cured within 30 days of Your discovery of the
340
+ violation; or
341
+
342
+ 2. upon express reinstatement by the Licensor.
343
+
344
+ For the avoidance of doubt, this Section 6(b) does not affect any
345
+ right the Licensor may have to seek remedies for Your violations
346
+ of this Public License.
347
+
348
+ c. For the avoidance of doubt, the Licensor may also offer the
349
+ Licensed Material under separate terms or conditions or stop
350
+ distributing the Licensed Material at any time; however, doing so
351
+ will not terminate this Public License.
352
+
353
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
354
+ License.
355
+
356
+
357
+ Section 7 -- Other Terms and Conditions.
358
+
359
+ a. The Licensor shall not be bound by any additional or different
360
+ terms or conditions communicated by You unless expressly agreed.
361
+
362
+ b. Any arrangements, understandings, or agreements regarding the
363
+ Licensed Material not stated herein are separate from and
364
+ independent of the terms and conditions of this Public License.
365
+
366
+
367
+ Section 8 -- Interpretation.
368
+
369
+ a. For the avoidance of doubt, this Public License does not, and
370
+ shall not be interpreted to, reduce, limit, restrict, or impose
371
+ conditions on any use of the Licensed Material that could lawfully
372
+ be made without permission under this Public License.
373
+
374
+ b. To the extent possible, if any provision of this Public License is
375
+ deemed unenforceable, it shall be automatically reformed to the
376
+ minimum extent necessary to make it enforceable. If the provision
377
+ cannot be reformed, it shall be severed from this Public License
378
+ without affecting the enforceability of the remaining terms and
379
+ conditions.
380
+
381
+ c. No term or condition of this Public License will be waived and no
382
+ failure to comply consented to unless expressly agreed to by the
383
+ Licensor.
384
+
385
+ d. Nothing in this Public License constitutes or may be interpreted
386
+ as a limitation upon, or waiver of, any privileges and immunities
387
+ that apply to the Licensor or You, including from the legal
388
+ processes of any jurisdiction or authority.
389
+
390
+ =======================================================================
391
+
392
+ Creative Commons is not a party to its public
393
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
394
+ its public licenses to material it publishes and in those instances
395
+ will be considered the “Licensor.” The text of the Creative Commons
396
+ public licenses is dedicated to the public domain under the CC0 Public
397
+ Domain Dedication. Except for the limited purpose of indicating that
398
+ material is shared under a Creative Commons public license or as
399
+ otherwise permitted by the Creative Commons policies published at
400
+ creativecommons.org/policies, Creative Commons does not authorize the
401
+ use of the trademark "Creative Commons" or any other trademark or logo
402
+ of Creative Commons without its prior written consent including,
403
+ without limitation, in connection with any unauthorized modifications
404
+ to any of its public licenses or any other arrangements,
405
+ understandings, or agreements concerning use of licensed material. For
406
+ the avoidance of doubt, this paragraph does not form part of the
407
+ public licenses.
408
+
409
+ Creative Commons may be contacted at creativecommons.org.
LLAMA-LICENSE.txt ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LLAMA 2 COMMUNITY LICENSE AGREEMENT
2
+ Llama 2 Version Release Date: July 18, 2023
3
+
4
+ "Agreement" means the terms and conditions for use, reproduction, distribution and
5
+ modification of the Llama Materials set forth herein.
6
+
7
+ "Documentation" means the specifications, manuals and documentation
8
+ accompanying Llama 2 distributed by Meta at ai.meta.com/resources/models-and-
9
+ libraries/llama-downloads/.
10
+
11
+ "Licensee" or "you" means you, or your employer or any other person or entity (if
12
+ you are entering into this Agreement on such person or entity's behalf), of the age
13
+ required under applicable laws, rules or regulations to provide legal consent and that
14
+ has legal authority to bind your employer or such other person or entity if you are
15
+ entering in this Agreement on their behalf.
16
+
17
+ "Llama 2" means the foundational large language models and software and
18
+ algorithms, including machine-learning model code, trained model weights,
19
+ inference-enabling code, training-enabling code, fine-tuning enabling code and other
20
+ elements of the foregoing distributed by Meta at ai.meta.com/resources/models-and-
21
+ libraries/llama-downloads/.
22
+
23
+ "Llama Materials" means, collectively, Meta's proprietary Llama 2 and
24
+ Documentation (and any portion thereof) made available under this Agreement.
25
+
26
+ "Meta" or "we" means Meta Platforms Ireland Limited (if you are located in or, if you
27
+ are an entity, your principal place of business is in the EEA or Switzerland) and Meta
28
+ Platforms, Inc. (if you are located outside of the EEA or Switzerland).
29
+
30
+ By clicking "I Accept" below or by using or distributing any portion or element of the
31
+ Llama Materials, you agree to be bound by this Agreement.
32
+
33
+ 1. License Rights and Redistribution.
34
+
35
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-
36
+ transferable and royalty-free limited license under Meta's intellectual property or
37
+ other rights owned by Meta embodied in the Llama Materials to use, reproduce,
38
+ distribute, copy, create derivative works of, and make modifications to the Llama
39
+ Materials.
40
+
41
+ b. Redistribution and Use.
42
+
43
+ i. If you distribute or make the Llama Materials, or any derivative works
44
+ thereof, available to a third party, you shall provide a copy of this Agreement to such
45
+ third party.
46
+ ii. If you receive Llama Materials, or any derivative works thereof, from
47
+ a Licensee as part of an integrated end user product, then Section 2 of this
48
+ Agreement will not apply to you.
49
+
50
+ iii. You must retain in all copies of the Llama Materials that you
51
+ distribute the following attribution notice within a "Notice" text file distributed as a
52
+ part of such copies: "Llama 2 is licensed under the LLAMA 2 Community License,
53
+ Copyright (c) Meta Platforms, Inc. All Rights Reserved."
54
+
55
+ iv. Your use of the Llama Materials must comply with applicable laws
56
+ and regulations (including trade compliance laws and regulations) and adhere to the
57
+ Acceptable Use Policy for the Llama Materials (available at
58
+ https://ai.meta.com/llama/use-policy), which is hereby incorporated by reference into
59
+ this Agreement.
60
+
61
+ v. You will not use the Llama Materials or any output or results of the
62
+ Llama Materials to improve any other large language model (excluding Llama 2 or
63
+ derivative works thereof).
64
+
65
+ 2. Additional Commercial Terms. If, on the Llama 2 version release date, the
66
+ monthly active users of the products or services made available by or for Licensee,
67
+ or Licensee's affiliates, is greater than 700 million monthly active users in the
68
+ preceding calendar month, you must request a license from Meta, which Meta may
69
+ grant to you in its sole discretion, and you are not authorized to exercise any of the
70
+ rights under this Agreement unless or until Meta otherwise expressly grants you
71
+ such rights.
72
+
73
+ 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE
74
+ LLAMA MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE
75
+ PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
76
+ EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
77
+ WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR
78
+ FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE
79
+ FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING
80
+ THE LLAMA MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR
81
+ USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS.
82
+
83
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE
84
+ LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT,
85
+ NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS
86
+ AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL,
87
+ CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN
88
+ IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF
89
+ ANY OF THE FOREGOING.
90
+
91
+ 5. Intellectual Property.
92
+
93
+ a. No trademark licenses are granted under this Agreement, and in
94
+ connection with the Llama Materials, neither Meta nor Licensee may use any name
95
+ or mark owned by or associated with the other or any of its affiliates, except as
96
+ required for reasonable and customary use in describing and redistributing the
97
+ Llama Materials.
98
+
99
+ b. Subject to Meta's ownership of Llama Materials and derivatives made by or
100
+ for Meta, with respect to any derivative works and modifications of the Llama
101
+ Materials that are made by you, as between you and Meta, you are and will be the
102
+ owner of such derivative works and modifications.
103
+
104
+ c. If you institute litigation or other proceedings against Meta or any entity
105
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the Llama
106
+ Materials or Llama 2 outputs or results, or any portion of any of the foregoing,
107
+ constitutes infringement of intellectual property or other rights owned or licensable
108
+ by you, then any licenses granted to you under this Agreement shall terminate as of
109
+ the date such litigation or claim is filed or instituted. You will indemnify and hold
110
+ harmless Meta from and against any claim by any third party arising out of or related
111
+ to your use or distribution of the Llama Materials.
112
+
113
+ 6. Term and Termination. The term of this Agreement will commence upon your
114
+ acceptance of this Agreement or access to the Llama Materials and will continue in
115
+ full force and effect until terminated in accordance with the terms and conditions
116
+ herein. Meta may terminate this Agreement if you are in breach of any term or
117
+ condition of this Agreement. Upon termination of this Agreement, you shall delete
118
+ and cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the
119
+ termination of this Agreement.
120
+
121
+ 7. Governing Law and Jurisdiction. This Agreement will be governed and
122
+ construed under the laws of the State of California without regard to choice of law
123
+ principles, and the UN Convention on Contracts for the International Sale of Goods
124
+ does not apply to this Agreement. The courts of California shall have exclusive
125
+ jurisdiction of any dispute arising out of this Agreement.
126
+
Notice ADDED
@@ -0,0 +1 @@
 
 
1
+ Llama 2 is licensed under the LLAMA 2 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.
USE_POLICY.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Llama 2 Acceptable Use Policy
2
+
3
+ Meta is committed to promoting safe and fair use of its tools and features, including Llama 2. If you access or use Llama 2, you agree to this Acceptable Use Policy (“Policy”). The most recent copy of this policy can be found at [ai.meta.com/llama/use-policy](http://ai.meta.com/llama/use-policy).
4
+
5
+ ## Prohibited Uses
6
+ We want everyone to use Llama 2 safely and responsibly. You agree you will not use, or allow others to use, Llama 2 to:
7
+
8
+ 1. Violate the law or others’ rights, including to:
9
+ 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
10
+ 1. Violence or terrorism
11
+ 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
12
+ 3. Human trafficking, exploitation, and sexual violence
13
+ 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.
14
+ 5. Sexual solicitation
15
+ 6. Any other criminal activity
16
+ 2. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
17
+ 3. 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
18
+ 4. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
19
+ 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
20
+ 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 2 Materials
21
+ 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
22
+
23
+
24
+
25
+ 2. Engage in, promote, incite, facilitate, or assist in the planning or development of activities that present a risk of death or bodily harm to individuals, including use of Llama 2 related to the following:
26
+ 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
27
+ 2. Guns and illegal weapons (including weapon development)
28
+ 3. Illegal drugs and regulated/controlled substances
29
+ 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
30
+ 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
31
+ 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
32
+
33
+
34
+
35
+ 3. Intentionally deceive or mislead others, including use of Llama 2 related to the following:
36
+ 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
37
+ 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
38
+ 3. Generating, promoting, or further distributing spam
39
+ 4. Impersonating another individual without consent, authorization, or legal right
40
+ 5. Representing that the use of Llama 2 or outputs are human-generated
41
+ 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
42
+ 4. Fail to appropriately disclose to end users any known dangers of your AI system
43
+
44
+ Please report any violation of this Policy, software “bug,” or other problems that could lead to a violation of this Policy through one of the following means:
45
+
46
+ * Reporting issues with the model: [github.com/facebookresearch/llama](http://github.com/facebookresearch/llama)
47
+ * Reporting risky content generated by the model: [developers.facebook.com/llama_output_feedback](http://developers.facebook.com/llama_output_feedback)
48
+ * Reporting bugs and security concerns: [facebook.com/whitehat/info](http://facebook.com/whitehat/info)
49
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama: [LlamaUseReport@meta.com](mailto:LlamaUseReport@meta.com)
50
+
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./Llama-2-70b-hf",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 8192,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 28672,
12
+ "max_position_embeddings": 4096,
13
+ "model_type": "llama",
14
+ "num_attention_heads": 64,
15
+ "num_hidden_layers": 80,
16
+ "num_key_value_heads": 8,
17
+ "pretraining_tp": 1,
18
+ "rms_norm_eps": 1e-05,
19
+ "rope_scaling": null,
20
+ "tie_word_embeddings": false,
21
+ "torch_dtype": "float16",
22
+ "transformers_version": "4.33.0.dev0",
23
+ "use_cache": true,
24
+ "vocab_size": 32000,
25
+ "pad_token_id": 0
26
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "do_sample": true,
4
+ "eos_token_id": 2,
5
+ "max_length": 4096,
6
+ "pad_token_id": 0,
7
+ "temperature": 0.6,
8
+ "top_p": 0.9,
9
+ "transformers_version": "4.33.0.dev0"
10
+ }
model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8486d7df2155a957bf7b8250099436770e7c9a32159e301ac9b3780aeac9e74
3
+ size 9938623736
model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7fa93168f4027a5e5cfa351a3b054ef1b5c4af10674b4c1f6b985d529977eff
3
+ size 9902482368
model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7eca3ab7792bcfd9643e9b45f6a25ab1cff0aa72e903dff706728d1b7032141
3
+ size 9902482360
model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e8733a74e86640724181cc929beffed2663bbed58a3a5ae23fac1a7e2c7aedb
3
+ size 6870291192
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
quant_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "zero_point": true,
3
+ "q_group_size": 128,
4
+ "w_bit": 4,
5
+ "version": "GEMM"
6
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "bos_token": {
5
+ "__type": "AddedToken",
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "clean_up_tokenization_spaces": false,
13
+ "eos_token": {
14
+ "__type": "AddedToken",
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "legacy": false,
22
+ "model_max_length": 1000000000000000019884624838656,
23
+ "pad_token": null,
24
+ "padding_side": "right",
25
+ "sp_model_kwargs": {},
26
+ "spaces_between_special_tokens": false,
27
+ "tokenizer_class": "LlamaTokenizer",
28
+ "trust_remote_code": false,
29
+ "unk_token": {
30
+ "__type": "AddedToken",
31
+ "content": "<unk>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "use_default_system_prompt": true,
38
+ "use_fast": true
39
+ }