Initial GPTQ model commit
Browse files
README.md
CHANGED
@@ -29,22 +29,21 @@ tags:
|
|
29 |
|
30 |
# Meta's Llama 2 13B GPTQ
|
31 |
|
32 |
-
These files are GPTQ model files for [Meta's Llama 2 13B](https://huggingface.co/meta-llama/Llama-2-13b-
|
33 |
|
34 |
Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
|
35 |
|
|
|
36 |
## Repositories available
|
37 |
|
38 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-13B-GPTQ)
|
39 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-13B-GGML)
|
40 |
-
* [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/
|
41 |
|
42 |
-
## Prompt template:
|
43 |
|
44 |
```
|
45 |
-
|
46 |
-
USER: {prompt}
|
47 |
-
ASSISTANT:
|
48 |
```
|
49 |
|
50 |
## Provided files
|
@@ -132,9 +131,7 @@ model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
|
|
132 |
"""
|
133 |
|
134 |
prompt = "Tell me about AI"
|
135 |
-
prompt_template=f'''
|
136 |
-
USER: {prompt}
|
137 |
-
ASSISTANT:
|
138 |
'''
|
139 |
|
140 |
print("\n\n*** Generate:")
|
@@ -198,8 +195,76 @@ Thank you to all my generous patrons and donaters!
|
|
198 |
|
199 |
# Original model card: Meta's Llama 2 13B
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
# **Llama 2**
|
202 |
-
Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 13B
|
203 |
|
204 |
## Model Details
|
205 |
*Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the [website](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and accept our License before requesting access here.*
|
|
|
29 |
|
30 |
# Meta's Llama 2 13B GPTQ
|
31 |
|
32 |
+
These files are GPTQ model files for [Meta's Llama 2 13B](https://huggingface.co/meta-llama/Llama-2-13b-hf).
|
33 |
|
34 |
Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
|
35 |
|
36 |
+
|
37 |
## Repositories available
|
38 |
|
39 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-13B-GPTQ)
|
40 |
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-13B-GGML)
|
41 |
+
* [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TheBloke/Llama-2-13B-fp16)
|
42 |
|
43 |
+
## Prompt template: None
|
44 |
|
45 |
```
|
46 |
+
{prompt}
|
|
|
|
|
47 |
```
|
48 |
|
49 |
## Provided files
|
|
|
131 |
"""
|
132 |
|
133 |
prompt = "Tell me about AI"
|
134 |
+
prompt_template=f'''{prompt}
|
|
|
|
|
135 |
'''
|
136 |
|
137 |
print("\n\n*** Generate:")
|
|
|
195 |
|
196 |
# Original model card: Meta's Llama 2 13B
|
197 |
|
198 |
+
|
199 |
+
<!-- header start -->
|
200 |
+
<div style="width: 100%;">
|
201 |
+
<img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
202 |
+
</div>
|
203 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
204 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
205 |
+
<p><a href="https://discord.gg/theblokeai">Chat & support: my new Discord server</a></p>
|
206 |
+
</div>
|
207 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
208 |
+
<p><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
|
209 |
+
</div>
|
210 |
+
</div>
|
211 |
+
<!-- header end -->
|
212 |
+
|
213 |
+
# Meta's Llama 2 13B fp16
|
214 |
+
|
215 |
+
These files are fp16 format model files for [Meta's Llama 2 13B](https://huggingface.co/meta-llama/Llama-2-13b-hf).
|
216 |
+
|
217 |
+
They were produced by downloading the PTH files from Meta, and then converting to HF format using the latest Transformers 4.32.0.dev0, from Git, with the Llama 2 PR included: https://github.com/huggingface/transformers/pull/24891.
|
218 |
+
|
219 |
+
Command to convert was:
|
220 |
+
```
|
221 |
+
python3 /workspace/venv/pytorch2/lib/python3.10/site-packages/transformers/models/llama/convert_llama_weights_to_hf.py --input_dir /workspace/git/llama/download --model_size 13B --output_dir /workspace/process/llama-2-13b/source
|
222 |
+
```
|
223 |
+
|
224 |
+
## Repositories available
|
225 |
+
|
226 |
+
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-13B-GPTQ)
|
227 |
+
* [Original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-13b-hf)
|
228 |
+
* [My fp16 conversion of the unquantised PTH model files](https://huggingface.co/TheBloke/Llama-2-13B-fp16)
|
229 |
+
|
230 |
+
## Prompt template: None
|
231 |
+
|
232 |
+
```
|
233 |
+
{prompt}
|
234 |
+
```
|
235 |
+
|
236 |
+
<!-- footer start -->
|
237 |
+
## Discord
|
238 |
+
|
239 |
+
For further support, and discussions on these models and AI in general, join us at:
|
240 |
+
|
241 |
+
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
242 |
+
|
243 |
+
## Thanks, and how to contribute.
|
244 |
+
|
245 |
+
Thanks to the [chirper.ai](https://chirper.ai) team!
|
246 |
+
|
247 |
+
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
|
248 |
+
|
249 |
+
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
|
250 |
+
|
251 |
+
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
|
252 |
+
|
253 |
+
* Patreon: https://patreon.com/TheBlokeAI
|
254 |
+
* Ko-Fi: https://ko-fi.com/TheBlokeAI
|
255 |
+
|
256 |
+
**Special thanks to**: Luke from CarbonQuill, Aemon Algiz.
|
257 |
+
|
258 |
+
**Patreon special mentions**: Space Cruiser, Nikolai Manek, Sam, Chris McCloskey, Rishabh Srivastava, Kalila, Spiking Neurons AB, Khalefa Al-Ahmad, WelcomeToTheClub, Chadd, Lone Striker, Viktor Bowallius, Edmond Seymore, Ai Maven, Chris Smitley, Dave, Alexandros Triantafyllidis, Luke @flexchar, Elle, ya boyyy, Talal Aujan, Alex , Jonathan Leane, Deep Realms, Randy H, subjectnull, Preetika Verma, Joseph William Delisle, Michael Levine, chris gileta, K, Oscar Rangel, LangChain4j, Trenton Dambrowitz, Eugene Pentland, Johann-Peter Hartmann, Femi Adebogun, Illia Dulskyi, senxiiz, Daniel P. Andersen, Sean Connelly, Artur Olbinski, RoA, Mano Prime, Derek Yates, Raven Klaugh, David Flickinger, Willem Michiel, Pieter, Willian Hasse, vamX, Luke Pendergrass, webtim, Ghost , Rainer Wilmers, Nathan LeClaire, Will Dee, Cory Kujawski, John Detwiler, Fred von Graf, biorpg, Iucharbius , Imad Khwaja, Pierre Kircher, terasurfer , Asp the Wyvern, John Villwock, theTransient, zynix , Gabriel Tamborski, Fen Risland, Gabriel Puliatti, Matthew Berman, Pyrater, SuperWojo, Stephen Murray, Karl Bernard, Ajan Kanaga, Greatston Gnanesh, Junyu Yang.
|
259 |
+
|
260 |
+
Thank you to all my generous patrons and donaters!
|
261 |
+
|
262 |
+
<!-- footer end -->
|
263 |
+
|
264 |
+
# Original model card: Meta's Llama 2 13B
|
265 |
+
|
266 |
# **Llama 2**
|
267 |
+
Llama 2 is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 70 billion parameters. This is the repository for the 13B pretrained model, converted for the Hugging Face Transformers format. Links to other models can be found in the index at the bottom.
|
268 |
|
269 |
## Model Details
|
270 |
*Note: Use of this model is governed by the Meta license. In order to download the model weights and tokenizer, please visit the [website](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and accept our License before requesting access here.*
|