Skip to content

Commit 4767f09

Browse files
committed
Initial commit
0 parents  commit 4767f09

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4619
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
__pycache__
3+
.ipynb_checkpoints

CODE_OF_CONDUCT.md

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to make participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies within all project spaces, and it also applies when
49+
an individual is representing the project or its community in public spaces.
50+
Examples of representing a project or community include using an official
51+
project e-mail address, posting via an official social media account, or acting
52+
as an appointed representative at an online or offline event. Representation of
53+
a project may be further defined and clarified by project maintainers.
54+
55+
This Code of Conduct also applies outside the project spaces when there is a
56+
reasonable belief that an individual's behavior may have a negative impact on
57+
the project or its community.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported by contacting the project team at <[email protected]>. All
63+
complaints will be reviewed and investigated and will result in a response that
64+
is deemed necessary and appropriate to the circumstances. The project team is
65+
obligated to maintain confidentiality with regard to the reporter of an incident.
66+
Further details of specific enforcement policies may be posted separately.
67+
68+
Project maintainers who do not follow or enforce the Code of Conduct in good
69+
faith may face temporary or permanent repercussions as determined by other
70+
members of the project's leadership.
71+
72+
## Attribution
73+
74+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
75+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
76+
77+
[homepage]: https://www.contributor-covenant.org
78+
79+
For answers to common questions about this code of conduct, see
80+
https://www.contributor-covenant.org/faq

CONTRIBUTING.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Contributing to llama-recipes
2+
We want to make contributing to this project as easy and transparent as
3+
possible.
4+
5+
## Pull Requests
6+
We actively welcome your pull requests.
7+
8+
1. Fork the repo and create your branch from `main`.
9+
2. If you've added code that should be tested, add tests.
10+
3. If you've changed APIs, update the documentation.
11+
4. Ensure the test suite passes.
12+
5. Make sure your code lints.
13+
6. If you haven't already, complete the Contributor License Agreement ("CLA").
14+
15+
## Contributor License Agreement ("CLA")
16+
In order to accept your pull request, we need you to submit a CLA. You only need
17+
to do this once to work on any of Facebook's open source projects.
18+
19+
Complete your CLA here: <https://code.facebook.com/cla>
20+
21+
## Issues
22+
We use GitHub issues to track public bugs. Please ensure your description is
23+
clear and has sufficient instructions to be able to reproduce the issue.
24+
25+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
26+
disclosure of security bugs. In those cases, please go through the process
27+
outlined on that page and do not file a public issue.
28+
29+
## License
30+
By contributing to llama-recipes, you agree that your contributions will be licensed
31+
under the LICENSE file in the root directory of this source tree.

LICENSE

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
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.

0 commit comments

Comments
 (0)