TheBloke commited on
Commit
7386fdd
1 Parent(s): ec8df70

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -17
README.md CHANGED
@@ -1,4 +1,5 @@
1
  ---
 
2
  datasets:
3
  - psmathur/orca_mini_v1_dataset
4
  - ehartford/dolphin
@@ -6,12 +7,24 @@ 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_70b
12
  model_name: Orca Mini v3 70B
13
  model_type: llama
14
  pipeline_tag: text-generation
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  quantized_by: TheBloke
16
  ---
17
 
@@ -47,9 +60,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_70B-GPTQ)
51
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/orca_mini_v3_70B-GGUF)
52
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/orca_mini_v3_70B-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_70b)
54
  <!-- repositories-available end -->
55
 
@@ -68,7 +81,15 @@ Multiple GPTQ parameter permutations are provided; see Provided Files below for
68
  ```
69
 
70
  <!-- prompt-template end -->
 
 
 
 
71
 
 
 
 
 
72
  <!-- README_GPTQ.md-provided-files start -->
73
  ## Provided files and GPTQ parameters
74
 
@@ -93,22 +114,22 @@ All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches
93
 
94
  | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
95
  | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
96
- | [main](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 35.33 GB | Yes | Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options. |
97
- | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 40.66 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed. |
98
- | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 37.99 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. |
99
- | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 36.65 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. |
100
  | [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-3bit--1g-actorder_True) | 3 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 26.77 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
101
- | [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 28.03 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False but poor AutoGPTQ CUDA speed. |
102
 
103
  <!-- README_GPTQ.md-provided-files end -->
104
 
105
  <!-- README_GPTQ.md-download-from-branches start -->
106
  ## How to download from branches
107
 
108
- - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/orca_mini_v3_70B-GPTQ:gptq-4bit-32g-actorder_True`
109
  - With Git, you can clone a branch with:
110
  ```
111
- git clone --single-branch --branch gptq-4bit-32g-actorder_True https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ
112
  ```
113
  - In Python Transformers code, the branch is the `revision` parameter; see below.
114
  <!-- README_GPTQ.md-download-from-branches end -->
@@ -121,7 +142,7 @@ It is strongly recommended to use the text-generation-webui one-click-installers
121
 
122
  1. Click the **Model tab**.
123
  2. Under **Download custom model or LoRA**, enter `TheBloke/orca_mini_v3_70B-GPTQ`.
124
- - To download from a specific branch, enter for example `TheBloke/orca_mini_v3_70B-GPTQ:gptq-4bit-32g-actorder_True`
125
  - see Provided Files above for the list of branches for each option.
126
  3. Click **Download**.
127
  4. The model will start downloading. Once it's finished it will say "Done".
@@ -169,10 +190,10 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
169
 
170
  model_name_or_path = "TheBloke/orca_mini_v3_70B-GPTQ"
171
  # To use a different branch, change revision
172
- # For example: revision="gptq-4bit-32g-actorder_True"
173
  model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
174
- torch_dtype=torch.float16,
175
  device_map="auto",
 
176
  revision="main")
177
 
