obvr commited on
Commit
18d832f
1 Parent(s): 4139024

Upload folder using huggingface_hub (#2)

Browse files

- c98bd16f16c91c8f1b972beefe21026ebf698196384b6b4fb1efb96ddf626bd2 (4313b665307e130e2c4d308b25670a3d60acd64d)
- b98cd4ea2693a1fc738a4f0081a8d0104ffaa81393ade2beb5df09f0ab84aa05 (d453504c4e0860c5fe7f940286fba80e49ec9294)
- ae2fd333de3ee265b84c79d8d512925d1fc6b61da8d8fe5829c9d246b9604f55 (2b6020f290892baf2ddd0a5a047a780ca5e9491d)
- 4f7ffdc0d7e4549180b035e82da5bc4bd60eaae7aeb53b2dafec20aaa229159c (99595cf984291017f9010991204e41e8b1e1f8d2)

README.md CHANGED
@@ -12,197 +12,156 @@ tags:
12
  pipeline_tag: text-generation
13
  license_name: llama3
14
  license_link: LICENSE
15
- extra_gated_prompt: >-
16
- ### META LLAMA 3 COMMUNITY LICENSE AGREEMENT
17
-
18
- Meta Llama 3 Version Release Date: April 18, 2024
19
-
20
- "Agreement" means the terms and conditions for use, reproduction, distribution
21
- and modification of the Llama Materials set forth herein.
22
-
23
- "Documentation" means the specifications, manuals and documentation
24
- accompanying Meta Llama 3 distributed by Meta at
25
- https://llama.meta.com/get-started/.
26
-
27
- "Licensee" or "you" means you, or your employer or any other person or entity
28
- (if you are entering into this Agreement on such person or entity’s behalf),
29
- of the age required under applicable laws, rules or regulations to provide
30
- legal consent and that has legal authority to bind your employer or such other
31
- person or entity if you are entering in this Agreement on their behalf.
32
-
33
- "Meta Llama 3" means the foundational large language models and software and
34
- algorithms, including machine-learning model code, trained model weights,
35
- inference-enabling code, training-enabling code, fine-tuning enabling code and
36
- other elements of the foregoing distributed by Meta at
37
- https://llama.meta.com/llama-downloads.
38
-
39
- "Llama Materials" means, collectively, Meta’s proprietary Meta Llama 3 and
40
- Documentation (and any portion thereof) made available under this Agreement.
41
-
42
- "Meta" or "we" means Meta Platforms Ireland Limited (if you are located in or,
43
- if you are an entity, your principal place of business is in the EEA or
44
- Switzerland) and Meta Platforms, Inc. (if you are located outside of the EEA
45
- or Switzerland).
46
-
47
- 1. License Rights and Redistribution.
48
-
49
- a. Grant of Rights. You are granted a non-exclusive, worldwide,
50
- non-transferable and royalty-free limited license under Meta’s intellectual
51
- property or other rights owned by Meta embodied in the Llama Materials to use,
52
- reproduce, distribute, copy, create derivative works of, and make
53
- modifications to the Llama Materials.
54
-
55
- b. Redistribution and Use.
56
-
57
- i. If you distribute or make available the Llama Materials (or any derivative
58
- works thereof), or a product or service that uses any of them, including
59
- another AI model, you shall (A) provide a copy of this Agreement with any such
60
- Llama Materials; and (B) prominently display “Built with Meta Llama 3” on a
61
- related website, user interface, blogpost, about page, or product
62
- documentation. If you use the Llama Materials to create, train, fine tune, or
63
- otherwise improve an AI model, which is distributed or made available, you
64
- shall also include “Llama 3” at the beginning of any such AI model name.
65
-
66
- ii. If you receive Llama Materials, or any derivative works thereof, from a
67
- Licensee as part of an integrated end user product, then Section 2 of this
68
- Agreement will not apply to you.
69
-
70
- iii. You must retain in all copies of the Llama Materials that you distribute
71
- the following attribution notice within a “Notice” text file distributed as a
72
- part of such copies: “Meta Llama 3 is licensed under the Meta Llama 3
73
- Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.”
74
-
75
- iv. Your use of the Llama Materials must comply with applicable laws and
76
- regulations (including trade compliance laws and regulations) and adhere to
77
- the Acceptable Use Policy for the Llama Materials (available at
78
- https://llama.meta.com/llama3/use-policy), which is hereby incorporated by
79
- reference into this Agreement.
80
-
81
- v. You will not use the Llama Materials or any output or results of the Llama
82
- Materials to improve any other large language model (excluding Meta Llama 3 or
83
- derivative works thereof).
84
-
85
- 2. Additional Commercial Terms. If, on the Meta Llama 3 version release date,
86
- the monthly active users of the products or services made available by or for
87
- Licensee, or Licensee’s affiliates, is greater than 700 million monthly active
88
- users in the preceding calendar month, you must request a license from Meta,
89
- which Meta may grant to you in its sole discretion, and you are not authorized
90
- to exercise any of the rights under this Agreement unless or until Meta
91
- otherwise expressly grants you such rights.
92
-
93
- 3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA
94
- MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS”
95
- BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF
96
- ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY
97
- WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A
98
- PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE
99
- APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME ANY
100
- RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND
101
- RESULTS.
102
-
103
- 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE
104
- UNDER ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS
105
- LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS
106
- OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE
107
- DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY
108
- OF ANY OF THE FOREGOING.
109
-
110
- 5. Intellectual Property.
111
-
112
- a. No trademark licenses are granted under this Agreement, and in connection
113
- with the Llama Materials, neither Meta nor Licensee may use any name or mark
114
- owned by or associated with the other or any of its affiliates, except as
115
- required for reasonable and customary use in describing and redistributing the
116
- Llama Materials or as set forth in this Section 5(a). Meta hereby grants you a
117
- license to use “Llama 3” (the “Mark”) solely as required to comply with the
118
- last sentence of Section 1.b.i. You will comply with Meta’s brand guidelines
119
- (currently accessible at
120
- https://about.meta.com/brand/resources/meta/company-brand/ ). All goodwill
121
- arising out of your use of the Mark will inure to the benefit of Meta.
122
-
123
- b. Subject to Meta’s ownership of Llama Materials and derivatives made by or
124
- for Meta, with respect to any derivative works and modifications of the Llama
125
- Materials that are made by you, as between you and Meta, you are and will be
126
- the owner of such derivative works and modifications.
127
-
128
- c. If you institute litigation or other proceedings against Meta or any entity
129
- (including a cross-claim or counterclaim in a lawsuit) alleging that the Llama
130
- Materials or Meta Llama 3 outputs or results, or any portion of any of the
131
- foregoing, constitutes infringement of intellectual property or other rights
132
- owned or licensable by you, then any licenses granted to you under this
133
- Agreement shall terminate as of the date such litigation or claim is filed or
134
- instituted. You will indemnify and hold harmless Meta from and against any
135
- claim by any third party arising out of or related to your use or distribution
136
- of the Llama Materials.
137
-
138
- 6. Term and Termination. The term of this Agreement will commence upon your
139
- acceptance of this Agreement or access to the Llama Materials and will
140
- continue in full force and effect until terminated in accordance with the
141
- terms and conditions herein. Meta may terminate this Agreement if you are in
142
- breach of any term or condition of this Agreement. Upon termination of this
143
- Agreement, you shall delete and cease use of the Llama Materials. Sections 3,
144
- 4 and 7 shall survive the termination of this Agreement.
145
-
146
- 7. Governing Law and Jurisdiction. This Agreement will be governed and
147
- construed under the laws of the State of California without regard to choice
148
- of law principles, and the UN Convention on Contracts for the International
149
- Sale of Goods does not apply to this Agreement. The courts of California shall
150
- have exclusive jurisdiction of any dispute arising out of this Agreement.
151
-
152
- ### Meta Llama 3 Acceptable Use Policy
153
-
154
- Meta is committed to promoting safe and fair use of its tools and features,
155
- including Meta Llama 3. If you access or use Meta Llama 3, you agree to this
156
- Acceptable Use Policy (“Policy”). The most recent copy of this policy can be
157
- found at
158
- [https://llama.meta.com/llama3/use-policy](https://llama.meta.com/llama3/use-policy)
159
-
160
- #### Prohibited Uses
161
-
162
- We want everyone to use Meta Llama 3 safely and responsibly. You agree you
163
- will not use, or allow others to use, Meta Llama 3 to: 1. Violate the law or
164
- others’ rights, including to:
165
- 1. Engage in, promote, generate, contribute to, encourage, plan, incite, or further illegal or unlawful activity or content, such as:
166
- 1. Violence or terrorism
167
- 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
168
- 3. Human trafficking, exploitation, and sexual violence
169
- 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.
170
- 5. Sexual solicitation
171
- 6. Any other criminal activity
172
- 2. Engage in, promote, incite, or facilitate the harassment, abuse, threatening, or bullying of individuals or groups of individuals
173
- 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
174
- 4. Engage in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices
175
- 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
176
- 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
177
- 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
178
- 2. Engage in, promote, incite, facilitate, or assist in the planning or
179
- development of activities that present a risk of death or bodily harm to
180
- individuals, including use of Meta Llama 3 related to the following:
181
- 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
182
- 2. Guns and illegal weapons (including weapon development)
183
- 3. Illegal drugs and regulated/controlled substances
184
- 4. Operation of critical infrastructure, transportation technologies, or heavy machinery
185
- 5. Self-harm or harm to others, including suicide, cutting, and eating disorders
186
- 6. Any content intended to incite or promote violence, abuse, or any infliction of bodily harm to an individual
187
- 3. Intentionally deceive or mislead others, including use of Meta Llama 3
188
- related to the following:
189
- 1. Generating, promoting, or furthering fraud or the creation or promotion of disinformation
190
- 2. Generating, promoting, or furthering defamatory content, including the creation of defamatory statements, images, or other content
191
- 3. Generating, promoting, or further distributing spam
192
- 4. Impersonating another individual without consent, authorization, or legal right
193
- 5. Representing that the use of Meta Llama 3 or outputs are human-generated
194
- 6. Generating or facilitating false online engagement, including fake reviews and other means of fake online engagement
195
- 4. Fail to appropriately disclose to end users any known dangers of your AI
196
- system
197
-
198
- Please report any violation of this Policy, software “bug,” or other problems
199
- that could lead to a violation of this Policy through one of the following
200
- means:
201
- * Reporting issues with the model: [https://github.com/meta-llama/llama3](https://github.com/meta-llama/llama3)
202
- * Reporting risky content generated by the model:
203
- developers.facebook.com/llama_output_feedback
204
- * Reporting bugs and security concerns: facebook.com/whitehat/info
205
- * Reporting violations of the Acceptable Use Policy or unlicensed uses of Meta Llama 3: LlamaUseReport@meta.com
206
  extra_gated_fields:
207
  First Name: text
208
  Last Name: text
@@ -210,42 +169,53 @@ extra_gated_fields:
210
  Country: country
211
  Affiliation: text
212
  geo: ip_location
213
- 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
214
- extra_gated_description: >-
215
- The information you provide will be collected, stored, processed and shared in
216
- accordance with the [Meta Privacy
217
- Policy](https://www.facebook.com/privacy/policy/).
 
218
  extra_gated_button_content: Submit
219
- datasets:
220
- - FinGPT/fingpt-sentiment-train
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  ---
222
 
223
  # obvr/Llama-3-Lluca-8B
224
 
225
- > ! Warning: The fusing of the model seems to have not applied properly. Please use the adapters directly. The example has been updated to show this process.
226
-
227
- [LLuca](https://huggingface.co/obvr/Llama-3-Lluca-8B) is a fine-tuned LLaMa 3 model based on [NousResearch/Meta-Llama-3-8B](https://huggingface.co/NousResearch/Meta-Llama-3-8B). It is targeting financial sentiment analysis using FinGPT's dataset.
228
- Training was done on an M1 Ultra using MLX **0.13.0**.
229
-
230
 
231
  ## Use with mlx
232
 
233
  ```bash
234
- pip install mlx-lm huggingface_hub
235
  ```
236
 
237
  ```python
238
-
239
  from mlx_lm import load, generate
240
- from huggingface_hub import snapshot_download
241
-
242
- tokenizer_config = {"trust_remote_code": True, "eos_token": "<|eot_id|>"}
243
- adapter_path = snapshot_download(repo_id="obvr/Llama-3-Lluca-8B", allow_patterns=["adapters/adapter_config.json", "adapters/adapters.safetensors"]) + "/adapters"
244
- llm_model, tokenizer = load("NousResearch/Meta-Llama-3-8B-Instruct", adapter_path=adapter_path, tokenizer_config=tokenizer_config)
245
 
246
- prompt = "What is the sentiment of this news? Please choose an answer from {strong negative/moderately negative/mildly negative/neutral/mildly positive/moderately positive/strong positive}. Reports were released yesterday evening saying that Amazon.com, Inc. (NASDAQ:AMZN) is planning on laying off roughly 10,000 of its corporate and tech employees, starting this week."
247
- messages = [{"role": "user", "content": prompt}]
248
- prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
249
-
250
- response = generate(llm_model, tokenizer, prompt=prompt, verbose=True)
251
- ```
 
12
  pipeline_tag: text-generation
13
  license_name: llama3
14
  license_link: LICENSE
15
+ extra_gated_prompt: "### META LLAMA 3 COMMUNITY LICENSE AGREEMENT\nMeta Llama 3 Version\
16
+ \ Release Date: April 18, 2024\n\"Agreement\" means the terms and conditions for\
17
+ \ use, reproduction, distribution and modification of the Llama Materials set forth\
18
+ \ herein.\n\"Documentation\" means the specifications, manuals and documentation\
19
+ \ accompanying Meta Llama 3 distributed by Meta at https://llama.meta.com/get-started/.\n\
20
+ \"Licensee\" or \"you\" means you, or your employer or any other person or entity\
21
+ \ (if you are entering into this Agreement on such person or entity’s behalf), of\
22
+ \ the age required under applicable laws, rules or regulations to provide legal\
23
+ \ consent and that has legal authority to bind your employer or such other person\
24
+ \ or entity if you are entering in this Agreement on their behalf.\n\"Meta Llama\
25
+ \ 3\" means the foundational large language models and software and algorithms,\
26
+ \ including machine-learning model code, trained model weights, inference-enabling\
27
+ \ code, training-enabling code, fine-tuning enabling code and other elements of\
28
+ \ the foregoing distributed by Meta at https://llama.meta.com/llama-downloads.\n\
29
+ \"Llama Materials\" means, collectively, Meta’s proprietary Meta Llama 3 and Documentation\
30
+ \ (and any portion thereof) made available under this Agreement.\n\"Meta\" or \"\
31
+ we\" means Meta Platforms Ireland Limited (if you are located in or, if you are\
32
+ \ an entity, your principal place of business is in the EEA or Switzerland) and\
33
+ \ Meta Platforms, Inc. (if you are located outside of the EEA or Switzerland).\n\
34
+ \ \n1. License Rights and Redistribution.\na. Grant of Rights. You are granted\
35
+ \ a non-exclusive, worldwide, non-transferable and royalty-free limited license\
36
+ \ under Meta’s intellectual property or other rights owned by Meta embodied in the\
37
+ \ Llama Materials to use, reproduce, distribute, copy, create derivative works of,\
38
+ \ and make modifications to the Llama Materials.\nb. Redistribution and Use.\ni.\
39
+ \ If you distribute or make available the Llama Materials (or any derivative works\
40
+ \ thereof), or a product or service that uses any of them, including another AI\
41
+ \ model, you shall (A) provide a copy of this Agreement with any such Llama Materials;\
42
+ \ and (B) prominently display “Built with Meta Llama 3” on a related website, user\
43
+ \ interface, blogpost, about page, or product documentation. If you use the Llama\
44
+ \ Materials to create, train, fine tune, or otherwise improve an AI model, which\
45
+ \ is distributed or made available, you shall also include “Llama 3” at the beginning\
46
+ \ of any such AI model name.\nii. If you receive Llama Materials, or any derivative\
47
+ \ works thereof, from a Licensee as part of an integrated end user product, then\
48
+ \ Section 2 of this Agreement will not apply to you.\niii. You must retain in all\
49
+ \ copies of the Llama Materials that you distribute the following attribution notice\
50
+ \ within a “Notice” text file distributed as a part of such copies: “Meta Llama\
51
+ \ 3 is licensed under the Meta Llama 3 Community License, Copyright © Meta Platforms,\
52
+ \ Inc. All Rights Reserved.”\niv. Your use of the Llama Materials must comply with\
53
+ \ applicable laws and regulations (including trade compliance laws and regulations)\
54
+ \ and adhere to the Acceptable Use Policy for the Llama Materials (available at\
55
+ \ https://llama.meta.com/llama3/use-policy), which is hereby incorporated by reference\
56
+ \ into this Agreement.\nv. You will not use the Llama Materials or any output or\
57
+ \ results of the Llama Materials to improve any other large language model (excluding\
58
+ \ Meta Llama 3 or derivative works thereof).\n2. Additional Commercial Terms. If,\
59
+ \ on the Meta Llama 3 version release date, the monthly active users of the products\
60
+ \ or services made available by or for Licensee, or Licensee’s affiliates, is greater\
61
+ \ than 700 million monthly active users in the preceding calendar month, you must\
62
+ \ request a license from Meta, which Meta may grant to you in its sole discretion,\
63
+ \ and you are not authorized to exercise any of the rights under this Agreement\
64
+ \ unless or until Meta otherwise expressly grants you such rights.\n3. Disclaimer\
65
+ \ of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY OUTPUT\
66
+ \ AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF\
67
+ \ ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,\
68
+ \ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY,\
69
+ \ OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING\
70
+ \ THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME\
71
+ \ ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS.\n\
72
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER\
73
+ \ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY,\
74
+ \ OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT,\
75
+ \ SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META\
76
+ \ OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.\n\
77
+ 5. Intellectual Property.\na. No trademark licenses are granted under this Agreement,\
78
+ \ and in connection with the Llama Materials, neither Meta nor Licensee may use\
79
+ \ any name or mark owned by or associated with the other or any of its affiliates,\
80
+ \ except as required for reasonable and customary use in describing and redistributing\
81
+ \ the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you\
82
+ \ a license to use “Llama 3” (the “Mark”) solely as required to comply with the\
83
+ \ last sentence of Section 1.b.i. You will comply with Meta’s brand guidelines (currently\
84
+ \ accessible at https://about.meta.com/brand/resources/meta/company-brand/ ). All\
85
+ \ goodwill arising out of your use of the Mark will inure to the benefit of Meta.\n\
86
+ b. Subject to Meta’s ownership of Llama Materials and derivatives made by or for\
87
+ \ Meta, with respect to any derivative works and modifications of the Llama Materials\
88
+ \ that are made by you, as between you and Meta, you are and will be the owner of\
89
+ \ such derivative works and modifications.\nc. If you institute litigation or other\
90
+ \ proceedings against Meta or any entity (including a cross-claim or counterclaim\
91
+ \ in a lawsuit) alleging that the Llama Materials or Meta Llama 3 outputs or results,\
92
+ \ or any portion of any of the foregoing, constitutes infringement of intellectual\
93
+ \ property or other rights owned or licensable by you, then any licenses granted\
94
+ \ to you under this Agreement shall terminate as of the date such litigation or\
95
+ \ claim is filed or instituted. You will indemnify and hold harmless Meta from and\
96
+ \ against any claim by any third party arising out of or related to your use or\
97
+ \ distribution of the Llama Materials.\n6. Term and Termination. The term of this\
98
+ \ Agreement will commence upon your acceptance of this Agreement or access to the\
99
+ \ Llama Materials and will continue in full force and effect until terminated in\
100
+ \ accordance with the terms and conditions herein. Meta may terminate this Agreement\
101
+ \ if you are in breach of any term or condition of this Agreement. Upon termination\
102
+ \ of this Agreement, you shall delete and cease use of the Llama Materials. Sections\
103
+ \ 3, 4 and 7 shall survive the termination of this Agreement.\n7. Governing Law\
104
+ \ and Jurisdiction. This Agreement will be governed and construed under the laws\
105
+ \ of the State of California without regard to choice of law principles, and the\
106
+ \ UN Convention on Contracts for the International Sale of Goods does not apply\
107
+ \ to this Agreement. The courts of California shall have exclusive jurisdiction\
108
+ \ of any dispute arising out of this Agreement.\n### Meta Llama 3 Acceptable Use\
109
+ \ Policy\nMeta is committed to promoting safe and fair use of its tools and features,\
110
+ \ including Meta Llama 3. If you access or use Meta Llama 3, you agree to this Acceptable\
111
+ \ Use Policy (“Policy”). The most recent copy of this policy can be found at [https://llama.meta.com/llama3/use-policy](https://llama.meta.com/llama3/use-policy)\n\
112
+ #### Prohibited Uses\nWe want everyone to use Meta Llama 3 safely and responsibly.\
113
+ \ You agree you will not use, or allow others to use, Meta Llama 3 to: 1. Violate\
114
+ \ the law or others’ rights, including to:\n 1. Engage in, promote, generate,\
115
+ \ contribute to, encourage, plan, incite, or further illegal or unlawful activity\
116
+ \ or content, such as:\n 1. Violence or terrorism\n 2. Exploitation\
117
+ \ or harm to children, including the solicitation, creation, acquisition, or dissemination\
118
+ \ of child exploitative content or failure to report Child Sexual Abuse Material\n\
119
+ \ 3. Human trafficking, exploitation, and sexual violence\n 4. The\
120
+ \ illegal distribution of information or materials to minors, including obscene\
121
+ \ materials, or failure to employ legally required age-gating in connection with\
122
+ \ such information or materials.\n 5. Sexual solicitation\n 6. Any\
123
+ \ other criminal activity\n 2. Engage in, promote, incite, or facilitate the\
124
+ \ harassment, abuse, threatening, or bullying of individuals or groups of individuals\n\
125
+ \ 3. Engage in, promote, incite, or facilitate discrimination or other unlawful\
126
+ \ or harmful conduct in the provision of employment, employment benefits, credit,\
127
+ \ housing, other economic benefits, or other essential goods and services\n 4.\
128
+ \ Engage in the unauthorized or unlicensed practice of any profession including,\
129
+ \ but not limited to, financial, legal, medical/health, or related professional\
130
+ \ practices\n 5. Collect, process, disclose, generate, or infer health, demographic,\
131
+ \ or other sensitive personal or private information about individuals without rights\
132
+ \ and consents required by applicable laws\n 6. Engage in or facilitate any action\
133
+ \ or generate any content that infringes, misappropriates, or otherwise violates\
134
+ \ any third-party rights, including the outputs or results of any products or services\
135
+ \ using the Llama Materials\n 7. Create, generate, or facilitate the creation\
136
+ \ of malicious code, malware, computer viruses or do anything else that could disable,\
137
+ \ overburden, interfere with or impair the proper working, integrity, operation\
138
+ \ or appearance of a website or computer system\n2. Engage in, promote, incite,\
139
+ \ facilitate, or assist in the planning or development of activities that present\
140
+ \ a risk of death or bodily harm to individuals, including use of Meta Llama 3 related\
141
+ \ to the following:\n 1. Military, warfare, nuclear industries or applications,\
142
+ \ espionage, use for materials or activities that are subject to the International\
143
+ \ Traffic Arms Regulations (ITAR) maintained by the United States Department of\
144
+ \ State\n 2. Guns and illegal weapons (including weapon development)\n 3.\
145
+ \ Illegal drugs and regulated/controlled substances\n 4. Operation of critical\
146
+ \ infrastructure, transportation technologies, or heavy machinery\n 5. Self-harm\
147
+ \ or harm to others, including suicide, cutting, and eating disorders\n 6. Any\
148
+ \ content intended to incite or promote violence, abuse, or any infliction of bodily\
149
+ \ harm to an individual\n3. Intentionally deceive or mislead others, including use\
150
+ \ of Meta Llama 3 related to the following:\n 1. Generating, promoting, or furthering\
151
+ \ fraud or the creation or promotion of disinformation\n 2. Generating, promoting,\
152
+ \ or furthering defamatory content, including the creation of defamatory statements,\
153
+ \ images, or other content\n 3. Generating, promoting, or further distributing\
154
+ \ spam\n 4. Impersonating another individual without consent, authorization,\
155
+ \ or legal right\n 5. Representing that the use of Meta Llama 3 or outputs are\
156
+ \ human-generated\n 6. Generating or facilitating false online engagement, including\
157
+ \ fake reviews and other means of fake online engagement\n4. Fail to appropriately\
158
+ \ disclose to end users any known dangers of your AI system\nPlease report any violation\
159
+ \ of this Policy, software “bug,” or other problems that could lead to a violation\
160
+ \ of this Policy through one of the following means:\n * Reporting issues with\
161
+ \ the model: [https://github.com/meta-llama/llama3](https://github.com/meta-llama/llama3)\n\
162
+ \ * Reporting risky content generated by the model:\n developers.facebook.com/llama_output_feedback\n\
163
+ \ * Reporting bugs and security concerns: facebook.com/whitehat/info\n * Reporting\
164
+ \ violations of the Acceptable Use Policy or unlicensed uses of Meta Llama 3: LlamaUseReport@meta.com"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  extra_gated_fields:
166
  First Name: text
167
  Last Name: text
 
169
  Country: country
170
  Affiliation: text
171
  geo: ip_location
172
+ ? By clicking Submit below I accept the terms of the license and acknowledge that
173
+ the information I provide will be collected stored processed and shared in accordance
174
+ with the Meta Privacy Policy
175
+ : checkbox
176
+ extra_gated_description: The information you provide will be collected, stored, processed
177
+ and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).
178
  extra_gated_button_content: Submit
179
+ widget:
180
+ - example_title: Hello
181
+ messages:
182
+ - role: user
183
+ content: Hey my name is Julien! How are you?
184
+ - example_title: Winter holidays
185
+ messages:
186
+ - role: system
187
+ content: You are a helpful and honest assistant. Please, respond concisely and
188
+ truthfully.
189
+ - role: user
190
+ content: Can you recommend a good destination for Winter holidays?
191
+ - example_title: Programming assistant
192
+ messages:
193
+ - role: system
194
+ content: You are a helpful and honest code and programming assistant. Please,
195
+ respond concisely and truthfully.
196
+ - role: user
197
+ content: Write a function that computes the nth fibonacci number.
198
+ inference:
199
+ parameters:
200
+ max_new_tokens: 300
201
+ stop:
202
+ - <|end_of_text|>
203
+ - <|eot_id|>
204
  ---
205
 
206
  # obvr/Llama-3-Lluca-8B
207
 
208
+ The Model [obvr/Llama-3-Lluca-8B](https://huggingface.co/obvr/Llama-3-Lluca-8B) was converted to MLX format from [NousResearch/Meta-Llama-3-8B-Instruct](https://huggingface.co/NousResearch/Meta-Llama-3-8B-Instruct) using mlx-lm version **0.13.0**.
 
 
 
 
209
 
210
  ## Use with mlx
211
 
212
  ```bash
213
+ pip install mlx-lm
214
  ```
215
 
216
  ```python
 
217
  from mlx_lm import load, generate
 
 
 
 
 
218
 
219
+ model, tokenizer = load("obvr/Llama-3-Lluca-8B")
220
+ response = generate(model, tokenizer, prompt="hello", verbose=True)
221
+ ```
 
 
 
model-00001-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:144229dde3bf9ad37de8848f617b624cb8f59a230d8901e4c73b13571008d3be
3
  size 5295466428
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc8280d655bdc5fa35c1cf7db17538d3b8d62c9b871545c7f25c44589f0d56a3
3
  size 5295466428
model-00002-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3a28e408a3d72f143f0ebef11ee5abf2462d35811ce7f5f78ff3001f94447163
3
  size 5352157832
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67fe820336cc275a726889a74d85acaf5594d36af2b8093abdbe71eb5171bc02
3
  size 5352157832
model-00003-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:583eccd9b50f1f0f5d32157bf89e0c89d66f874d38c59840b63c80c1bbb04f9e
3
  size 4362258775
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5594478f64e7fda61606f5a5b4b6f19877c5b594436e4830e3a18f64f3ddc3c8
3
  size 4362258775
model-00004-of-00004.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c7209dd08f52a08c4596f0bd6fa090e757fd5de88685d91049bf6bc995dec10d
3
  size 1050673279
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:638452373abba2c197f5d86fae5d836e844e2aeffac0ec275b9f6b1162d524a0
3
  size 1050673279
tokenizer_config.json CHANGED
@@ -2050,6 +2050,7 @@
2050
  }
2051
  },
2052
  "bos_token": "<|begin_of_text|>",
 
2053
  "clean_up_tokenization_spaces": true,
2054
  "eos_token": "<|end_of_text|>",
2055
  "model_input_names": [
 
2050
  }
2051
  },
2052
  "bos_token": "<|begin_of_text|>",
2053
+ "chat_template": "{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}",
2054
  "clean_up_tokenization_spaces": true,
2055
  "eos_token": "<|end_of_text|>",
2056
  "model_input_names": [