TheBloke commited on
Commit
7eb28d9
1 Parent(s): faf1b09

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -18
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  datasets:
3
  - psmathur/orca_mini_v1_dataset
4
  - ehartford/dolphin
@@ -6,12 +7,30 @@ inference: false
6
  language:
7
  - en
8
  library_name: transformers
9
- license: llama2
10
  model_creator: Pankaj Mathur
11
- model_link: https://huggingface.co/psmathur/orca_mini_v3_7b
12
  model_name: Orca Mini v3 7B
13
  model_type: llama
14
  pipeline_tag: text-generation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  quantized_by: TheBloke
16
  ---
17
 
@@ -47,9 +66,9 @@ Multiple GPTQ parameter permutations are provided; see Provided Files below for
47
  <!-- repositories-available start -->
48
  ## Repositories available
49
 
 
50
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ)
51
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/orca_mini_v3_7B-GGUF)
52
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/orca_mini_v3_7B-GGML)
53
  * [Pankaj Mathur's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/psmathur/orca_mini_v3_7b)
54
  <!-- repositories-available end -->
55
 
@@ -71,7 +90,15 @@ You are an AI assistant that follows instruction extremely well. Help as much as
71
  ```
72
 
73
  <!-- prompt-template end -->
 
 
74
 
 
 
 
 
 
 
75
  <!-- README_GPTQ.md-provided-files start -->
76
  ## Provided files and GPTQ parameters
77
 
@@ -96,13 +123,13 @@ All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches
96
 
97
  | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
98
  | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
99
- | [main](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ/tree/main) | 4 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 3.90 GB | Yes | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
100
- | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 4.28 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed. |
101
- | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 4.02 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
102
- | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 3.90 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed. |
103
- | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 7.01 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements and to improve AutoGPTQ speed. |
104
  | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.16 GB | No | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
105
- | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 7.16 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. Poor AutoGPTQ CUDA speed. |
106
  | [gptq-8bit-64g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ/tree/gptq-8bit-64g-actorder_True) | 8 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.31 GB | No | 8-bit, with group size 64g and Act Order for even higher inference quality. Poor AutoGPTQ CUDA speed. |
107
 
108
  <!-- README_GPTQ.md-provided-files end -->
@@ -110,10 +137,10 @@ All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches
110
  <!-- README_GPTQ.md-download-from-branches start -->
111
  ## How to download from branches
112
 
113
- - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/orca_mini_v3_7B-GPTQ:gptq-4bit-32g-actorder_True`
114
  - With Git, you can clone a branch with:
115
  ```
116
- git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ
117
  ```
118
  - In Python Transformers code, the branch is the `revision` parameter; see below.
119
  <!-- README_GPTQ.md-download-from-branches end -->
@@ -126,7 +153,7 @@ It is strongly recommended to use the text-generation-webui one-click-installers
126
 
127
  1. Click the **Model tab**.
128
  2. Under **Download custom model or LoRA**, enter `TheBloke/orca_mini_v3_7B-GPTQ`.
129
- - To download from a specific branch, enter for example `TheBloke/orca_mini_v3_7B-GPTQ:gptq-4bit-32g-actorder_True`
130
  - see Provided Files above for the list of branches for each option.
131
  3. Click **Download**.
132
  4. The model will start downloading. Once it's finished it will say "Done".
@@ -174,10 +201,10 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
174
 
175
  model_name_or_path = "TheBloke/orca_mini_v3_7B-GPTQ"
176
  # To use a different branch, change revision
177
- # For example: revision="gptq-4bit-32g-actorder_True"
178
  model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
179
- torch_dtype=torch.float16,
180
  device_map="auto",
 
181
  revision="main")
182
 
183
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
@@ -199,7 +226,7 @@ You are an AI assistant that follows instruction extremely well. Help as much as
199
  print("\n\n*** Generate:")
200
 
201
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
202
- output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
203
  print(tokenizer.decode(output[0]))
204
 
205
  # Inference can also be done using transformers' pipeline
