Upload README.md
Browse files
README.md
CHANGED
@@ -1,10 +1,17 @@
|
|
1 |
---
|
|
|
2 |
inference: false
|
3 |
license: llama2
|
4 |
model_creator: Migel Tissera
|
5 |
-
model_link: https://huggingface.co/migtissera/Synthia-7b
|
6 |
model_name: Synthia 7b
|
7 |
model_type: llama
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
quantized_by: TheBloke
|
9 |
---
|
10 |
|
@@ -40,9 +47,9 @@ Multiple GPTQ parameter permutations are provided; see Provided Files below for
|
|
40 |
<!-- repositories-available start -->
|
41 |
## Repositories available
|
42 |
|
|
|
43 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Synthia-7B-GPTQ)
|
44 |
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Synthia-7B-GGUF)
|
45 |
-
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/Synthia-7B-GGML)
|
46 |
* [Migel Tissera's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/migtissera/Synthia-7b)
|
47 |
<!-- repositories-available end -->
|
48 |
|
@@ -58,6 +65,7 @@ ASSISTANT:
|
|
58 |
|
59 |
<!-- prompt-template end -->
|
60 |
|
|
|
61 |
<!-- README_GPTQ.md-provided-files start -->
|
62 |
## Provided files and GPTQ parameters
|
63 |
|
@@ -82,22 +90,22 @@ All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches
|
|
82 |
|
83 |
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|
84 |
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
|
85 |
-
| [main](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/main) | 4 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes |
|
86 |
-
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 8.00 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage.
|
87 |
-
| [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.51 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy.
|
88 |
-
| [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy.
|
89 |
-
| [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.36 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements
|
90 |
-
| [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy.
|
91 |
|
92 |
<!-- README_GPTQ.md-provided-files end -->
|
93 |
|
94 |
<!-- README_GPTQ.md-download-from-branches start -->
|
95 |
## How to download from branches
|
96 |
|
97 |
-
- In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/Synthia-7B-GPTQ:
|
98 |
- With Git, you can clone a branch with:
|
99 |
```
|
100 |
-
git clone --single-branch --branch
|
101 |
```
|
102 |
- In Python Transformers code, the branch is the `revision` parameter; see below.
|
103 |
<!-- README_GPTQ.md-download-from-branches end -->
|
@@ -110,7 +118,7 @@ It is strongly recommended to use the text-generation-webui one-click-installers
|
|
110 |
|
111 |
1. Click the **Model tab**.
|
112 |
2. Under **Download custom model or LoRA**, enter `TheBloke/Synthia-7B-GPTQ`.
|
113 |
-
- To download from a specific branch, enter for example `TheBloke/Synthia-7B-GPTQ:
|
114 |
- see Provided Files above for the list of branches for each option.
|
115 |
3. Click **Download**.
|
116 |
4. The model will start downloading. Once it's finished it will say "Done".
|
@@ -158,10 +166,10 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
|
158 |
|
159 |
model_name_or_path = "TheBloke/Synthia-7B-GPTQ"
|
160 |
# To use a different branch, change revision
|
161 |
-
# For example: revision="
|
162 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|
163 |
-
torch_dtype=torch.float16,
|
164 |
device_map="auto",
|
|
|
165 |
revision="main")
|
166 |
|
167 |
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
|
@@ -176,7 +184,7 @@ ASSISTANT:
|
|
176 |
print("\n\n*** Generate:")
|
177 |
|
178 |
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
179 |
-
output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
|
180 |
print(tokenizer.decode(output[0]))
|
181 |
|
182 |
# Inference can also be done using transformers' pipeline
|
@@ -187,9 +195,11 @@ pipe = pipeline(
|
|
187 |
model=model,
|
188 |
tokenizer=tokenizer,
|
189 |
max_new_tokens=512,
|
|
|
190 |
temperature=0.7,
|
191 |
top_p=0.95,
|
192 |
-
|
|
|
193 |
)
|
194 |
|
195 |
print(pipe(prompt_template)[0]['generated_text'])
|
@@ -214,10 +224,12 @@ For further support, and discussions on these models and AI in general, join us
|
|
214 |
|
215 |
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
216 |
|
217 |
-
## Thanks, and how to contribute
|
218 |
|
219 |
Thanks to the [chirper.ai](https://chirper.ai) team!
|
220 |
|
|
|
|
|
221 |
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.
|
222 |
|
223 |
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.
|
@@ -229,7 +241,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
229 |
|
230 |
**Special thanks to**: Aemon Algiz.
|
231 |
|
232 |
-
**Patreon special mentions**:
|
233 |
|
234 |
|
235 |
Thank you to all my generous patrons and donaters!
|
|
|
1 |
---
|
2 |
+
base_model: https://huggingface.co/migtissera/Synthia-7b
|
3 |
inference: false
|
4 |
license: llama2
|
5 |
model_creator: Migel Tissera
|
|
|
6 |
model_name: Synthia 7b
|
7 |
model_type: llama
|
8 |
+
prompt_template: 'SYSTEM: {system_message}
|
9 |
+
|
10 |
+
USER: {prompt}
|
11 |
+
|
12 |
+
ASSISTANT:
|
13 |
+
|
14 |
+
'
|
15 |
quantized_by: TheBloke
|
16 |
---
|
17 |
|
|
|
47 |
<!-- repositories-available start -->
|
48 |
## Repositories available
|
49 |
|
50 |
+
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Synthia-7B-AWQ)
|
51 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Synthia-7B-GPTQ)
|
52 |
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Synthia-7B-GGUF)
|
|
|
53 |
* [Migel Tissera's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/migtissera/Synthia-7b)
|
54 |
<!-- repositories-available end -->
|
55 |
|
|
|
65 |
|
66 |
<!-- prompt-template end -->
|
67 |
|
68 |
+
|
69 |
<!-- README_GPTQ.md-provided-files start -->
|
70 |
## Provided files and GPTQ parameters
|
71 |
|
|
|
90 |
|
91 |
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|
92 |
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
|
93 |
+
| [main](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/main) | 4 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | 4-bit, without Act Order and group size 128g. |
|
94 |
+
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 8.00 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
|
95 |
+
| [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.51 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
|
96 |
+
| [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.26 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
|
97 |
+
| [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.36 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
|
98 |
+
| [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/Synthia-7B-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 13.65 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
|
99 |
|
100 |
<!-- README_GPTQ.md-provided-files end -->
|
101 |
|
102 |
<!-- README_GPTQ.md-download-from-branches start -->
|
103 |
## How to download from branches
|
104 |
|
105 |
+
- In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/Synthia-7B-GPTQ:main`
|
106 |
- With Git, you can clone a branch with:
|
107 |
```
|
108 |
+
git clone --single-branch --branch main https://huggingface.co/TheBloke/Synthia-7B-GPTQ
|
109 |
```
|
110 |
- In Python Transformers code, the branch is the `revision` parameter; see below.
|
111 |
<!-- README_GPTQ.md-download-from-branches end -->
|
|
|
118 |
|
119 |
1. Click the **Model tab**.
|
120 |
2. Under **Download custom model or LoRA**, enter `TheBloke/Synthia-7B-GPTQ`.
|
121 |
+
- To download from a specific branch, enter for example `TheBloke/Synthia-7B-GPTQ:main`
|
122 |
- see Provided Files above for the list of branches for each option.
|
123 |
3. Click **Download**.
|
124 |
4. The model will start downloading. Once it's finished it will say "Done".
|
|
|
166 |
|
167 |
model_name_or_path = "TheBloke/Synthia-7B-GPTQ"
|
168 |
# To use a different branch, change revision
|
169 |
+
# For example: revision="main"
|
170 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|
|
|
171 |
device_map="auto",
|
172 |
+
trust_remote_code=False,
|
173 |
revision="main")
|
174 |
|
175 |
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
|
|
|
184 |
print("\n\n*** Generate:")
|
185 |
|
186 |
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
187 |
+
output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
|
188 |
print(tokenizer.decode(output[0]))
|
189 |
|
190 |
# Inference can also be done using transformers' pipeline
|
|
|
195 |
model=model,
|
196 |
tokenizer=tokenizer,
|
197 |
max_new_tokens=512,
|
198 |
+
do_sample=True,
|
199 |
temperature=0.7,
|
200 |
top_p=0.95,
|
201 |
+
top_k=40,
|
202 |
+
repetition_penalty=1.1
|
203 |
)
|
204 |
|
205 |
print(pipe(prompt_template)[0]['generated_text'])
|
|
|
224 |
|
225 |
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
226 |
|
227 |
+
## Thanks, and how to contribute
|
228 |
|
229 |
Thanks to the [chirper.ai](https://chirper.ai) team!
|
230 |
|
231 |
+
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
|
232 |
+
|
233 |
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.
|
234 |
|
235 |
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.
|
|
|
241 |
|
242 |
**Special thanks to**: Aemon Algiz.
|
243 |
|
244 |
+
**Patreon special mentions**: Alicia Loh, Stephen Murray, K, Ajan Kanaga, RoA, Magnesian, Deo Leter, Olakabola, Eugene Pentland, zynix, Deep Realms, Raymond Fosdick, Elijah Stavena, Iucharbius, Erik Bjäreholt, Luis Javier Navarrete Lozano, Nicholas, theTransient, John Detwiler, alfie_i, knownsqashed, Mano Prime, Willem Michiel, Enrico Ros, LangChain4j, OG, Michael Dempsey, Pierre Kircher, Pedro Madruga, James Bentley, Thomas Belote, Luke @flexchar, Leonard Tan, Johann-Peter Hartmann, Illia Dulskyi, Fen Risland, Chadd, S_X, Jeff Scroggin, Ken Nordquist, Sean Connelly, Artur Olbinski, Swaroop Kallakuri, Jack West, Ai Maven, David Ziegler, Russ Johnson, transmissions 11, John Villwock, Alps Aficionado, Clay Pascal, Viktor Bowallius, Subspace Studios, Rainer Wilmers, Trenton Dambrowitz, vamX, Michael Levine, 준교 김, Brandon Frisco, Kalila, Trailburnt, Randy H, Talal Aujan, Nathan Dryer, Vadim, 阿明, ReadyPlayerEmma, Tiffany J. Kim, George Stoitzev, Spencer Kim, Jerry Meng, Gabriel Tamborski, Cory Kujawski, Jeffrey Morgan, Spiking Neurons AB, Edmond Seymore, Alexandros Triantafyllidis, Lone Striker, Cap'n Zoog, Nikolai Manek, danny, ya boyyy, Derek Yates, usrbinkat, Mandus, TL, Nathan LeClaire, subjectnull, Imad Khwaja, webtim, Raven Klaugh, Asp the Wyvern, Gabriel Puliatti, Caitlyn Gatomon, Joseph William Delisle, Jonathan Leane, Luke Pendergrass, SuperWojo, Sebastain Graf, Will Dee, Fred von Graf, Andrey, Dan Guido, Daniel P. Andersen, Nitin Borwankar, Elle, Vitor Caleffi, biorpg, jjj, NimbleBox.ai, Pieter, Matthew Berman, terasurfer, Michael Davis, Alex, Stanislav Ovsiannikov
|
245 |
|
246 |
|
247 |
Thank you to all my generous patrons and donaters!
|