legraphista commited on
Commit
4eac3b9
·
verified ·
1 Parent(s): 006fdf4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +351 -0
README.md ADDED
@@ -0,0 +1,351 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-Guard-3-8B
3
+ extra_gated_button_content: Submit
4
+ extra_gated_description: The information you provide will be collected, stored, processed
5
+ and shared in accordance with the [Meta Privacy Policy](https://www.facebook.com/privacy/policy/).
6
+ extra_gated_fields:
7
+ Affiliation: text
8
+ ? By clicking Submit below I accept the terms of the license and acknowledge that
9
+ the information I provide will be collected stored processed and shared in accordance
10
+ with the Meta Privacy Policy
11
+ : checkbox
12
+ Country: country
13
+ Date of birth: date_picker
14
+ First Name: text
15
+ Job title:
16
+ options:
17
+ - Student
18
+ - Research Graduate
19
+ - AI researcher
20
+ - AI developer/engineer
21
+ - Reporter
22
+ - Other
23
+ type: select
24
+ Last Name: text
25
+ geo: ip_location
26
+ extra_gated_prompt: "### LLAMA 3.1 COMMUNITY LICENSE AGREEMENT\nLlama 3.1 Version\
27
+ \ Release Date: July 23, 2024\n\"Agreement\" means the terms and conditions for\
28
+ \ use, reproduction, distribution and modification of the Llama Materials set forth\
29
+ \ herein.\n\"Documentation\" means the specifications, manuals and documentation\
30
+ \ accompanying Llama 3.1 distributed by Meta at https://llama.meta.com/doc/overview.\n\
31
+ \"Licensee\" or \"you\" means you, or your employer or any other person or entity\
32
+ \ (if you are entering into this Agreement on such person or entity\u2019s behalf),\
33
+ \ of the age required under applicable laws, rules or regulations to provide legal\
34
+ \ consent and that has legal authority to bind your employer or such other person\
35
+ \ or entity if you are entering in this Agreement on their behalf.\n\"Llama 3.1\"\
36
+ \ means the foundational large language models and software and algorithms, including\
37
+ \ machine-learning model code, trained model weights, inference-enabling code, training-enabling\
38
+ \ code, fine-tuning enabling code and other elements of the foregoing distributed\
39
+ \ by Meta at https://llama.meta.com/llama-downloads.\n\"Llama Materials\" means,\
40
+ \ collectively, Meta\u2019s proprietary Llama 3.1 and Documentation (and any portion\
41
+ \ thereof) made available under this Agreement.\n\"Meta\" or \"we\" means Meta Platforms\
42
+ \ Ireland Limited (if you are located in or, if you are an entity, your principal\
43
+ \ place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you\
44
+ \ are located outside of the EEA or Switzerland).\n \n1. License Rights and Redistribution.\n\
45
+ a. Grant of Rights. You are granted a non-exclusive, worldwide, non-transferable\
46
+ \ and royalty-free limited license under Meta\u2019s intellectual property or other\
47
+ \ rights owned by Meta embodied in the Llama Materials to use, reproduce, distribute,\
48
+ \ copy, create derivative works of, and make modifications to the Llama Materials.\n\
49
+ b. Redistribution and Use.\ni. If you distribute or make available the Llama Materials\
50
+ \ (or any derivative works thereof), or a product or service (including another\
51
+ \ AI model) that contains any of them, you shall (A) provide a copy of this Agreement\
52
+ \ with any such Llama Materials; and (B) prominently display \u201CBuilt with Llama\u201D\
53
+ \ on a related website, user interface, blogpost, about page, or product documentation.\
54
+ \ If you use the Llama Materials or any outputs or results of the Llama Materials\
55
+ \ to create, train, fine tune, or otherwise improve an AI model, which is distributed\
56
+ \ or made available, you shall also include \u201CLlama\u201D at the beginning of\
57
+ \ any such AI model name.\nii. If you receive Llama Materials, or any derivative\
58
+ \ works thereof, from a Licensee as part of an integrated end user product, then\
59
+ \ Section 2 of this Agreement will not apply to you.\niii. You must retain in all\
60
+ \ copies of the Llama Materials that you distribute the following attribution notice\
61
+ \ within a \u201CNotice\u201D text file distributed as a part of such copies: \u201C\
62
+ Llama 3.1 is licensed under the Llama 3.1 Community License, Copyright \xA9 Meta\
63
+ \ Platforms, Inc. All Rights Reserved.\u201D\niv. Your use of the Llama Materials\
64
+ \ must comply with applicable laws and regulations (including trade compliance laws\
65
+ \ and regulations) and adhere to the Acceptable Use Policy for the Llama Materials\
66
+ \ (available at https://llama.meta.com/llama3_1/use-policy), which is hereby incorporated\
67
+ \ by reference into this Agreement.\n2. Additional Commercial Terms. If, on the\
68
+ \ Llama 3.1 version release date, the monthly active users of the products or services\
69
+ \ made available by or for Licensee, or Licensee\u2019s affiliates, is greater than\
70
+ \ 700 million monthly active users in the preceding calendar month, you must request\
71
+ \ a license from Meta, which Meta may grant to you in its sole discretion, and you\
72
+ \ are not authorized to exercise any of the rights under this Agreement unless or\
73
+ \ until Meta otherwise expressly grants you such rights.\n3. Disclaimer of Warranty.\
74
+ \ UNLESS REQUIRED BY APPLICABLE LAW, THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS\
75
+ \ THEREFROM ARE PROVIDED ON AN \u201CAS IS\u201D BASIS, WITHOUT WARRANTIES OF ANY\
76
+ \ KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY KIND, BOTH EXPRESS AND IMPLIED,\
77
+ \ INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY,\
78
+ \ OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING\
79
+ \ THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE LLAMA MATERIALS AND ASSUME\
80
+ \ ANY RISKS ASSOCIATED WITH YOUR USE OF THE LLAMA MATERIALS AND ANY OUTPUT AND RESULTS.\n\
81
+ 4. Limitation of Liability. IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER\
82
+ \ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY,\
83
+ \ OR OTHERWISE, ARISING OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT,\
84
+ \ SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META\
85
+ \ OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.\n\
86
+ 5. Intellectual Property.\na. No trademark licenses are granted under this Agreement,\
87
+ \ and in connection with the Llama Materials, neither Meta nor Licensee may use\
88
+ \ any name or mark owned by or associated with the other or any of its affiliates,\
89
+ \ except as required for reasonable and customary use in describing and redistributing\
90
+ \ the Llama Materials or as set forth in this Section 5(a). Meta hereby grants you\
91
+ \ a license to use \u201CLlama\u201D (the \u201CMark\u201D) solely as required to\
92
+ \ comply with the last sentence of Section 1.b.i. You will comply with Meta\u2019\
93
+ s brand guidelines (currently accessible at https://about.meta.com/brand/resources/meta/company-brand/\
94
+ \ ). All goodwill arising out of your use of the Mark will inure to the benefit\
95
+ \ of Meta.\nb. Subject to Meta\u2019s ownership of Llama Materials and derivatives\
96
+ \ made by or for Meta, with respect to any derivative works and modifications of\
97
+ \ the Llama Materials that are made by you, as between you and Meta, you are and\
98
+ \ will be the owner of such derivative works and modifications.\nc. If you institute\
99
+ \ litigation or other proceedings against Meta or any entity (including a cross-claim\
100
+ \ or counterclaim in a lawsuit) alleging that the Llama Materials or Llama 3.1 outputs\
101
+ \ or results, or any portion of any of the foregoing, constitutes infringement of\
102
+ \ intellectual property or other rights owned or licensable by you, then any licenses\
103
+ \ granted to you under this Agreement shall terminate as of the date such litigation\
104
+ \ or claim is filed or instituted. You will indemnify and hold harmless Meta from\
105
+ \ and against any claim by any third party arising out of or related to your use\
106
+ \ or distribution of the Llama Materials.\n6. Term and Termination. The term of\
107
+ \ this Agreement will commence upon your acceptance of this Agreement or access\
108
+ \ to the Llama Materials and will continue in full force and effect until terminated\
109
+ \ in accordance with the terms and conditions herein. Meta may terminate this Agreement\
110
+ \ if you are in breach of any term or condition of this Agreement. Upon termination\
111
+ \ of this Agreement, you shall delete and cease use of the Llama Materials. Sections\
112
+ \ 3, 4 and 7 shall survive the termination of this Agreement.\n7. Governing Law\
113
+ \ and Jurisdiction. This Agreement will be governed and construed under the laws\
114
+ \ of the State of California without regard to choice of law principles, and the\
115
+ \ UN Convention on Contracts for the International Sale of Goods does not apply\
116
+ \ to this Agreement. The courts of California shall have exclusive jurisdiction\
117
+ \ of any dispute arising out of this Agreement.\n### Llama 3.1 Acceptable Use Policy\n\
118
+ Meta is committed to promoting safe and fair use of its tools and features, including\
119
+ \ Llama 3.1. If you access or use Llama 3.1, you agree to this Acceptable Use Policy\
120
+ \ (\u201CPolicy\u201D). 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\
121
+ #### Prohibited Uses\nWe want everyone to use Llama 3.1 safely and responsibly.\
122
+ \ You agree you will not use, or allow others to use, Llama 3.1 to:\n 1. Violate\
123
+ \ the law or others\u2019 rights, including to:\n 1. Engage in, promote, generate,\
124
+ \ contribute to, encourage, plan, incite, or further illegal or unlawful activity\
125
+ \ or content, such as:\n 1. Violence or terrorism\n 2. Exploitation\
126
+ \ or harm to children, including the solicitation, creation, acquisition, or dissemination\
127
+ \ of child exploitative content or failure to report Child Sexual Abuse Material\n\
128
+ \ 3. Human trafficking, exploitation, and sexual violence\n 4. The\
129
+ \ illegal distribution of information or materials to minors, including obscene\
130
+ \ materials, or failure to employ legally required age-gating in connection with\
131
+ \ such information or materials.\n 5. Sexual solicitation\n 6. Any\
132
+ \ other criminal activity\n 3. Engage in, promote, incite, or facilitate the\
133
+ \ harassment, abuse, threatening, or bullying of individuals or groups of individuals\n\
134
+ \ 4. Engage in, promote, incite, or facilitate discrimination or other unlawful\
135
+ \ or harmful conduct in the provision of employment, employment benefits, credit,\
136
+ \ housing, other economic benefits, or other essential goods and services\n 5.\
137
+ \ Engage in the unauthorized or unlicensed practice of any profession including,\
138
+ \ but not limited to, financial, legal, medical/health, or related professional\
139
+ \ practices\n 6. Collect, process, disclose, generate, or infer health, demographic,\
140
+ \ or other sensitive personal or private information about individuals without rights\
141
+ \ and consents required by applicable laws\n 7. Engage in or facilitate any action\
142
+ \ or generate any content that infringes, misappropriates, or otherwise violates\
143
+ \ any third-party rights, including the outputs or results of any products or services\
144
+ \ using the Llama Materials\n 8. Create, generate, or facilitate the creation\
145
+ \ of malicious code, malware, computer viruses or do anything else that could disable,\
146
+ \ overburden, interfere with or impair the proper working, integrity, operation\
147
+ \ or appearance of a website or computer system\n2. Engage in, promote, incite,\
148
+ \ facilitate, or assist in the planning or development of activities that present\
149
+ \ a risk of death or bodily harm to individuals, including use of Llama 3.1 related\
150
+ \ to the following:\n 1. Military, warfare, nuclear industries or applications,\
151
+ \ espionage, use for materials or activities that are subject to the International\
152
+ \ Traffic Arms Regulations (ITAR) maintained by the United States Department of\
153
+ \ State\n 2. Guns and illegal weapons (including weapon development)\n 3.\
154
+ \ Illegal drugs and regulated/controlled substances\n 4. Operation of critical\
155
+ \ infrastructure, transportation technologies, or heavy machinery\n 5. Self-harm\
156
+ \ or harm to others, including suicide, cutting, and eating disorders\n 6. Any\
157
+ \ content intended to incite or promote violence, abuse, or any infliction of bodily\
158
+ \ harm to an individual\n3. Intentionally deceive or mislead others, including use\
159
+ \ of Llama 3.1 related to the following:\n 1. Generating, promoting, or furthering\
160
+ \ fraud or the creation or promotion of disinformation\n 2. Generating, promoting,\
161
+ \ or furthering defamatory content, including the creation of defamatory statements,\
162
+ \ images, or other content\n 3. Generating, promoting, or further distributing\
163
+ \ spam\n 4. Impersonating another individual without consent, authorization,\
164
+ \ or legal right\n 5. Representing that the use of Llama 3.1 or outputs are human-generated\n\
165
+ \ 6. Generating or facilitating false online engagement, including fake reviews\
166
+ \ and other means of fake online engagement\n4. Fail to appropriately disclose to\
167
+ \ end users any known dangers of your AI system\nPlease report any violation of\
168
+ \ this Policy, software \u201Cbug,\u201D or other problems that could lead to a\
169
+ \ violation of this Policy through one of the following means:\n * Reporting\
170
+ \ issues with the model: [https://github.com/meta-llama/llama-models/issues](https://github.com/meta-llama/llama-models/issues)\n\
171
+ \ * Reporting risky content generated by the model:\n developers.facebook.com/llama_output_feedback\n\
172
+ \ * Reporting bugs and security concerns: facebook.com/whitehat/info\n * Reporting\
173
+ \ violations of the Acceptable Use Policy or unlicensed uses of Meta Llama 3: LlamaUseReport@meta.com"
174
+ inference: false
175
+ language:
176
+ - en
177
+ library_name: gguf
178
+ license: llama3.1
179
+ pipeline_tag: text-generation
180
+ quantized_by: legraphista
181
+ tags:
182
+ - facebook
183
+ - meta
184
+ - pytorch
185
+ - llama
186
+ - llama-3
187
+ - quantized
188
+ - GGUF
189
+ - quantization
190
+ - imat
191
+ - imatrix
192
+ - static
193
+ - 16bit
194
+ - 8bit
195
+ - 6bit
196
+ - 5bit
197
+ - 4bit
198
+ - 3bit
199
+ - 2bit
200
+ - 1bit
201
+ ---
202
+
203
+ # Llama-Guard-3-8B-IMat-GGUF
204
+ _Llama.cpp imatrix quantization of meta-llama/Llama-Guard-3-8B_
205
+
206
+ Original Model: [meta-llama/Llama-Guard-3-8B](https://huggingface.co/meta-llama/Llama-Guard-3-8B)
207
+ Original dtype: `BF16` (`bfloat16`)
208
+ Quantized by: llama.cpp [b3447](https://github.com/ggerganov/llama.cpp/releases/tag/b3447)
209
+ IMatrix dataset: [here](https://gist.githubusercontent.com/bartowski1182/eb213dccb3571f863da82e99418f81e8/raw/b2869d80f5c16fd7082594248e80144677736635/calibration_datav3.txt)
210
+
211
+ - [Files](#files)
212
+ - [IMatrix](#imatrix)
213
+ - [Common Quants](#common-quants)
214
+ - [All Quants](#all-quants)
215
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
216
+ - [Inference](#inference)
217
+ - [Simple chat template](#simple-chat-template)
218
+ - [Llama.cpp](#llama-cpp)
219
+ - [FAQ](#faq)
220
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
221
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
222
+
223
+ ---
224
+
225
+ ## Files
226
+
227
+ ### IMatrix
228
+ Status: ⏳ Processing
229
+ Link: [here](https://huggingface.co/legraphista/Llama-Guard-3-8B-IMat-GGUF/blob/main/imatrix.dat)
230
+
231
+ ### Common Quants
232
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
233
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
234
+ | Llama-Guard-3-8B.Q8_0 | Q8_0 | - | ⏳ Processing | ⚪ Static | -
235
+ | Llama-Guard-3-8B.Q6_K | Q6_K | - | ⏳ Processing | ⚪ Static | -
236
+ | Llama-Guard-3-8B.Q4_K | Q4_K | - | ⏳ Processing | 🟢 IMatrix | -
237
+ | Llama-Guard-3-8B.Q3_K | Q3_K | - | ⏳ Processing | 🟢 IMatrix | -
238
+ | Llama-Guard-3-8B.Q2_K | Q2_K | - | ⏳ Processing | 🟢 IMatrix | -
239
+
240
+
241
+ ### All Quants
242
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
243
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
244
+ | Llama-Guard-3-8B.BF16 | BF16 | - | ⏳ Processing | ⚪ Static | -
245
+ | Llama-Guard-3-8B.FP16 | F16 | - | ⏳ Processing | ⚪ Static | -
246
+ | Llama-Guard-3-8B.Q8_0 | Q8_0 | - | ⏳ Processing | ⚪ Static | -
247
+ | Llama-Guard-3-8B.Q6_K | Q6_K | - | ⏳ Processing | ⚪ Static | -
248
+ | Llama-Guard-3-8B.Q5_K | Q5_K | - | ⏳ Processing | ⚪ Static | -
249
+ | Llama-Guard-3-8B.Q5_K_S | Q5_K_S | - | ⏳ Processing | ⚪ Static | -
250
+ | Llama-Guard-3-8B.Q4_K | Q4_K | - | ⏳ Processing | 🟢 IMatrix | -
251
+ | Llama-Guard-3-8B.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟢 IMatrix | -
252
+ | Llama-Guard-3-8B.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟢 IMatrix | -
253
+ | Llama-Guard-3-8B.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟢 IMatrix | -
254
+ | Llama-Guard-3-8B.Q3_K | Q3_K | - | ⏳ Processing | 🟢 IMatrix | -
255
+ | Llama-Guard-3-8B.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟢 IMatrix | -
256
+ | Llama-Guard-3-8B.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟢 IMatrix | -
257
+ | Llama-Guard-3-8B.IQ3_M | IQ3_M | - | ⏳ Processing | 🟢 IMatrix | -
258
+ | Llama-Guard-3-8B.IQ3_S | IQ3_S | - | ⏳ Processing | 🟢 IMatrix | -
259
+ | Llama-Guard-3-8B.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟢 IMatrix | -
260
+ | Llama-Guard-3-8B.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟢 IMatrix | -
261
+ | Llama-Guard-3-8B.Q2_K | Q2_K | - | ⏳ Processing | 🟢 IMatrix | -
262
+ | Llama-Guard-3-8B.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟢 IMatrix | -
263
+ | Llama-Guard-3-8B.IQ2_M | IQ2_M | - | ⏳ Processing | 🟢 IMatrix | -
264
+ | Llama-Guard-3-8B.IQ2_S | IQ2_S | - | ⏳ Processing | 🟢 IMatrix | -
265
+ | Llama-Guard-3-8B.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟢 IMatrix | -
266
+ | Llama-Guard-3-8B.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟢 IMatrix | -
267
+ | Llama-Guard-3-8B.IQ1_M | IQ1_M | - | ⏳ Processing | 🟢 IMatrix | -
268
+ | Llama-Guard-3-8B.IQ1_S | IQ1_S | - | ⏳ Processing | 🟢 IMatrix | -
269
+
270
+
271
+ ## Downloading using huggingface-cli
272
+ If you do not have hugginface-cli installed:
273
+ ```
274
+ pip install -U "huggingface_hub[cli]"
275
+ ```
276
+ Download the specific file you want:
277
+ ```
278
+ huggingface-cli download legraphista/Llama-Guard-3-8B-IMat-GGUF --include "Llama-Guard-3-8B.Q8_0.gguf" --local-dir ./
279
+ ```
280
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
281
+ ```
282
+ huggingface-cli download legraphista/Llama-Guard-3-8B-IMat-GGUF --include "Llama-Guard-3-8B.Q8_0/*" --local-dir ./
283
+ # see FAQ for merging GGUF's
284
+ ```
285
+
286
+ ---
287
+
288
+ ## Inference
289
+
290
+ ### Simple chat template
291
+ ```
292
+ <|begin_of_text|><|start_header_id|>user<|end_header_id|>
293
+
294
+ Task: Check if there is unsafe content in 'User' messages in conversations according our safety policy with the below categories.
295
+
296
+ <BEGIN UNSAFE CONTENT CATEGORIES>
297
+ S1: Violent Crimes.
298
+ S2: Non-Violent Crimes.
299
+ S3: Sex Crimes.
300
+ S4: Child Exploitation.
301
+ S5: Defamation.
302
+ S6: Specialized Advice.
303
+ S7: Privacy.
304
+ S8: Intellectual Property.
305
+ S9: Indiscriminate Weapons.
306
+ S10: Hate.
307
+ S11: Self-Harm.
308
+ S12: Sexual Content.
309
+ S13: Elections.
310
+ S14: Code Interpreter Abuse.
311
+ <END UNSAFE CONTENT CATEGORIES>
312
+
313
+ <BEGIN CONVERSATION>
314
+
315
+ User: {user_prompt}
316
+
317
+ Agent: {assistant_response}
318
+
319
+ User: {next_user_prompt}
320
+
321
+ <END CONVERSATION>
322
+
323
+ Provide your safety assessment for ONLY THE LAST User message in the above conversation:
324
+ - First line must read 'safe' or 'unsafe'.
325
+ - If unsafe, a second line must include a comma-separated list of violated categories.<|eot_id|><|start_header_id|>assistant<|end_header_id|>
326
+ ```
327
+
328
+ ### Llama.cpp
329
+ ```
330
+ llama.cpp/main -m Llama-Guard-3-8B.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"
331
+ ```
332
+
333
+ ---
334
+
335
+ ## FAQ
336
+
337
+ ### Why is the IMatrix not applied everywhere?
338
+ According to [this investigation](https://www.reddit.com/r/LocalLLaMA/comments/1993iro/ggufs_quants_can_punch_above_their_weights_now/), it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).
339
+
340
+ ### How do I merge a split GGUF?
341
+ 1. Make sure you have `gguf-split` available
342
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
343
+ - Download the appropriate zip for your system from the latest release
344
+ - Unzip the archive and you should be able to find `gguf-split`
345
+ 2. Locate your GGUF chunks folder (ex: `Llama-Guard-3-8B.Q8_0`)
346
+ 3. Run `gguf-split --merge Llama-Guard-3-8B.Q8_0/Llama-Guard-3-8B.Q8_0-00001-of-XXXXX.gguf Llama-Guard-3-8B.Q8_0.gguf`
347
+ - Make sure to point `gguf-split` to the first chunk of the split.
348
+
349
+ ---
350
+
351
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!