reach-vb HF staff commited on
Commit
913364c
0 Parent(s):

Duplicate from hugging-quants/Llama-3.2-1B-Instruct-Q4_K_M-GGUF

Browse files
Files changed (3) hide show
  1. .gitattributes +36 -0
  2. README.md +251 -0
  3. llama-3.2-1b-instruct-q4_k_m.gguf +3 -0
.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ llama-3.2-1b-instruct-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.2-1B-Instruct
3
+ language:
4
+ - en
5
+ - de
6
+ - fr
7
+ - it
8
+ - pt
9
+ - hi
10
+ - es
11
+ - th
12
+ pipeline_tag: text-generation
13
+ tags:
14
+ - facebook
15
+ - meta
16
+ - pytorch
17
+ - llama
18
+ - llama-3
19
+ - llama-cpp
20
+ - gguf-my-repo
21
+ extra_gated_prompt: "### LLAMA 3.2 COMMUNITY LICENSE AGREEMENT\n\nLlama 3.2 Version\
22
+ \ Release Date: September 25, 2024\n\n“Agreement” means the terms and conditions\
23
+ \ for use, reproduction, distribution and modification of the Llama Materials set\
24
+ \ forth herein.\n\n“Documentation” means the specifications, manuals and documentation\
25
+ \ accompanying Llama 3.2 distributed by Meta at https://llama.meta.com/doc/overview.\n\
26
+ \n“Licensee” or “you” means you, or your employer or any other person or entity\
27
+ \ (if you are entering into this Agreement on such person or entity’s behalf),\
28
+ \ of the age required under applicable laws, rules or regulations to provide legal\
29
+ \ consent and that has legal authority to bind your employer or such other person\
30
+ \ or entity if you are entering in this Agreement on their behalf.\n\n“Llama 3.2”\
31
+ \ means the foundational large language models and software and algorithms, including\
32
+ \ machine-learning model code, trained model weights, inference-enabling code, training-enabling\
33
+ \ code, fine-tuning enabling code and other elements of the foregoing distributed\
34
+ \ by Meta at https://www.llama.com/llama-downloads.\n\n“Llama Materials” means,\
35
+ \ collectively, Meta’s proprietary Llama 3.2 and Documentation (and any portion\
36
+ \ thereof) made available under this Agreement.\n\n“Meta” or “we” means Meta Platforms\
37
+ \ Ireland Limited (if you are located in or, if you are an entity, your principal\
38
+ \ place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if\
39
+ \ you are located outside of the EEA or Switzerland). \n\nBy clicking “I Accept”\
40
+ \ below or by using or distributing any portion or element of the Llama Materials,\
41
+ \ you agree to be bound by this Agreement.\n\n1. License Rights and Redistribution.\n\
42
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable\
43
+ \ and royalty-free limited license under Meta’s intellectual property or other rights\
44
+ \ owned by Meta embodied in the Llama Materials to use, reproduce, distribute,\
45
+ \ copy, create derivative works of, and make modifications to the Llama Materials.\
46
+ \ \nb. Redistribution and Use. \ni. If you distribute or make available the Llama\
47
+ \ Materials (or any derivative works thereof), or a product or service (including\
48
+ \ another AI model) that contains any of them, you shall (A) provide a copy of this\
49
+ \ Agreement with any such Llama Materials; and (B) prominently display “Built with\
50
+ \ Llama” on a related website, user interface, blogpost, about page, or product\
51
+ \ documentation. If you use the Llama Materials or any outputs or results of the\
52
+ \ Llama Materials to create, train, fine tune, or otherwise improve an AI model,\
53
+ \ which is distributed or made available, you shall also include “Llama” at the\
54
+ \ beginning of any such AI model name.\nii. If you receive Llama Materials, or any\
55
+ \ derivative works thereof, from a Licensee as part of an integrated end user product,\
56
+ \ then Section 2 of this Agreement will not apply to you. \niii. You must retain\
57
+ \ in all copies of the Llama Materials that you distribute the following attribution\
58
+ \ notice within a “Notice” text file distributed as a part of such copies: “Llama\
59
+ \ 3.2 is licensed under the Llama 3.2 Community License, Copyright © Meta Platforms,\
60
+ \ Inc. All Rights Reserved.”\niv. Your use of the Llama Materials must comply with\
61
+ \ applicable laws and regulations (including trade compliance laws and regulations)\
62
+ \ and adhere to the Acceptable Use Policy for the Llama Materials (available at\
63
+ \ https://www.llama.com/llama3_2/use-policy), which is hereby incorporated by reference\
64
+ \ into this Agreement.\n \n2. Additional Commercial Terms. If, on the Llama 3.2\
65
+ \ version release date, the monthly active users of the products or services made\
66
+ \ available by or for Licensee, or Licensee’s affiliates, is greater than 700 million\
67
+ \ monthly active users in the preceding calendar month, you must request a license\
68
+ \ from Meta, which Meta may grant to you in its sole discretion, and you are not\
69
+ \ authorized to exercise any of the rights under this Agreement unless or until\
70
+ \ Meta otherwise expressly grants you such rights.\n3. Disclaimer of Warranty. UNLESS\
71
+ \ REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM\
72
+ \ ARE PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS\
73
+ \ ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION,\
74
+ \ ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR\
75
+ \ PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING\
76
+ \ OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR\
77
+ \ USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS.\n4. Limitation of Liability.\
78
+ \ IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY,\
79
+ \ WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING\
80
+ \ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,\
81
+ \ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE\
82
+ \ BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.\n5. Intellectual Property.\n\
83
+ a. No trademark licenses are granted under this Agreement, and in connection with\
84
+ \ the Llama Materials, neither Meta nor Licensee may use any name or mark owned\
85
+ \ by or associated with the other or any of its affiliates, except as required\
86
+ \ for reasonable and customary use in describing and redistributing the Llama Materials\
87
+ \ or as set forth in this Section 5(a). Meta hereby grants you a license to use\
88
+ \ “Llama” (the “Mark”) solely as required to comply with the last sentence of Section\
89
+ \ 1.b.i. You will comply with Meta’s brand guidelines (currently accessible at\
90
+ \ https://about.meta.com/brand/resources/meta/company-brand/). All goodwill arising\
91
+ \ out of your use of the Mark will inure to the benefit of Meta.\nb. Subject to\
92
+ \ Meta’s ownership of Llama Materials and derivatives made by or for Meta, with\
93
+ \ respect to any derivative works and modifications of the Llama Materials that\
94
+ \ are made by you, as between you and Meta, you are and will be the owner of such\
95
+ \ derivative works and modifications.\nc. If you institute litigation or other proceedings\
96
+ \ against Meta or any entity (including a cross-claim or counterclaim in a lawsuit)\
97
+ \ alleging that the Llama Materials or Llama 3.2 outputs or results, or any portion\
98
+ \ of any of the foregoing, constitutes infringement of intellectual property or\
99
+ \ other rights owned or licensable by you, then any licenses granted to you under\
100
+ \ this Agreement shall terminate as of the date such litigation or claim is filed\
101
+ \ or instituted. You will indemnify and hold harmless Meta from and against any\
102
+ \ claim by any third party arising out of or related to your use or distribution\
103
+ \ of the Llama Materials.\n6. Term and Termination. The term of this Agreement will\
104
+ \ commence upon your acceptance of this Agreement or access to the Llama Materials\
105
+ \ and will continue in full force and effect until terminated in accordance with\
106
+ \ the terms and conditions herein. Meta may terminate this Agreement if you are\
107
+ \ in breach of any term or condition of this Agreement. Upon termination of this\
108
+ \ Agreement, you shall delete and cease use of the Llama Materials. Sections 3,\
109
+ \ 4 and 7 shall survive the termination of this Agreement. \n7. Governing Law and\
110
+ \ Jurisdiction. This Agreement will be governed and construed under the laws of\
111
+ \ the State of California without regard to choice of law principles, and the UN\
112
+ \ Convention on Contracts for the International Sale of Goods does not apply to\
113
+ \ this Agreement. The courts of California shall have exclusive jurisdiction of\
114
+ \ any dispute arising out of this Agreement. \n### Llama 3.2 Acceptable Use Policy\n\
115
+ Meta is committed to promoting safe and fair use of its tools and features, including\
116
+ \ Llama 3.2. If you access or use Llama 3.2, you agree to this Acceptable Use Policy\
117
+ \ (“**Policy**”). The most recent copy of this policy can be found at [https://www.llama.com/llama3_2/use-policy](https://www.llama.com/llama3_2/use-policy).\n\
118
+ #### Prohibited Uses\nWe want everyone to use Llama 3.2 safely and responsibly.\
119
+ \ You agree you will not use, or allow others to use, Llama 3.2 to:\n1. Violate\
120
+ \ the law or others’ rights, including to:\n 1. Engage in, promote, generate,\
121
+ \ contribute to, encourage, plan, incite, or further illegal or unlawful activity\
122
+ \ or content, such as:\n 1. Violence or terrorism\n 2. Exploitation\
123
+ \ or harm to children, including the solicitation, creation, acquisition, or dissemination\
124
+ \ of child exploitative content or failure to report Child Sexual Abuse Material\n\
125
+ \ 3. Human trafficking, exploitation, and sexual violence\n 4. The\
126
+ \ illegal distribution of information or materials to minors, including obscene\
127
+ \ materials, or failure to employ legally required age-gating in connection with\
128
+ \ such information or materials.\n 5. Sexual solicitation\n 6. Any\
129
+ \ other criminal activity\n 1. Engage in, promote, incite, or facilitate the\
130
+ \ harassment, abuse, threatening, or bullying of individuals or groups of individuals\n\
131
+ \ 2. Engage in, promote, incite, or facilitate discrimination or other unlawful\
132
+ \ or harmful conduct in the provision of employment, employment benefits, credit,\
133
+ \ housing, other economic benefits, or other essential goods and services\n 3.\
134
+ \ Engage in the unauthorized or unlicensed practice of any profession including,\
135
+ \ but not limited to, financial, legal, medical/health, or related professional\
136
+ \ practices\n 4. Collect, process, disclose, generate, or infer private or sensitive\
137
+ \ information about individuals, including information about individuals’ identity,\
138
+ \ health, or demographic information, unless you have obtained the right to do so\
139
+ \ in accordance with applicable law\n 5. Engage in or facilitate any action or\
140
+ \ generate any content that infringes, misappropriates, or otherwise violates any\
141
+ \ third-party rights, including the outputs or results of any products or services\
142
+ \ using the Llama Materials\n 6. Create, generate, or facilitate the creation\
143
+ \ of malicious code, malware, computer viruses or do anything else that could disable,\
144
+ \ overburden, interfere with or impair the proper working, integrity, operation\
145
+ \ or appearance of a website or computer system\n 7. Engage in any action, or\
146
+ \ facilitate any action, to intentionally circumvent or remove usage restrictions\
147
+ \ or other safety measures, or to enable functionality disabled by Meta \n2. Engage\
148
+ \ in, promote, incite, facilitate, or assist in the planning or development of activities\
149
+ \ that present a risk of death or bodily harm to individuals, including use of Llama\
150
+ \ 3.2 related to the following:\n 8. Military, warfare, nuclear industries or\
151
+ \ applications, espionage, use for materials or activities that are subject to the\
152
+ \ International Traffic Arms Regulations (ITAR) maintained by the United States\
153
+ \ Department of State or to the U.S. Biological Weapons Anti-Terrorism Act of 1989\
154
+ \ or the Chemical Weapons Convention Implementation Act of 1997\n 9. Guns and\
155
+ \ illegal weapons (including weapon development)\n 10. Illegal drugs and regulated/controlled\
156
+ \ substances\n 11. Operation of critical infrastructure, transportation technologies,\
157
+ \ or heavy machinery\n 12. Self-harm or harm to others, including suicide, cutting,\
158
+ \ and eating disorders\n 13. Any content intended to incite or promote violence,\
159
+ \ abuse, or any infliction of bodily harm to an individual\n3. Intentionally deceive\
160
+ \ or mislead others, including use of Llama 3.2 related to the following:\n 14.\
161
+ \ Generating, promoting, or furthering fraud or the creation or promotion of disinformation\n\
162
+ \ 15. Generating, promoting, or furthering defamatory content, including the\
163
+ \ creation of defamatory statements, images, or other content\n 16. Generating,\
164
+ \ promoting, or further distributing spam\n 17. Impersonating another individual\
165
+ \ without consent, authorization, or legal right\n 18. Representing that the\
166
+ \ use of Llama 3.2 or outputs are human-generated\n 19. Generating or facilitating\
167
+ \ false online engagement, including fake reviews and other means of fake online\
168
+ \ engagement \n4. Fail to appropriately disclose to end users any known dangers\
169
+ \ of your AI system 5. Interact with third party tools, models, or software designed\
170
+ \ to generate unlawful content or engage in unlawful or harmful conduct and/or represent\
171
+ \ that the outputs of such tools, models, or software are associated with Meta or\
172
+ \ Llama 3.2\n\nWith respect to any multimodal models included in Llama 3.2, the\
173
+ \ rights granted under Section 1(a) of the Llama 3.2 Community License Agreement\
174
+ \ are not being granted to you if you are an individual domiciled in, or a company\
175
+ \ with a principal place of business in, the European Union. This restriction does\
176
+ \ not apply to end users of a product or service that incorporates any such multimodal\
177
+ \ models.\n\nPlease report any violation of this Policy, software “bug,” or other\
178
+ \ problems that could lead to a violation of this Policy through one of the following\
179
+ \ means:\n\n* Reporting issues with the model: [https://github.com/meta-llama/llama-models/issues](https://l.workplace.com/l.php?u=https%3A%2F%2Fgithub.com%2Fmeta-llama%2Fllama-models%2Fissues&h=AT0qV8W9BFT6NwihiOHRuKYQM_UnkzN_NmHMy91OT55gkLpgi4kQupHUl0ssR4dQsIQ8n3tfd0vtkobvsEvt1l4Ic6GXI2EeuHV8N08OG2WnbAmm0FL4ObkazC6G_256vN0lN9DsykCvCqGZ)\n\
180
+ * Reporting risky content generated by the model: [developers.facebook.com/llama_output_feedback](http://developers.facebook.com/llama_output_feedback)\n\
181
+ * Reporting bugs and security concerns: [facebook.com/whitehat/info](http://facebook.com/whitehat/info)\n\
182
+ * Reporting violations of the Acceptable Use Policy or unlicensed uses of Llama\
183
+ \ 3.2: [email protected]"
184
+ extra_gated_fields:
185
+ First Name: text
186
+ Last Name: text
187
+ Date of birth: date_picker
188
+ Country: country
189
+ Affiliation: text
190
+ Job title:
191
+ type: select
192
+ options:
193
+ - Student
194
+ - Research Graduate
195
+ - AI researcher
196
+ - AI developer/engineer
197
+ - Reporter
198
+ - Other
199
+ geo: ip_location
200
+ ? By clicking Submit below I accept the terms of the license and acknowledge that
201
+ the information I provide will be collected stored processed and shared in accordance
202
+ with the Meta Privacy Policy
203
+ : checkbox
204
+ extra_gated_description: The information you provide will be collected, stored, processed
205
+ and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).
206
+ extra_gated_button_content: Submit
207
+ ---
208
+
209
+ # hugging-quants/Llama-3.2-1B-Instruct-Q4_K_M-GGUF
210
+ This model was converted to GGUF format from [`meta-llama/Llama-3.2-1B-Instruct`](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
211
+ Refer to the [original model card](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct) for more details on the model.
212
+
213
+ ## Use with llama.cpp
214
+ Install llama.cpp through brew (works on Mac and Linux)
215
+
216
+ ```bash
217
+ brew install llama.cpp
218
+
219
+ ```
220
+ Invoke the llama.cpp server or the CLI.
221
+
222
+ ### CLI:
223
+ ```bash
224
+ llama-cli --hf-repo hugging-quants/Llama-3.2-1B-Instruct-Q4_K_M-GGUF --hf-file llama-3.2-1b-instruct-q4_k_m.gguf -p "The meaning to life and the universe is"
225
+ ```
226
+
227
+ ### Server:
228
+ ```bash
229
+ llama-server --hf-repo hugging-quants/Llama-3.2-1B-Instruct-Q4_K_M-GGUF --hf-file llama-3.2-1b-instruct-q4_k_m.gguf -c 2048
230
+ ```
231
+
232
+ Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
233
+
234
+ Step 1: Clone llama.cpp from GitHub.
235
+ ```
236
+ git clone https://github.com/ggerganov/llama.cpp
237
+ ```
238
+
239
+ Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
240
+ ```
241
+ cd llama.cpp && LLAMA_CURL=1 make
242
+ ```
243
+
244
+ Step 3: Run inference through the main binary.
245
+ ```
246
+ ./llama-cli --hf-repo hugging-quants/Llama-3.2-1B-Instruct-Q4_K_M-GGUF --hf-file llama-3.2-1b-instruct-q4_k_m.gguf -p "The meaning to life and the universe is"
247
+ ```
248
+ or
249
+ ```
250
+ ./llama-server --hf-repo hugging-quants/Llama-3.2-1B-Instruct-Q4_K_M-GGUF --hf-file llama-3.2-1b-instruct-q4_k_m.gguf -c 2048
251
+ ```
llama-3.2-1b-instruct-q4_k_m.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d0e9419ec4e12aef73ccf4ffd122703e94c48344a96bc7c5f0f2772c2152ce3
3
+ size 807690656