xref: /aosp_15_r20/external/executorch/examples/models/llama/LICENSE (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1*523fa7a6SAndroid Build Coastguard WorkerLLAMA 2 COMMUNITY LICENSE AGREEMENT
2*523fa7a6SAndroid Build Coastguard WorkerLlama 2 Version Release Date: July 18, 2023
3*523fa7a6SAndroid Build Coastguard Worker
4*523fa7a6SAndroid Build Coastguard Worker"Agreement" means the terms and conditions for use, reproduction, distribution and
5*523fa7a6SAndroid Build Coastguard Workermodification of the Llama Materials set forth herein.
6*523fa7a6SAndroid Build Coastguard Worker
7*523fa7a6SAndroid Build Coastguard Worker"Documentation" means the specifications, manuals and documentation
8*523fa7a6SAndroid Build Coastguard Workeraccompanying Llama 2 distributed by Meta at ai.meta.com/resources/models-and-
9*523fa7a6SAndroid Build Coastguard Workerlibraries/llama-downloads/.
10*523fa7a6SAndroid Build Coastguard Worker
11*523fa7a6SAndroid Build Coastguard Worker"Licensee" or "you" means you, or your employer or any other person or entity (if
12*523fa7a6SAndroid Build Coastguard Workeryou are entering into this Agreement on such person or entity's behalf), of the age
13*523fa7a6SAndroid Build Coastguard Workerrequired under applicable laws, rules or regulations to provide legal consent and that
14*523fa7a6SAndroid Build Coastguard Workerhas legal authority to bind your employer or such other person or entity if you are
15*523fa7a6SAndroid Build Coastguard Workerentering in this Agreement on their behalf.
16*523fa7a6SAndroid Build Coastguard Worker
17*523fa7a6SAndroid Build Coastguard Worker"Llama 2" means the foundational large language models and software and
18*523fa7a6SAndroid Build Coastguard Workeralgorithms, including machine-learning model code, trained model weights,
19*523fa7a6SAndroid Build Coastguard Workerinference-enabling code, training-enabling code, fine-tuning enabling code and other
20*523fa7a6SAndroid Build Coastguard Workerelements of the foregoing distributed by Meta at ai.meta.com/resources/models-and-
21*523fa7a6SAndroid Build Coastguard Workerlibraries/llama-downloads/.
22*523fa7a6SAndroid Build Coastguard Worker
23*523fa7a6SAndroid Build Coastguard Worker"Llama Materials" means, collectively, Meta's proprietary Llama 2 and
24*523fa7a6SAndroid Build Coastguard WorkerDocumentation (and any portion thereof) made available under this Agreement.
25*523fa7a6SAndroid Build Coastguard Worker
26*523fa7a6SAndroid Build Coastguard Worker"Meta" or "we" means Meta Platforms Ireland Limited (if you are located in or, if you
27*523fa7a6SAndroid Build Coastguard Workerare an entity, your principal place of business is in the EEA or Switzerland) and Meta
28*523fa7a6SAndroid Build Coastguard WorkerPlatforms, Inc. (if you are located outside of the EEA or Switzerland).
29*523fa7a6SAndroid Build Coastguard Worker
30*523fa7a6SAndroid Build Coastguard WorkerBy clicking "I Accept" below or by using or distributing any portion or element of the
31*523fa7a6SAndroid Build Coastguard WorkerLlama Materials, you agree to be bound by this Agreement.
32*523fa7a6SAndroid Build Coastguard Worker
33*523fa7a6SAndroid Build Coastguard Worker1. License Rights and Redistribution.
34*523fa7a6SAndroid Build Coastguard Worker
35*523fa7a6SAndroid Build Coastguard Worker      a. Grant of Rights. You are granted a non-exclusive, worldwide, non-
36*523fa7a6SAndroid Build Coastguard Workertransferable and royalty-free limited license under Meta's intellectual property or
37*523fa7a6SAndroid Build Coastguard Workerother rights owned by Meta embodied in the Llama Materials to use, reproduce,
38*523fa7a6SAndroid Build Coastguard Workerdistribute, copy, create derivative works of, and make modifications to the Llama
39*523fa7a6SAndroid Build Coastguard WorkerMaterials.
40*523fa7a6SAndroid Build Coastguard Worker
41*523fa7a6SAndroid Build Coastguard Worker      b. Redistribution and Use.
42*523fa7a6SAndroid Build Coastguard Worker
43*523fa7a6SAndroid Build Coastguard Worker            i. If you distribute or make the Llama Materials, or any derivative works
44*523fa7a6SAndroid Build Coastguard Workerthereof, available to a third party, you shall provide a copy of this Agreement to such
45*523fa7a6SAndroid Build Coastguard Workerthird party.
46*523fa7a6SAndroid Build Coastguard Worker            ii.  If you receive Llama Materials, or any derivative works thereof, from
47*523fa7a6SAndroid Build Coastguard Workera Licensee as part of an integrated end user product, then Section 2 of this
48*523fa7a6SAndroid Build Coastguard WorkerAgreement will not apply to you.
49*523fa7a6SAndroid Build Coastguard Worker
50*523fa7a6SAndroid Build Coastguard Worker            iii. You must retain in all copies of the Llama Materials that you
51*523fa7a6SAndroid Build Coastguard Workerdistribute the following attribution notice within a "Notice" text file distributed as a
52*523fa7a6SAndroid Build Coastguard Workerpart of such copies: "Llama 2 is licensed under the LLAMA 2 Community License,
53*523fa7a6SAndroid Build Coastguard WorkerCopyright (c) Meta Platforms, Inc. All Rights Reserved."
54*523fa7a6SAndroid Build Coastguard Worker
55*523fa7a6SAndroid Build Coastguard Worker            iv. Your use of the Llama Materials must comply with applicable laws
56*523fa7a6SAndroid Build Coastguard Workerand regulations (including trade compliance laws and regulations) and adhere to the
57*523fa7a6SAndroid Build Coastguard WorkerAcceptable Use Policy for the Llama Materials (available at
58*523fa7a6SAndroid Build Coastguard Workerhttps://ai.meta.com/llama/use-policy), which is hereby incorporated by reference into
59*523fa7a6SAndroid Build Coastguard Workerthis Agreement.
60*523fa7a6SAndroid Build Coastguard Worker
61*523fa7a6SAndroid Build Coastguard Worker            v. You will not use the Llama Materials or any output or results of the
62*523fa7a6SAndroid Build Coastguard WorkerLlama Materials to improve any other large language model (excluding Llama 2 or
63*523fa7a6SAndroid Build Coastguard Workerderivative works thereof).
64*523fa7a6SAndroid Build Coastguard Worker
65*523fa7a6SAndroid Build Coastguard Worker2. Additional Commercial Terms. If, on the Llama 2 version release date, the
66*523fa7a6SAndroid Build Coastguard Workermonthly active users of the products or services made available by or for Licensee,
67*523fa7a6SAndroid Build Coastguard Workeror Licensee's affiliates, is greater than 700 million monthly active users in the
68*523fa7a6SAndroid Build Coastguard Workerpreceding calendar month, you must request a license from Meta, which Meta may
69*523fa7a6SAndroid Build Coastguard Workergrant to you in its sole discretion, and you are not authorized to exercise any of the
70*523fa7a6SAndroid Build Coastguard Workerrights under this Agreement unless or until Meta otherwise expressly grants you
71*523fa7a6SAndroid Build Coastguard Workersuch rights.
72*523fa7a6SAndroid Build Coastguard Worker
73*523fa7a6SAndroid Build Coastguard Worker3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE
74*523fa7a6SAndroid Build Coastguard WorkerLLAMA MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE
75*523fa7a6SAndroid Build Coastguard WorkerPROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
76*523fa7a6SAndroid Build Coastguard WorkerEITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
77*523fa7a6SAndroid Build Coastguard WorkerWARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR
78*523fa7a6SAndroid Build Coastguard WorkerFITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE
79*523fa7a6SAndroid Build Coastguard WorkerFOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING
80*523fa7a6SAndroid Build Coastguard WorkerTHE LLAMA MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR
81*523fa7a6SAndroid Build Coastguard WorkerUSE OF THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS.
82*523fa7a6SAndroid Build Coastguard Worker
83*523fa7a6SAndroid Build Coastguard Worker4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE
84*523fa7a6SAndroid Build Coastguard WorkerLIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT,
85*523fa7a6SAndroid Build Coastguard WorkerNEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS
86*523fa7a6SAndroid Build Coastguard WorkerAGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL,
87*523fa7a6SAndroid Build Coastguard WorkerCONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN
88*523fa7a6SAndroid Build Coastguard WorkerIF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF
89*523fa7a6SAndroid Build Coastguard WorkerANY OF THE FOREGOING.
90*523fa7a6SAndroid Build Coastguard Worker
91*523fa7a6SAndroid Build Coastguard Worker5. Intellectual Property.
92*523fa7a6SAndroid Build Coastguard Worker
93*523fa7a6SAndroid Build Coastguard Worker      a. No trademark licenses are granted under this Agreement, and in
94*523fa7a6SAndroid Build Coastguard Workerconnection with the Llama Materials, neither Meta nor Licensee may use any name
95*523fa7a6SAndroid Build Coastguard Workeror mark owned by or associated with the other or any of its affiliates, except as
96*523fa7a6SAndroid Build Coastguard Workerrequired for reasonable and customary use in describing and redistributing the
97*523fa7a6SAndroid Build Coastguard WorkerLlama Materials.
98*523fa7a6SAndroid Build Coastguard Worker
99*523fa7a6SAndroid Build Coastguard Worker      b. Subject to Meta's ownership of Llama Materials and derivatives made by or
100*523fa7a6SAndroid Build Coastguard Workerfor Meta, with respect to any derivative works and modifications of the Llama
101*523fa7a6SAndroid Build Coastguard WorkerMaterials that are made by you, as between you and Meta, you are and will be the
102*523fa7a6SAndroid Build Coastguard Workerowner of such derivative works and modifications.
103*523fa7a6SAndroid Build Coastguard Worker
104*523fa7a6SAndroid Build Coastguard Worker      c. If you institute litigation or other proceedings against Meta or any entity
105*523fa7a6SAndroid Build Coastguard Worker(including a cross-claim or counterclaim in a lawsuit) alleging that the Llama
106*523fa7a6SAndroid Build Coastguard WorkerMaterials or Llama 2 outputs or results, or any portion of any of the foregoing,
107*523fa7a6SAndroid Build Coastguard Workerconstitutes an infringement of intellectual property or other rights owned or licensable
108*523fa7a6SAndroid Build Coastguard Workerby you, then any licenses granted to you under this Agreement shall terminate as of
109*523fa7a6SAndroid Build Coastguard Workerthe date such litigation or claim is filed or instituted. You will indemnify and hold
110*523fa7a6SAndroid Build Coastguard Workerharmless Meta from and against any claim by any third party arising out of or related
111*523fa7a6SAndroid Build Coastguard Workerto your use or distribution of the Llama Materials.
112*523fa7a6SAndroid Build Coastguard Worker
113*523fa7a6SAndroid Build Coastguard Worker6. Term and Termination. The term of this Agreement will commence upon your
114*523fa7a6SAndroid Build Coastguard Workeracceptance of this Agreement or access to the Llama Materials and will continue in
115*523fa7a6SAndroid Build Coastguard Workerfull force and effect until terminated in accordance with the terms and conditions
116*523fa7a6SAndroid Build Coastguard Workerherein. Meta may terminate this Agreement if you are in breach of any term or
117*523fa7a6SAndroid Build Coastguard Workercondition of this Agreement. Upon termination of this Agreement, you shall delete
118*523fa7a6SAndroid Build Coastguard Workerand cease use of the Llama Materials. Sections 3, 4 and 7 shall survive the
119*523fa7a6SAndroid Build Coastguard Workertermination of this Agreement.
120*523fa7a6SAndroid Build Coastguard Worker
121*523fa7a6SAndroid Build Coastguard Worker7. Governing Law and Jurisdiction. This Agreement will be governed and
122*523fa7a6SAndroid Build Coastguard Workerconstrued under the laws of the State of California without regard to choice of law
123*523fa7a6SAndroid Build Coastguard Workerprinciples, and the UN Convention on Contracts for the International Sale of Goods
124*523fa7a6SAndroid Build Coastguard Workerdoes not apply to this Agreement. The courts of California shall have exclusive
125*523fa7a6SAndroid Build Coastguard Workerjurisdiction of any dispute arising out of this Agreement.
126