178
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
@@ -191,7 +212,7 @@ prompt_template=f'''### System:
191
  print("\n\n*** Generate:")
192
 
193
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
194
- output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)
195
  print(tokenizer.decode(output[0]))
196
 
197
  # Inference can also be done using transformers' pipeline
@@ -202,9 +223,11 @@ pipe = pipeline(
202
  model=model,
203
  tokenizer=tokenizer,
204
  max_new_tokens=512,
 
205
  temperature=0.7,
206
  top_p=0.95,
207
- repetition_penalty=1.15
 
208
  )
209
 
210
  print(pipe(prompt_template)[0]['generated_text'])
@@ -229,10 +252,12 @@ For further support, and discussions on these models and AI in general, join us
229
 
230
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
231
 
232
- ## Thanks, and how to contribute.
233
 
234
  Thanks to the [chirper.ai](https://chirper.ai) team!
235
 
 
 
236
  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.
237
 
238
  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.
@@ -244,7 +269,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
244
 
245
  **Special thanks to**: Aemon Algiz.
246
 
247
- **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
248
 
249
 
250
  Thank you to all my generous patrons and donaters!
 
1
  ---
2
+ base_model: https://huggingface.co/psmathur/orca_mini_v3_70b
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 70B
13
  model_type: llama
14
  pipeline_tag: text-generation
15
+ prompt_template: '### System:
16
+
17
+ {system_message}
18
+
19
+
20
+ ### User:
21
+
22
+ {prompt}
23
+
24
+
25
+ ### Assistant:
26
+
27
+ '
28
  quantized_by: TheBloke
29
  ---
30
 
 
60
  <!-- repositories-available start -->
61
  ## Repositories available
62
 
63
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/orca_mini_v3_70B-AWQ)
64
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ)
65
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/orca_mini_v3_70B-GGUF)
 
66
  * [Pankaj Mathur's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/psmathur/orca_mini_v3_70b)
67
  <!-- repositories-available end -->
68
 
 
81
  ```
82
 
83
  <!-- prompt-template end -->
84
+ <!-- licensing start -->
85
+ ## Licensing
86
+
87
+ The creator of the source model has listed its license as `other`, and this quantization has therefore used that same license.
88
 
89
+ 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.
90
+
91
+ 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 70B](https://huggingface.co/psmathur/orca_mini_v3_70b).
92
+ <!-- licensing end -->
93
  <!-- README_GPTQ.md-provided-files start -->
94
  ## Provided files and GPTQ parameters
95
 
 
114
 
115
  | Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
116
  | ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
117
+ | [main](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/main) | 4 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 35.33 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
118
+ | [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 40.66 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
119
+ | [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 37.99 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
120
+ | [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-4bit-128g-actorder_True) | 4 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 36.65 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
121
  | [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-3bit--1g-actorder_True) | 3 | None | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 26.77 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
122
+ | [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ/tree/gptq-3bit-128g-actorder_True) | 3 | 128 | Yes | 0.1 | [wikitext](https://huggingface.co/datasets/wikitext/viewer/wikitext-2-v1/test) | 4096 | 28.03 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
123
 
124
  <!-- README_GPTQ.md-provided-files end -->
125
 
126
  <!-- README_GPTQ.md-download-from-branches start -->
127
  ## How to download from branches
128
 
129
+ - In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/orca_mini_v3_70B-GPTQ:main`
130
  - With Git, you can clone a branch with:
131
  ```
132
+ git clone --single-branch --branch main https://huggingface.co/TheBloke/orca_mini_v3_70B-GPTQ
133
  ```
134
  - In Python Transformers code, the branch is the `revision` parameter; see below.
135
  <!-- README_GPTQ.md-download-from-branches end -->
 
142
 
143
  1. Click the **Model tab**.
144
  2. Under **Download custom model or LoRA**, enter `TheBloke/orca_mini_v3_70B-GPTQ`.
145
+ - To download from a specific branch, enter for example `TheBloke/orca_mini_v3_70B-GPTQ:main`
146
  - see Provided Files above for the list of branches for each option.
147
  3. Click **Download**.
148
  4. The model will start downloading. Once it's finished it will say "Done".
 
190
 
191
  model_name_or_path = "TheBloke/orca_mini_v3_70B-GPTQ"
192
  # To use a different branch, change revision
193
+ # For example: revision="main"
194
  model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
 
195
  device_map="auto",
196
+ trust_remote_code=False,
197
  revision="main")
198
 
199
  tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
 
212
  print("\n\n*** Generate:")
213
 
214
  input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
215
+ output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
216
  print(tokenizer.decode(output[0]))
217
 
218
  # Inference can also be done using transformers' pipeline
 
223
  model=model,
224
  tokenizer=tokenizer,
225
  max_new_tokens=512,
226
+ do_sample=True,
227
  temperature=0.7,
228
  top_p=0.95,
229
+ top_k=40,
230
+ repetition_penalty=1.1
231
  )
232
 
233
  print(pipe(prompt_template)[0]['generated_text'])
 
252
 
253
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
254
 
255
+ ## Thanks, and how to contribute
256
 
257
  Thanks to the [chirper.ai](https://chirper.ai) team!
258
 
259
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
260
+
261
  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.
262
 
263
  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.
 
269
 
270
  **Special thanks to**: Aemon Algiz.
271
 
272
+ **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
273
 
274
 
275
  Thank you to all my generous patrons and donaters!