Commit
·
6567c63
1
Parent(s):
4209d53
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
inference: false
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- llama
|
| 7 |
+
- text-generation-inference
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# TogetherAI's Llama-2-7B-32K-Instruct GGML
|
| 11 |
+
|
| 12 |
+
These files are GGML format model files for [lmsys's Longchat-7B-v1.5-32k](https://huggingface.co/togethercomputer/Llama-2-7B-32K-Instruct).
|
| 13 |
+
|
| 14 |
+
GGML files are for CPU + GPU inference using [llama.cpp](https://github.com/ggerganov/llama.cpp) and libraries and UIs which support this format, such as:
|
| 15 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui)
|
| 16 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp)
|
| 17 |
+
* [ParisNeo/GPT4All-UI](https://github.com/ParisNeo/gpt4all-ui)
|
| 18 |
+
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python)
|
| 19 |
+
* [ctransformers](https://github.com/marella/ctransformers)
|
| 20 |
+
|
| 21 |
+
## How to run in `llama.cpp`
|
| 22 |
+
|
| 23 |
+
I use the following command line, adjust for your tastes and needs:
|
| 24 |
+
|
| 25 |
+
```
|
| 26 |
+
./main -t 2 -ngl 32 -m Llama-2-7B-32K-Instruct.ggmlv3.q4_0.bin --color --rope-freq-scale 0.25 --rope-freq-base 347620 -c 32768 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "[INST]\nWrite a poem about cats\n[\INST]\n\n"
|
| 27 |
+
```
|
| 28 |
+
Change `-t 2` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`.
|
| 29 |
+
|
| 30 |
+
Change `-ngl 26` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
| 31 |
+
|
| 32 |
+
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`, you can use `--interactive-first` to start in interactive mode.
|
| 33 |
+
|
| 34 |
+
## Compatibility
|
| 35 |
+
|
| 36 |
+
I have uploded bothe the original llama.cpp quant methods (`q4_0, q4_1, q5_0, q5_1, q8_0`) as well as the new k-quant methods (`q2_K, q3_K_S, q3_K_M, q3_K_L, q4_K_S, q4_K_M, q5_K_S, q6_K`).
|
| 37 |
+
|
| 38 |
+
Please refer to [llama.cpp](https://github.com/ggerganov/llama.cpp) and [TheBloke](https://huggingface.co/TheBloke)'s GGML models for further explanation.
|
| 39 |
+
|
| 40 |
+
## How to run in `text-generation-webui`
|
| 41 |
+
|
| 42 |
+
Further instructions here: [text-generation-webui/docs/llama.cpp-models.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp-models.md).
|
| 43 |
+
|
| 44 |
+
<!-- footer start -->
|
| 45 |
+
## Thanks
|
| 46 |
+
|
| 47 |
+
Thanks to [TheBloke](https://huggingface.co/TheBloke) for inspiration and providing almost all of the readme here!
|
| 48 |
+
|
| 49 |
+
Thanks to [TogetherAI](https://huggingface.co/togethercomputer) for providing checkpoints of the model.
|
| 50 |
+
|
| 51 |
+
Thanks to [Georgi Gerganov](https://github.com/ggerganov) and all of the awesome people in the AI community.
|