legraphista commited on
Commit
2a2bd9a
1 Parent(s): 5504974

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +259 -0
README.md ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: facebook/llm-compiler-7b
3
+ extra_gated_button_content: I Accept Meta LLM Compiler License and AUP
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
+ I accept the terms and conditions: checkbox
16
+ Last Name: text
17
+ Test request?: checkbox
18
+ geo: ip_location
19
+ extra_gated_prompt: "**Meta Large Language Model Compiler (LLM Compiler) LICENSE AGREEMENT**\n\
20
+ Version Release Date: 27th June 2024\n\u201C**Agreement**\u201D means the terms\
21
+ \ and conditions for use, reproduction, distribution and modification of the LLM\
22
+ \ Compiler Materials set forth herein.\n\u201C**Documentation**\u201D means the\
23
+ \ specifications, manuals and documentation accompanying the LLM Compiler distributed\
24
+ \ by Meta at:\n* [https://huggingface.co/facebook/llm-compiler-7b](https://huggingface.co/facebook/llm-compiler-7b)\
25
+ \ * [https://huggingface.co/facebook/llm-compiler-7b-ftd](https://huggingface.co/facebook/llm-compiler-7b-ftd)\
26
+ \ * [https://huggingface.co/facebook/llm-compiler-13b](https://huggingface.co/facebook/llm-compiler-13b)\
27
+ \ * [https://huggingface.co/facebook/llm-compiler-13b-ftd](https://huggingface.co/facebook/llm-compiler-13b-ftd)\n\
28
+ \u201C**Licensee**\u201D or \u201C**you**\u201D means you, or your employer or any\
29
+ \ other person or entity (if you are entering into this Agreement on such person\
30
+ \ or entity\u2019s behalf), of the age required under applicable laws, rules or\
31
+ \ regulations to provide legal consent and that has legal authority to bind your\
32
+ \ employer or such other person or entity if you are entering in this Agreement\
33
+ \ on their behalf.\n\u201C**Meta Large Language Model Compiler\u201D and \u201C\
34
+ LLM Compiler**\u201D mean the foundational large language models and software and\
35
+ \ algorithms, including machine-learning model code, trained model weights, inference-enabling\
36
+ \ code, training-enabling code, fine-tuning enabling code and other elements of\
37
+ \ the foregoing distributed by Meta at:\n* [https://huggingface.co/facebook/llm-compiler-7b](https://huggingface.co/facebook/llm-compiler-7b)\
38
+ \ * [https://huggingface.co/facebook/llm-compiler-7b-ftd](https://huggingface.co/facebook/llm-compiler-7b-ftd)\
39
+ \ * [https://huggingface.co/facebook/llm-compiler-13b](https://huggingface.co/facebook/llm-compiler-13b)\
40
+ \ * [https://huggingface.co/facebook/llm-compiler-13b-ftd](https://huggingface.co/facebook/llm-compiler-13b-ftd)\n\
41
+ \u201C**LLM Compiler Materials**\u201D means, collectively, Meta\u2019s proprietary\
42
+ \ LLM Compiler and Documentation (and any portion thereof) made available under\
43
+ \ this Agreement.\n\u201C**Meta**\u201D or \u201C**we**\u201D means Meta Platforms\
44
+ \ Ireland Limited (if you are located in or, if you are an entity, your principal\
45
+ \ place of business is in the EEA or Switzerland) and Meta Platforms, Inc. (if you\
46
+ \ are located outside of the EEA or Switzerland). \nBy clicking \u201CI Accept\u201D\
47
+ \ below or by using or distributing any portion or element of the LLM Compiler Materials,\
48
+ \ you agree to be bound by this Agreement.\n1. **License Rights and Redistribution**.\
49
+ \ \\\n\n a. <span style=\"text-decoration:underline;\">Grant of Rights</span>.\
50
+ \ You are granted a non-exclusive, worldwide, non-transferable and royalty-free\
51
+ \ limited license under Meta\u2019s intellectual property or other rights owned\
52
+ \ by Meta embodied in the LLM Compiler Materials to use, reproduce, distribute,\
53
+ \ copy, create derivative works of, and make modifications to the LLM Compiler Materials.\
54
+ \ \n\n b. <span style=\"text-decoration:underline;\">Redistribution and Use</span>.\
55
+ \ \n\n i. If you distribute or make available the LLM Compiler Materials (or\
56
+ \ any derivative works thereof), or a product or service that uses any of them,\
57
+ \ including another AI model, you shall (A) provide a copy of this Agreement with\
58
+ \ any such LLM Compiler Materials; and (B) prominently display \u201CBuilt with\
59
+ \ LLM Compiler\u201D on a related website, user interface, blogpost, about page,\
60
+ \ or product documentation. If you use the LLM Compiler Materials to create, train,\
61
+ \ fine tune, or otherwise improve an AI model, which is distributed or made available,\
62
+ \ you shall also include \u201CLLM Compiler\u201D at the beginning of any such AI\
63
+ \ model name.\n\n ii. If you receive LLM Compiler Materials, or any derivative\
64
+ \ works thereof, from a Licensee as part of an integrated end user product, then\
65
+ \ Section 2 of this Agreement will not apply to you. \n\n iii. You must retain\
66
+ \ in all copies of the LLM Compiler Materials that you distribute the following\
67
+ \ attribution notice within a \u201CNotice\u201D text file distributed as a part\
68
+ \ of such copies: \u201CLLM Compiler is licensed under the LLM Compiler License,\
69
+ \ Copyright \xA9 Meta Platforms, Inc. All Rights Reserved.\u201D\n\n iv. Your\
70
+ \ use of the LLM Compiler Materials must comply with applicable laws and regulations\
71
+ \ (including trade compliance laws and regulations) and adhere to the Acceptable\
72
+ \ Use Policy for Llama Materials (available at https://llama.meta.com/llama3/use-policy),\
73
+ \ which is hereby incorporated by reference into this Agreement.\n\n v. You will\
74
+ \ not use the LLM Compiler Materials or any output or results of the LLM Compiler\
75
+ \ Materials to improve any other large language model. \n\n2. **Additional Commercial\
76
+ \ Terms**. If, on the LLM Compiler release date, the monthly active users of the\
77
+ \ products or services made available by or for Licensee, or Licensee\u2019s affiliates,\
78
+ \ is greater than 700 million monthly active users in the preceding calendar month,\
79
+ \ you must request a license from Meta, which Meta may grant to you in its sole\
80
+ \ discretion, and you are not authorized to exercise any of the rights under this\
81
+ \ Agreement unless or until Meta otherwise expressly grants you such rights. \n\
82
+ 3**. Disclaimer of Warranty**. UNLESS REQUIRED BY APPLICABLE LAW, THE LLM COMPILER\
83
+ \ MATERIALS AND ANY OUTPUT AND RESULTS THEREFROM ARE PROVIDED ON AN \u201CAS IS\u201D\
84
+ \ BASIS, WITHOUT WARRANTIES OF ANY KIND, AND META DISCLAIMS ALL WARRANTIES OF ANY\
85
+ \ KIND, BOTH EXPRESS AND IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES\
86
+ \ OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.\
87
+ \ YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING\
88
+ \ THE LLM COMPILER MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE\
89
+ \ LLM COMPILER MATERIALS AND ANY OUTPUT AND RESULTS.\n4. **Limitation of Liability**.\
90
+ \ IN NO EVENT WILL META OR ITS AFFILIATES BE LIABLE UNDER ANY THEORY OF LIABILITY,\
91
+ \ WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING\
92
+ \ OUT OF THIS AGREEMENT, FOR ANY LOST PROFITS OR ANY INDIRECT, SPECIAL, CONSEQUENTIAL,\
93
+ \ INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, EVEN IF META OR ITS AFFILIATES HAVE\
94
+ \ BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.\n5. **Intellectual Property**.\n\
95
+ \n a. No trademark licenses are granted under this Agreement, and in connection\
96
+ \ with the LLM Compiler Materials, neither Meta nor Licensee may use any name or\
97
+ \ mark owned by or associated with the other or any of its affiliates, except as\
98
+ \ required for reasonable and customary use in describing and redistributing the\
99
+ \ LLM Compiler Materials or as set forth in this Section 5(a). Meta hereby grants\
100
+ \ you a license to use LLM Compiler (the \u201CMark\u201D) solely as required to\
101
+ \ comply with the last sentence of Section 1.b.i. You will comply with Meta\u2019\
102
+ s brand guidelines (currently accessible at[ https://about.meta.com/brand/resources/meta/company-brand/)](https://about.meta.com/brand/resources/meta/company-brand/).\
103
+ \ All goodwill arising out of your use of the Mark will inure to the benefit of\
104
+ \ Meta. \n\n b. Subject to Meta\u2019s ownership of LLM Compiler Materials and\
105
+ \ derivatives made by or for Meta, with respect to any derivative works and modifications\
106
+ \ of the LLM Compiler Materials that are made by you, as between you and Meta, you\
107
+ \ are and will be the owner of such derivative works and modifications.\n\n c.\
108
+ \ If you institute litigation or other proceedings against Meta or any entity (including\
109
+ \ a cross-claim or counterclaim in a lawsuit) alleging that the LLM Compiler Materials\
110
+ \ or LLM Compiler outputs or results, or any portion of any of the foregoing, constitutes\
111
+ \ infringement of intellectual property or other rights owned or licensable by you,\
112
+ \ then any licenses granted to you under this Agreement shall terminate as of the\
113
+ \ date such litigation or claim is filed or instituted. You will indemnify and hold\
114
+ \ harmless Meta from and against any claim by any third party arising out of or\
115
+ \ related to your use or distribution of the LLM Compiler Materials.\n\n6. **Term\
116
+ \ and Termination**. The term of this Agreement will commence upon your acceptance\
117
+ \ of this Agreement or access to the LLM Compiler Materials and will continue in\
118
+ \ full force and effect until terminated in accordance with the terms and conditions\
119
+ \ herein. Meta may terminate this Agreement if you are in breach of any term or\
120
+ \ condition of this Agreement. Upon termination of this Agreement, you shall delete\
121
+ \ and cease use of the LLM Compiler Materials. Sections 3, 4 and 7 shall survive\
122
+ \ the termination of this Agreement. \n7. **Governing Law and Jurisdiction**. This\
123
+ \ Agreement will be governed and construed under the laws of the State of California\
124
+ \ without regard to choice of law principles, and the UN Convention on Contracts\
125
+ \ for the International Sale of Goods does not apply to this Agreement. The courts\
126
+ \ of California shall have exclusive jurisdiction of any dispute arising out of\
127
+ \ this Agreement. "
128
+ inference: false
129
+ library_name: gguf
130
+ license: other
131
+ pipeline_tag: text-generation
132
+ quantized_by: legraphista
133
+ tags:
134
+ - quantized
135
+ - GGUF
136
+ - quantization
137
+ - imat
138
+ - imatrix
139
+ - static
140
+ - 16bit
141
+ - 8bit
142
+ - 6bit
143
+ - 5bit
144
+ - 4bit
145
+ - 3bit
146
+ - 2bit
147
+ - 1bit
148
+ ---
149
+
150
+ # llm-compiler-7b-IMat-GGUF
151
+ _Llama.cpp imatrix quantization of facebook/llm-compiler-7b_
152
+
153
+ Original Model: [facebook/llm-compiler-7b](https://huggingface.co/facebook/llm-compiler-7b)
154
+ Original dtype: `BF16` (`bfloat16`)
155
+ Quantized by: llama.cpp [b3256](https://github.com/ggerganov/llama.cpp/releases/tag/b3256)
156
+ IMatrix dataset: [here](https://gist.githubusercontent.com/bartowski1182/eb213dccb3571f863da82e99418f81e8/raw/b2869d80f5c16fd7082594248e80144677736635/calibration_datav3.txt)
157
+
158
+ - [Files](#files)
159
+ - [IMatrix](#imatrix)
160
+ - [Common Quants](#common-quants)
161
+ - [All Quants](#all-quants)
162
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
163
+ - [Inference](#inference)
164
+ - [Llama.cpp](#llama-cpp)
165
+ - [FAQ](#faq)
166
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
167
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
168
+
169
+ ---
170
+
171
+ ## Files
172
+
173
+ ### IMatrix
174
+ Status: ⏳ Processing
175
+ Link: [here](https://huggingface.co/legraphista/llm-compiler-7b-IMat-GGUF/blob/main/imatrix.dat)
176
+
177
+ ### Common Quants
178
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
179
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
180
+ | llm-compiler-7b.Q8_0 | Q8_0 | - | ⏳ Processing | ⚪ Static | -
181
+ | llm-compiler-7b.Q6_K | Q6_K | - | ⏳ Processing | ⚪ Static | -
182
+ | llm-compiler-7b.Q4_K | Q4_K | - | ⏳ Processing | 🟢 IMatrix | -
183
+ | llm-compiler-7b.Q3_K | Q3_K | - | ⏳ Processing | 🟢 IMatrix | -
184
+ | llm-compiler-7b.Q2_K | Q2_K | - | ⏳ Processing | 🟢 IMatrix | -
185
+
186
+
187
+ ### All Quants
188
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
189
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
190
+ | llm-compiler-7b.BF16 | BF16 | - | ⏳ Processing | ⚪ Static | -
191
+ | llm-compiler-7b.FP16 | F16 | - | ⏳ Processing | ⚪ Static | -
192
+ | llm-compiler-7b.Q8_0 | Q8_0 | - | ⏳ Processing | ⚪ Static | -
193
+ | llm-compiler-7b.Q6_K | Q6_K | - | ⏳ Processing | ⚪ Static | -
194
+ | llm-compiler-7b.Q5_K | Q5_K | - | ⏳ Processing | ⚪ Static | -
195
+ | llm-compiler-7b.Q5_K_S | Q5_K_S | - | ⏳ Processing | ⚪ Static | -
196
+ | llm-compiler-7b.Q4_K | Q4_K | - | ⏳ Processing | 🟢 IMatrix | -
197
+ | llm-compiler-7b.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟢 IMatrix | -
198
+ | llm-compiler-7b.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟢 IMatrix | -
199
+ | llm-compiler-7b.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟢 IMatrix | -
200
+ | llm-compiler-7b.Q3_K | Q3_K | - | ⏳ Processing | 🟢 IMatrix | -
201
+ | llm-compiler-7b.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟢 IMatrix | -
202
+ | llm-compiler-7b.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟢 IMatrix | -
203
+ | llm-compiler-7b.IQ3_M | IQ3_M | - | ⏳ Processing | 🟢 IMatrix | -
204
+ | llm-compiler-7b.IQ3_S | IQ3_S | - | ⏳ Processing | 🟢 IMatrix | -
205
+ | llm-compiler-7b.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟢 IMatrix | -
206
+ | llm-compiler-7b.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟢 IMatrix | -
207
+ | llm-compiler-7b.Q2_K | Q2_K | - | ⏳ Processing | 🟢 IMatrix | -
208
+ | llm-compiler-7b.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟢 IMatrix | -
209
+ | llm-compiler-7b.IQ2_M | IQ2_M | - | ⏳ Processing | 🟢 IMatrix | -
210
+ | llm-compiler-7b.IQ2_S | IQ2_S | - | ⏳ Processing | 🟢 IMatrix | -
211
+ | llm-compiler-7b.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟢 IMatrix | -
212
+ | llm-compiler-7b.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟢 IMatrix | -
213
+ | llm-compiler-7b.IQ1_M | IQ1_M | - | ⏳ Processing | 🟢 IMatrix | -
214
+ | llm-compiler-7b.IQ1_S | IQ1_S | - | ⏳ Processing | 🟢 IMatrix | -
215
+
216
+
217
+ ## Downloading using huggingface-cli
218
+ If you do not have hugginface-cli installed:
219
+ ```
220
+ pip install -U "huggingface_hub[cli]"
221
+ ```
222
+ Download the specific file you want:
223
+ ```
224
+ huggingface-cli download legraphista/llm-compiler-7b-IMat-GGUF --include "llm-compiler-7b.Q8_0.gguf" --local-dir ./
225
+ ```
226
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
227
+ ```
228
+ huggingface-cli download legraphista/llm-compiler-7b-IMat-GGUF --include "llm-compiler-7b.Q8_0/*" --local-dir ./
229
+ # see FAQ for merging GGUF's
230
+ ```
231
+
232
+ ---
233
+
234
+ ## Inference
235
+
236
+ ### Llama.cpp
237
+ ```
238
+ llama.cpp/main -m llm-compiler-7b.Q8_0.gguf --color -i -p "prompt here"
239
+ ```
240
+
241
+ ---
242
+
243
+ ## FAQ
244
+
245
+ ### Why is the IMatrix not applied everywhere?
246
+ 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).
247
+
248
+ ### How do I merge a split GGUF?
249
+ 1. Make sure you have `gguf-split` available
250
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
251
+ - Download the appropriate zip for your system from the latest release
252
+ - Unzip the archive and you should be able to find `gguf-split`
253
+ 2. Locate your GGUF chunks folder (ex: `llm-compiler-7b.Q8_0`)
254
+ 3. Run `gguf-split --merge llm-compiler-7b.Q8_0/llm-compiler-7b.Q8_0-00001-of-XXXXX.gguf llm-compiler-7b.Q8_0.gguf`
255
+ - Make sure to point `gguf-split` to the first chunk of the split.
256
+
257
+ ---
258
+
259
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!