@@ -210,9 +237,11 @@ pipe = pipeline(
210
  model=model,
211
  tokenizer=tokenizer,
212
  max_new_tokens=512,
 
213
  temperature=0.7,
214
  top_p=0.95,
215
- repetition_penalty=1.15
 
216
  )
217
 
218
  print(pipe(prompt_template)[0]['generated_text'])
@@ -237,10 +266,12 @@ For further support, and discussions on these models and AI in general, join us
237
 
238
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
239
 
240
- ## Thanks, and how to contribute.
241
 
242
  Thanks to the [chirper.ai](https://chirper.ai) team!
243
 
 
 
244
  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.
245
 
246
  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.
@@ -252,7 +283,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
252
 
253
  **Special thanks to**: Aemon Algiz.
254
 
255
- **Patreon special mentions**: Russ Johnson, J, alfie_i, Alex, NimbleBox.ai, Chadd, Mandus, Nikolai Manek, Ken Nordquist, ya boyyy, Illia Dulskyi, Viktor Bowallius, vamX, Iucharbius, zynix, Magnesian, Clay Pascal, Pierre Kircher, Enrico Ros, Tony Hughes, Elle, Andrey, knownsqashed, Deep Realms, Jerry Meng, Lone Striker, Derek Yates, Pyrater, Mesiah Bishop, James Bentley, Femi Adebogun, Brandon Frisco, SuperWojo, Alps Aficionado, Michael Dempsey, Vitor Caleffi, Will Dee, Edmond Seymore, usrbinkat, LangChain4j, Kacper Wikieł, Luke Pendergrass, John Detwiler, theTransient, Nathan LeClaire, Tiffany J. Kim, biorpg, Eugene Pentland, Stanislav Ovsiannikov, Fred von Graf, terasurfer, Kalila, Dan Guido, Nitin Borwankar, 阿明, Ai Maven, John Villwock, Gabriel Puliatti, Stephen Murray, Asp the Wyvern, danny, Chris Smitley, ReadyPlayerEmma, S_X, Daniel P. Andersen, Olakabola, Jeffrey Morgan, Imad Khwaja, Caitlyn Gatomon, webtim, Alicia Loh, Trenton Dambrowitz, Swaroop Kallakuri, Erik Bjäreholt, Leonard Tan, Spiking Neurons AB, Luke @flexchar, Ajan Kanaga, Thomas Belote, Deo Leter, RoA, Willem Michiel, transmissions 11, subjectnull, Matthew Berman, Joseph William Delisle, David Ziegler, Michael Davis, Johann-Peter Hartmann, Talal Aujan, senxiiz, Artur Olbinski, Rainer Wilmers, Spencer Kim, Fen Risland, Cap'n Zoog, Rishabh Srivastava, Michael Levine, Geoffrey Montalvo, Sean Connelly, Alexandros Triantafyllidis, Pieter, Gabriel Tamborski, Sam, Subspace Studios, Junyu Yang, Pedro Madruga, Vadim, Cory Kujawski, K, Raven Klaugh, Randy H, Mano Prime, Sebastain Graf, Space Cruiser
256
 
257
 
258
  Thank you to all my generous patrons and donaters!
 
1
  ---
2
+ base_model: https://huggingface.co/psmathur/orca_mini_v3_7b
3
  datasets:
4
  - psmathur/orca_mini_v1_dataset
5
  - ehartford/dolphin
 
7
  language:
8
  - en
9
  library_name: transformers
10
+ license: other
11
  model_creator: Pankaj Mathur
 
12
  model_name: Orca Mini v3 7B
13
  model_type: llama
14
  pipeline_tag: text-generation
15
+ prompt_template: '### System:
16
+
17
+ You are an AI assistant that follows instruction extremely well. Help as much as
18
+ you can.
19
+
20
+
21
+ ### User:
22
+
23
+ {prompt}
24
+
25
+
26
+ ### Input:
27
+
28
+ {input}
29
+
30
+
31
+ ### Response:
32
+
33
+ '
34
  quantized_by: TheBloke
35
  ---
36
 
 
66
  <!-- repositories-available start -->
67
  ## Repositories available
68
 
69
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/orca_mini_v3_7B-AWQ)
70
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ)
71
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/orca_mini_v3_7B-GGUF)
 
