Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,52 @@
|
|
| 1 |
---
|
| 2 |
license: gpl-3.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: gpl-3.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# WizardLM 13B GGML
|
| 6 |
+
|
| 7 |
+
This is https://huggingface.co/winddude/wizardLM-LlaMA-LoRA-13 converted into GGML format, supported by [llama.cpp](https://github.com/ggerganov/llama.cpp).
|
| 8 |
+
|
| 9 |
+
If used in an instruct mode this model is very picky about the newlines. For some reason it insists on having the following format:
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
### Instruction:
|
| 13 |
+
|
| 14 |
+
(instruction text here)
|
| 15 |
+
|
| 16 |
+
### Response:
|
| 17 |
+
|
| 18 |
+
(leave this for the model to fill)
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
Note that generally the alpacas only have one newline before '### Instruction:' / '### Response' and the text. I might have somehow messed up conversion :(
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
# Instructions for running this model in https://github.com/oobabooga/text-generation-webui:
|
| 25 |
+
|
| 26 |
+
1. Make sure the pytorch and llama.cpp are recent enough:
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
pip install -U --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
|
| 30 |
+
pip install -U llamacpp
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
2. Move the model to the right directory:
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
mkdir models/wizardlm-13b/
|
| 37 |
+
mv ~/Downloads/ggml-model-q5_1.bin models/wizardlm-13b/
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
2. Run the textgen, e.g. with:
|
| 41 |
+
|
| 42 |
+
```
|
| 43 |
+
python server.py --cpu --threads 8 --chat --model=wizardlm-13b --model_type=llama --verbose
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
3. If using it in the instruction mode, you should also fix the prompt. Select the Alpaca template as a base, then go to 'Character' tab and modify Turn template with the following string: `<|user|>\n\n<|user-message|>\n\n<|bot|>\n\n<|bot-message|>\n\n`.
|
| 47 |
+
|
| 48 |
+
4. Sometimes the model just won't shut up, so go to Parameters tab and add the following 'Custom stopping string': `"### Instruction:"`
|
| 49 |
+
|
| 50 |
+
5. The 3) and 4) could probably be fixed by modifying settings.json
|
| 51 |
+
|
| 52 |
+
Please share other tips and tricks in https://huggingface.co/execveat/wizardLM-13b-ggml-q5_1/discussions
|