Upload README.md
Browse files
README.md
CHANGED
@@ -1,13 +1,18 @@
|
|
1 |
---
|
|
|
2 |
inference: false
|
3 |
language:
|
4 |
- en
|
5 |
-
license:
|
6 |
model_creator: nRuaif
|
7 |
-
model_link: https://huggingface.co/nRuaif/fiction.live-Kimiko-V2-70B
|
8 |
model_name: Fiction Live Kimiko V2 70B
|
9 |
model_type: llama
|
10 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
11 |
quantized_by: TheBloke
|
12 |
---
|
13 |
|
@@ -43,9 +48,9 @@ Multiple GPTQ parameter permutations are provided; see Provided Files below for
|
|
43 |
<!-- repositories-available start -->
|
44 |
## Repositories available
|
45 |
|
|
|
46 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-GPTQ)
|
47 |
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-GGUF)
|
48 |
-
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-GGML)
|
49 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-fp16)
|
50 |
* [nRuaif's original LoRA adapter, which can be merged on to the base model.](https://huggingface.co/nRuaif/fiction.live-Kimiko-V2-70B)
|
51 |
<!-- repositories-available end -->
|
@@ -59,7 +64,15 @@ A chat between a curious user and an artificial intelligence assistant. The assi
|
|
59 |
```
|
60 |
|
61 |
<!-- prompt-template end -->
|
|
|
|
|
|
|
|
|
62 |
|
|
|
|
|
|
|
|
|
63 |
<!-- README_GPTQ.md-provided-files start -->
|
64 |
## Provided files and GPTQ parameters
|
65 |
|
@@ -67,7 +80,7 @@ Multiple quantisation parameters are provided, to allow you to choose the best o
|
|
67 |
|
68 |
Each separate quant is in a different branch. See below for instructions on fetching from different branches.
|
69 |
|
70 |
-
All GPTQ files are made with AutoGPTQ.
|
71 |
|
72 |
<details>
|
73 |
<summary>Explanation of GPTQ parameters</summary>
|
@@ -84,22 +97,22 @@ All GPTQ files are made with AutoGPTQ.
|
|
84 |
|
85 |
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|
86 |
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
|
87 |
-
| [main](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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 |
|
88 |
-
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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.
|
89 |
-
| [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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.
|
90 |
-
| [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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.
|
91 |
| [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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. |
|
92 |
-
| [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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
|
93 |
|
94 |
<!-- README_GPTQ.md-provided-files end -->
|
95 |
|
96 |
<!-- README_GPTQ.md-download-from-branches start -->
|
97 |
## How to download from branches
|
98 |
|
99 |
-
- In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/fiction.live-Kimiko-V2-70B-GPTQ:
|
100 |
- With Git, you can clone a branch with:
|
101 |
```
|
102 |
-
git clone --single-branch --branch
|
103 |
```
|
104 |
- In Python Transformers code, the branch is the `revision` parameter; see below.
|
105 |
<!-- README_GPTQ.md-download-from-branches end -->
|
@@ -112,7 +125,7 @@ It is strongly recommended to use the text-generation-webui one-click-installers
|
|
112 |
|
113 |
1. Click the **Model tab**.
|
114 |
2. Under **Download custom model or LoRA**, enter `TheBloke/fiction.live-Kimiko-V2-70B-GPTQ`.
|
115 |
-
- To download from a specific branch, enter for example `TheBloke/fiction.live-Kimiko-V2-70B-GPTQ:
|
116 |
- see Provided Files above for the list of branches for each option.
|
117 |
3. Click **Download**.
|
118 |
4. The model will start downloading. Once it's finished it will say "Done".
|
@@ -120,7 +133,7 @@ It is strongly recommended to use the text-generation-webui one-click-installers
|
|
120 |
6. In the **Model** dropdown, choose the model you just downloaded: `fiction.live-Kimiko-V2-70B-GPTQ`
|
121 |
7. The model will automatically load, and is now ready for use!
|
122 |
8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
|
123 |
-
* Note that you do not need to set GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
|
124 |
9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
|
125 |
<!-- README_GPTQ.md-text-generation-webui end -->
|
126 |
|
@@ -160,10 +173,10 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
|
160 |
|
161 |
model_name_or_path = "TheBloke/fiction.live-Kimiko-V2-70B-GPTQ"
|
162 |
# To use a different branch, change revision
|
163 |
-
# For example: revision="
|
164 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|
165 |
-
torch_dtype=torch.float16,
|
166 |
device_map="auto",
|
|
|
167 |
revision="main")
|
168 |
|
169 |
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
|
@@ -176,7 +189,7 @@ prompt_template=f'''A chat between a curious user and an artificial intelligence
|
|
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 +200,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 +229,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 +246,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/nRuaif/fiction.live-Kimiko-V2-70B
|
3 |
inference: false
|
4 |
language:
|
5 |
- en
|
6 |
+
license: creativeml-openrail-m
|
7 |
model_creator: nRuaif
|
|
|
8 |
model_name: Fiction Live Kimiko V2 70B
|
9 |
model_type: llama
|
10 |
pipeline_tag: text-generation
|
11 |
+
prompt_template: 'A chat between a curious user and an artificial intelligence assistant.
|
12 |
+
The assistant gives helpful, detailed, and polite answers to the user''s questions.
|
13 |
+
USER: {prompt} ASSISTANT:
|
14 |
+
|
15 |
+
'
|
16 |
quantized_by: TheBloke
|
17 |
---
|
18 |
|
|
|
48 |
<!-- repositories-available start -->
|
49 |
## Repositories available
|
50 |
|
51 |
+
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-AWQ)
|
52 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-GPTQ)
|
53 |
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-GGUF)
|
|
|
54 |
* [Unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-fp16)
|
55 |
* [nRuaif's original LoRA adapter, which can be merged on to the base model.](https://huggingface.co/nRuaif/fiction.live-Kimiko-V2-70B)
|
56 |
<!-- repositories-available end -->
|
|
|
64 |
```
|
65 |
|
66 |
<!-- prompt-template end -->
|
67 |
+
<!-- licensing start -->
|
68 |
+
## Licensing
|
69 |
+
|
70 |
+
The creator of the source model has listed its license as `creativeml-openrail-m`, and this quantization has therefore used that same license.
|
71 |
|
72 |
+
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.
|
73 |
+
|
74 |
+
In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [nRuaif's Fiction Live Kimiko V2 70B](https://huggingface.co/nRuaif/fiction.live-Kimiko-V2-70B).
|
75 |
+
<!-- licensing end -->
|
76 |
<!-- README_GPTQ.md-provided-files start -->
|
77 |
## Provided files and GPTQ parameters
|
78 |
|
|
|
80 |
|
81 |
Each separate quant is in a different branch. See below for instructions on fetching from different branches.
|
82 |
|
83 |
+
All recent GPTQ files are made with AutoGPTQ, and all files in non-main branches are made with AutoGPTQ. Files in the `main` branch which were uploaded before August 2023 were made with GPTQ-for-LLaMa.
|
84 |
|
85 |
<details>
|
86 |
<summary>Explanation of GPTQ parameters</summary>
|
|
|
97 |
|
98 |
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|
99 |
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
|
100 |
+
| [main](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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. |
|
101 |
+
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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. |
|
102 |
+
| [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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. |
|
103 |
+
| [gptq-4bit-128g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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. |
|
104 |
| [gptq-3bit--1g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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. |
|
105 |
+
| [gptq-3bit-128g-actorder_True](https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-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. |
|
106 |
|
107 |
<!-- README_GPTQ.md-provided-files end -->
|
108 |
|
109 |
<!-- README_GPTQ.md-download-from-branches start -->
|
110 |
## How to download from branches
|
111 |
|
112 |
+
- In text-generation-webui, you can add `:branch` to the end of the download name, eg `TheBloke/fiction.live-Kimiko-V2-70B-GPTQ:main`
|
113 |
- With Git, you can clone a branch with:
|
114 |
```
|
115 |
+
git clone --single-branch --branch main https://huggingface.co/TheBloke/fiction.live-Kimiko-V2-70B-GPTQ
|
116 |
```
|
117 |
- In Python Transformers code, the branch is the `revision` parameter; see below.
|
118 |
<!-- README_GPTQ.md-download-from-branches end -->
|
|
|
125 |
|
126 |
1. Click the **Model tab**.
|
127 |
2. Under **Download custom model or LoRA**, enter `TheBloke/fiction.live-Kimiko-V2-70B-GPTQ`.
|
128 |
+
- To download from a specific branch, enter for example `TheBloke/fiction.live-Kimiko-V2-70B-GPTQ:main`
|
129 |
- see Provided Files above for the list of branches for each option.
|
130 |
3. Click **Download**.
|
131 |
4. The model will start downloading. Once it's finished it will say "Done".
|
|
|
133 |
6. In the **Model** dropdown, choose the model you just downloaded: `fiction.live-Kimiko-V2-70B-GPTQ`
|
134 |
7. The model will automatically load, and is now ready for use!
|
135 |
8. If you want any custom settings, set them and then click **Save settings for this model** followed by **Reload the Model** in the top right.
|
136 |
+
* Note that you do not need to and should not set manual GPTQ parameters any more. These are set automatically from the file `quantize_config.json`.
|
137 |
9. Once you're ready, click the **Text Generation tab** and enter a prompt to get started!
|
138 |
<!-- README_GPTQ.md-text-generation-webui end -->
|
139 |
|
|
|
173 |
|
174 |
model_name_or_path = "TheBloke/fiction.live-Kimiko-V2-70B-GPTQ"
|
175 |
# To use a different branch, change revision
|
176 |
+
# For example: revision="main"
|
177 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|
|
|
178 |
device_map="auto",
|
179 |
+
trust_remote_code=False,
|
180 |
revision="main")
|
181 |
|
182 |
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
|
|
|
189 |
print("\n\n*** Generate:")
|
190 |
|
191 |
input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
|
192 |
+
output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
|
193 |
print(tokenizer.decode(output[0]))
|
194 |
|
195 |
# Inference can also be done using transformers' pipeline
|
|
|
200 |
model=model,
|
201 |
tokenizer=tokenizer,
|
202 |
max_new_tokens=512,
|
203 |
+
do_sample=True,
|
204 |
temperature=0.7,
|
205 |
top_p=0.95,
|
206 |
+
top_k=40,
|
207 |
+
repetition_penalty=1.1
|
208 |
)
|
209 |
|
210 |
print(pipe(prompt_template)[0]['generated_text'])
|
|
|
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 |
+
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
|
237 |
+
|
238 |
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.
|
239 |
|
240 |
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.
|
|
|
246 |
|
247 |
**Special thanks to**: Aemon Algiz.
|
248 |
|
249 |
+
**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
|
250 |
|
251 |
|
252 |
Thank you to all my generous patrons and donaters!
|