72
  * [Pankaj Mathur's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/psmathur/orca_mini_v3_7b)
73
  <!-- repositories-available end -->
74
 
 
90
  ```
91
 
92
  <!-- prompt-template end -->
93
+ <!-- licensing start -->
94
+ ## Licensing
95
 
96
+ The creator of the source model has listed its license as `other`, and this quantization has therefore used that same license.
97
+
98
+ As this model is based on Llama 2, it is also subject to the Meta Llama 2 license terms, and the license files for that are additionally included. It should therefore be considered as being claimed to be licensed under both licenses. I contacted Hugging Face for clarification on dual licensing but they do not yet have an official position. Should this change, or should Meta provide any feedback on this situation, I will update this section accordingly.
99
+
100
+ In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [Pankaj Mathur's Orca Mini v3 7B](https://huggingface.co/psmathur/orca_mini_v3_7b).
101
+ <!-- licensing end -->
102
  <!-- README_GPTQ.md-provided-files start -->
103
  ## Provided files and GPTQ parameters
104
 
 
123
 
124
  | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
125
  | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
126
+ | [main](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ/tree/main) | 4 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 3.90 GB | Yes | 4-bit, without Act Order and group size 128g. |
127
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 4.28 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
128
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 4.02 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
129
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 3.90 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
130
+ | [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 7.01 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
131
  | [gptq-8bit-128g-actorder_False](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ/tree/gptq-8bit-128g-actorder_False) | 8 | 128 | No | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.16 GB | No | 8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed. |
132
+ | [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_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 | 7.16 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
133
  | [gptq-8bit-64g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ/tree/gptq-8bit-64g-actorder_True) | 8 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 7.31 GB | No | 8-bit, with group size 64g and Act Order for even higher inference quality. Poor AutoGPTQ CUDA speed. |
134
 
135
  <!-- README_GPTQ.md-provided-files end -->
 
137
  <!-- README_GPTQ.md-download-from-branches start -->
138
  ## How to download from branches
139
 
140
+ - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/orca_mini_v3_7B-GPTQ:main`
141
  - With Git, you can clone a branch with:
142
  ```
143
+ git clone --single-branch --branch main https://huggingface.co/TheBloke/orca_mini_v3_7B-GPTQ
144
  ```
145
  - In Python Transformers code, the branch is the `revision` parameter; see below.
146
  <!-- README_GPTQ.md-download-from-branches end -->
 
153
 
154
  1. Click the **Model tab**.
155
  2. Under **Download custom model or LoRA**, enter `TheBloke/orca_mini_v3_7B-GPTQ`.
156
+ - To download from a specific branch, enter for example `TheBloke/orca_mini_v3_7B-GPTQ:main`
157
  - see Provided Files above for the list of branches for each option.
158
  3. Click **Download**.
159
  4. The model will start downloading. Once it's finished it will say "Done".
 
201
 
202
  model_name_or_path = "TheBloke/orca_mini_v3_7B-GPTQ"
203
  # To use a different branch, change revision
204
+ # For example: revision="main"
205
  model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
 
206
  device_map="auto",
207
+ trust_remote_code=False,
208
  revision="main")
209
 
210
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
 
226
  print("\n\n*** Generate:")
227
 
228
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
229
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
230
  print(tokenizer.decode(output[0]))
231
 
232
  # Inference can also be done using transformers' pipeline
 
237
  model=model,
238
  tokenizer=tokenizer,
239
  max_new_tokens=512,
240
+ do_sample=True,
241
  temperature=0.7,
242
  top_p=0.95,
243
+ top_k=40,
244
+ repetition_penalty=1.1
245
  )
246
 
247
  print(pipe(prompt_template)[0]['generated_text'])
 
266
 
267
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
268
 
269
+ ## Thanks, and how to contribute
270
 
271
  Thanks to the [chirper.ai](https://chirper.ai) team!
272
 
273
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
274
+
275
  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.
276
 
277
  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.
 
283
 
284
  **Special thanks to**: Aemon Algiz.
285
 
286
+ **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
287
 
288
 
289
  Thank you to all my generous patrons and donaters!