bartowski commited on
Commit
1eb1f29
1 Parent(s): cccc44b

measurement.json

Browse files
Files changed (2) hide show
  1. README.md +257 -0
  2. measurement.json +0 -0
README.md ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - de
5
+ - fr
6
+ - it
7
+ - pt
8
+ - hi
9
+ - es
10
+ - th
11
+ license: llama3.1
12
+ base_model: meta-llama/Meta-Llama-3.1-8B
13
+ pipeline_tag: text-generation
14
+ tags:
15
+ - facebook
16
+ - meta
17
+ - pytorch
18
+ - llama
19
+ - llama-3
20
+ extra_gated_prompt: "### LLAMA 3.1 COMMUNITY LICENSE AGREEMENT\nLlama 3.1 Version\
21
+ \ Release Date: July 23, 2024\n\"Agreement\" means the terms and conditions for\
22
+ \ use, reproduction, distribution and modification of the Llama Materials set forth\
23
+ \ herein.\n\"Documentation\" means the specifications, manuals and documentation\
24
+ \ accompanying Llama 3.1 distributed by Meta at https://llama.meta.com/doc/overview.\n\
25
+ \"Licensee\" or \"you\" means you, or your employer or any other person or entity\
26
+ \ (if you are entering into this Agreement on such person or entity’s behalf), of\
27
+ \ the age required under applicable laws, rules or regulations to provide legal\
28
+ \ consent and that has legal authority to bind your employer or such other person\
29
+ \ or entity if you are entering in this Agreement on their behalf.\n\"Llama 3.1\"\
30
+ \ means the foundational large language models and software and algorithms, including\
31
+ \ machine-learning model code, trained model weights, inference-enabling code, training-enabling\
32
+ \ code, fine-tuning enabling code and other elements of the foregoing distributed\
33
+ \ by Meta at https://llama.meta.com/llama-downloads.\n\"Llama Materials\" means,\
34
+ \ collectively, Meta’s proprietary Llama 3.1 and Documentation (and any portion\
35
+ \ thereof) made available under this Agreement.\n\"Meta\" or \"we\" means Meta Platforms\
36
+ \ Ireland Limited (if you are located in or, if you are an entity, your principal\
37
+ \ place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you\
38
+ \ are located outside of the EEA or Switzerland).\n \n1. License Rights and Redistribution.\n\
39
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable\
40
+ \ and royalty-free limited license under Meta’s intellectual property or other rights\
41
+ \ owned by Meta embodied in the Llama Materials to use, reproduce, distribute, copy,\
42
+ \ create derivative works of, and make modifications to the Llama Materials.\nb.\
43
+ \ Redistribution and Use.\ni. If you distribute or make available the Llama Materials\
44
+ \ (or any derivative works thereof), or a product or service (including another\
45
+ \ AI model) that contains any of them, you shall (A) provide a copy of this Agreement\
46
+ \ with any such Llama Materials; and (B) prominently display “Built with Llama”\
47
+ \ on a related website, user interface, blogpost, about page, or product documentation.\
48
+ \ If you use the Llama Materials or any outputs or results of the Llama Materials\
49
+ \ to create, train, fine tune, or otherwise improve an AI model, which is distributed\
50
+ \ or made available, you shall also include “Llama” at the beginning of any such\
51
+ \ AI model name.\nii. If you receive Llama Materials, or any derivative works thereof,\
52
+ \ from a Licensee as part of an integrated end user product, then Section 2 of\
53
+ \ this Agreement will not apply to you.\niii. You must retain in all copies of the\
54
+ \ Llama Materials that you distribute the following attribution notice within a\
55
+ \ “Notice” text file distributed as a part of such copies: “Llama 3.1 is licensed\
56
+ \ under the Llama 3.1 Community License, Copyright © Meta Platforms, Inc. All Rights\
57
+ \ Reserved.”\niv. Your use of the Llama Materials must comply with applicable laws\
58
+ \ and regulations (including trade compliance laws and regulations) and adhere to\
59
+ \ the Acceptable Use Policy for the Llama Materials (available at https://llama.meta.com/llama3_1/use-policy),\
60
+ \ which is hereby incorporated by reference into this Agreement.\n2. Additional\
61
+ \ Commercial Terms. If, on the Llama 3.1 version release date, the monthly active\
62
+ \ users of the products or services made available by or for Licensee, or Licensee’s\
63
+ \ affiliates, is greater than 700 million monthly active users in the preceding\
64
+ \ calendar month, you must request a license from Meta, which Meta may grant to\
65
+ \ you in its sole discretion, and you are not authorized to exercise any of the\
66
+ \ rights under this Agreement unless or until Meta otherwise expressly grants you\
67
+ \ such rights.\n3. Disclaimer of Warranty. UNLESS REQUIRED BY APPLICABLE LAW, THE\
68
+ \ LLAMA MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN “AS IS”\
69
+ \ BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY\
70
+ \ KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES\
71
+ \ OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.\
72
+ \ YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING\
73
+ \ THE LLAMA MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA\
74
+ \ MATERIALS AND ANY OUTPUT AND RESULTS.\n4. Limitation of Liability. IN NO EVENT\
75
+ \ WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY, WHETHER IN\
76
+ \ CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS\
77
+ \ AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL,\
78
+ \ EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE BEEN ADVISED\
79
+ \ OF THE POSSIBILITY OF ANY OF THE FOREGOING.\n5. Intellectual Property.\na. No\
80
+ \ trademark licenses are granted under this Agreement, and in connection with the\
81
+ \ Llama Materials, neither Meta nor Licensee may use any name or mark owned by or\
82
+ \ associated with the other or any of its affiliates, except as required for reasonable\
83
+ \ and customary use in describing and redistributing the Llama Materials or as set\
84
+ \ forth in this Section 5(a). Meta hereby grants you a license to use “Llama” (the\
85
+ \ “Mark”) solely as required to comply with the last sentence of Section 1.b.i.\
86
+ \ You will comply with Meta’s brand guidelines (currently accessible at https://about.meta.com/brand/resources/meta/company-brand/\
87
+ \ ). All goodwill arising out of your use of the Mark will inure to the benefit\
88
+ \ of Meta.\nb. Subject to Meta’s ownership of Llama Materials and derivatives made\
89
+ \ by or for Meta, with respect to any derivative works and modifications of the\
90
+ \ Llama Materials that are made by you, as between you and Meta, you are and will\
91
+ \ be the owner of such derivative works and modifications.\nc. If you institute\
92
+ \ litigation or other proceedings against Meta or any entity (including a cross-claim\
93
+ \ or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs\
94
+ \ or results, or any portion of any of the foregoing, constitutes infringement of\
95
+ \ intellectual property or other rights owned or licensable by you, then any licenses\
96
+ \ granted to you under this Agreement shall terminate as of the date such litigation\
97
+ \ or claim is filed or instituted. You will indemnify and hold harmless Meta from\
98
+ \ and against any claim by any third party arising out of or related to your use\
99
+ \ or distribution of the Llama Materials.\n6. Term and Termination. The term of\
100
+ \ this Agreement will commence upon your acceptance of this Agreement or access\
101
+ \ to the Llama Materials and will continue in full force and effect until terminated\
102
+ \ in accordance with the terms and conditions herein. Meta may terminate this Agreement\
103
+ \ if you are in breach of any term or condition of this Agreement. Upon termination\
104
+ \ of this Agreement, you shall delete and cease use of the Llama Materials. Sections\
105
+ \ 3, 4 and 7 shall survive the termination of this Agreement.\n7. Governing Law\
106
+ \ and Jurisdiction. This Agreement will be governed and construed under the laws\
107
+ \ of the State of California without regard to choice of law principles, and the\
108
+ \ UN Convention on Contracts for the International Sale of Goods does not apply\
109
+ \ to this Agreement. The courts of California shall have exclusive jurisdiction\
110
+ \ of any dispute arising out of this Agreement.\n### Llama 3.1 Acceptable Use Policy\n\
111
+ Meta is committed to promoting safe and fair use of its tools and features, including\
112
+ \ Llama 3.1. If you access or use Llama 3.1, you agree to this Acceptable Use Policy\
113
+ \ (“Policy”). The most recent copy of this policy can be found at [https://llama.meta.com/llama3_1/use-policy](https://llama.meta.com/llama3_1/use-policy)\n\
114
+ #### Prohibited Uses\nWe want everyone to use Llama 3.1 safely and responsibly.\
115
+ \ You agree you will not use, or allow others to use, Llama 3.1 to:\n 1. Violate\
116
+ \ the law or others’ rights, including to:\n 1. Engage in, promote, generate,\
117
+ \ contribute to, encourage, plan, incite, or further illegal or unlawful activity\
118
+ \ or content, such as:\n 1. Violence or terrorism\n 2. Exploitation\
119
+ \ or harm to children, including the solicitation, creation, acquisition, or dissemination\
120
+ \ of child exploitative content or failure to report Child Sexual Abuse Material\n\
121
+ \ 3. Human trafficking, exploitation, and sexual violence\n 4. The\
122
+ \ illegal distribution of information or materials to minors, including obscene\
123
+ \ materials, or failure to employ legally required age-gating in connection with\
124
+ \ such information or materials.\n 5. Sexual solicitation\n 6. Any\
125
+ \ other criminal activity\n 3. Engage in, promote, incite, or facilitate the\
126
+ \ harassment, abuse, threatening, or bullying of individuals or groups of individuals\n\
127
+ \ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful\
128
+ \ or harmful conduct in the provision of employment, employment benefits, credit,\
129
+ \ housing, other economic benefits, or other essential goods and services\n 5.\
130
+ \ Engage in the unauthorized or unlicensed practice of any profession including,\
131
+ \ but not limited to, financial, legal, medical/health, or related professional\
132
+ \ practices\n 6. Collect, process, disclose, generate, or infer health, demographic,\
133
+ \ or other sensitive personal or private information about individuals without rights\
134
+ \ and consents required by applicable laws\n 7. Engage in or facilitate any action\
135
+ \ or generate any content that infringes, misappropriates, or otherwise violates\
136
+ \ any third-party rights, including the outputs or results of any products or services\
137
+ \ using the Llama Materials\n 8. Create, generate, or facilitate the creation\
138
+ \ of malicious code, malware, computer viruses or do anything else that could disable,\
139
+ \ overburden, interfere with or impair the proper working, integrity, operation\
140
+ \ or appearance of a website or computer system\n2. Engage in, promote, incite,\
141
+ \ facilitate, or assist in the planning or development of activities that present\
142
+ \ a risk of death or bodily harm to individuals, including use of Llama 3.1 related\
143
+ \ to the following:\n 1. Military, warfare, nuclear industries or applications,\
144
+ \ espionage, use for materials or activities that are subject to the International\
145
+ \ Traffic Arms Regulations (ITAR) maintained by the United States Department of\
146
+ \ State\n 2. Guns and illegal weapons (including weapon development)\n 3.\
147
+ \ Illegal drugs and regulated/controlled substances\n 4. Operation of critical\
148
+ \ infrastructure, transportation technologies, or heavy machinery\n 5. Self-harm\
149
+ \ or harm to others, including suicide, cutting, and eating disorders\n 6. Any\
150
+ \ content intended to incite or promote violence, abuse, or any infliction of bodily\
151
+ \ harm to an individual\n3. Intentionally deceive or mislead others, including use\
152
+ \ of Llama 3.1 related to the following:\n 1. Generating, promoting, or furthering\
153
+ \ fraud or the creation or promotion of disinformation\n 2. Generating, promoting,\
154
+ \ or furthering defamatory content, including the creation of defamatory statements,\
155
+ \ images, or other content\n 3. Generating, promoting, or further distributing\
156
+ \ spam\n 4. Impersonating another individual without consent, authorization,\
157
+ \ or legal right\n 5. Representing that the use of Llama 3.1 or outputs are human-generated\n\
158
+ \ 6. Generating or facilitating false online engagement, including fake reviews\
159
+ \ and other means of fake online engagement\n4. Fail to appropriately disclose to\
160
+ \ end users any known dangers of your AI system\nPlease report any violation of\
161
+ \ this Policy, software “bug,” or other problems that could lead to a violation\
162
+ \ of this Policy through one of the following means:\n * Reporting issues with\
163
+ \ the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)\n\
164
+ \ * Reporting risky content generated by the model:\n developers.facebook.com/llama_output_feedback\n\
165
+ \ * Reporting bugs and security concerns: facebook.com/whitehat/info\n * Reporting\
166
+ \ violations of the Acceptable Use Policy or unlicensed uses of Meta Llama 3: [email protected]"
167
+ extra_gated_fields:
168
+ First Name: text
169
+ Last Name: text
170
+ Date of birth: date_picker
171
+ Country: country
172
+ Affiliation: text
173
+ Job title:
174
+ type: select
175
+ options:
176
+ - Student
177
+ - Research Graduate
178
+ - AI researcher
179
+ - AI developer/engineer
180
+ - Reporter
181
+ - Other
182
+ geo: ip_location
183
+ ? By clicking Submit below I accept the terms of the license and acknowledge that
184
+ the information I provide will be collected stored processed and shared in accordance
185
+ with the Meta Privacy Policy
186
+ : checkbox
187
+ extra_gated_description: The information you provide will be collected, stored, processed
188
+ and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).
189
+ extra_gated_button_content: Submit
190
+ quantized_by: bartowski
191
+ ---
192
+
193
+ ## Exllama v2 Quantizations of Meta-Llama-3.1-8B-Instruct
194
+
195
+ Using <a href="https://github.com/turboderp/exllamav2/releases/tag/v0.1.9">turboderp's ExLlamaV2 v0.1.9</a> for quantization.
196
+
197
+ <b>The "main" branch only contains the measurement.json, download one of the other branches for the model (see below)</b>
198
+
199
+ Each branch contains an individual bits per weight, with the main one containing only the meaurement.json for further conversions.
200
+
201
+ Original model: https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct
202
+
203
+ ## Prompt format
204
+
205
+ ```
206
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
207
+
208
+ Cutting Knowledge Date: December 2023
209
+ Today Date: 26 Jul 2024
210
+
211
+ {system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
212
+
213
+ {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
214
+
215
+
216
+ ```
217
+
218
+ ## Available sizes
219
+
220
+
221
+ | Branch | Bits | lm_head bits | VRAM (4k) | VRAM (8K) | VRAM (16k) | VRAM (32k) | Description |
222
+ | ----- | ---- | ------- | ------ | ------ | ------ | ------ | ------------ |
223
+ | [8_0](https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-exl2/tree/8_0) | 8.0 | 8.0 | 10.1 GB | 10.5 GB | 11.5 GB | 13.6 GB | Maximum quality that ExLlamaV2 can produce, near unquantized performance. |
224
+ | [6_5](https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-exl2/tree/6_5) | 6.5 | 8.0 | 8.9 GB | 9.3 GB | 10.3 GB | 12.4 GB | Very similar to 8.0, good tradeoff of size vs performance, **recommended**. |
225
+ | [5_0](https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-exl2/tree/5_0) | 5.0 | 6.0 | 7.7 GB | 8.1 GB | 9.1 GB | 11.2 GB | Slightly lower quality vs 6.5, but usable on 8GB cards. |
226
+ | [4_25](https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-exl2/tree/4_25) | 4.25 | 6.0 | 7.0 GB | 7.4 GB | 8.4 GB | 10.5 GB | GPTQ equivalent bits per weight, slightly higher quality. |
227
+ | [3_5](https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-exl2/tree/3_5) | 3.5 | 6.0 | 6.4 GB | 6.8 GB | 7.8 GB | 9.9 GB | Lower quality, only use if you have to. |
228
+
229
+ ## Download instructions
230
+
231
+ With git:
232
+
233
+ ```shell
234
+ git clone --single-branch --branch 6_5 https://huggingface.co/bartowski/Meta-Llama-3.1-8B-Instruct-exl2 Meta-Llama-3.1-8B-Instruct-exl2-6_5
235
+ ```
236
+
237
+ With huggingface hub (credit to TheBloke for instructions):
238
+
239
+ ```shell
240
+ pip3 install huggingface-hub
241
+ ```
242
+
243
+ To download a specific branch, use the `--revision` parameter. For example, to download the 6.5 bpw branch:
244
+
245
+ Linux:
246
+
247
+ ```shell
248
+ huggingface-cli download bartowski/Meta-Llama-3.1-8B-Instruct-exl2 --revision 6_5 --local-dir Meta-Llama-3.1-8B-Instruct-exl2-6_5
249
+ ```
250
+
251
+ Windows (which apparently doesn't like _ in folders sometimes?):
252
+
253
+ ```shell
254
+ huggingface-cli download bartowski/Meta-Llama-3.1-8B-Instruct-exl2 --revision 6_5 --local-dir Meta-Llama-3.1-8B-Instruct-exl2-6.5
255
+ ```
256
+
257
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
measurement.json ADDED
The diff for this file is too large to render. See raw diff