Upload README.md
Browse files
README.md
CHANGED
@@ -1,12 +1,25 @@
|
|
1 |
---
|
|
|
2 |
inference: false
|
3 |
language:
|
4 |
- en
|
5 |
-
license:
|
|
|
6 |
model_creator: NousResearch
|
7 |
-
model_link: https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b
|
8 |
model_name: Nous Hermes Llama 2 7B
|
9 |
model_type: llama
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
quantized_by: TheBloke
|
11 |
tags:
|
12 |
- llama-2
|
@@ -36,23 +49,25 @@ tags:
|
|
36 |
- Model creator: [NousResearch](https://huggingface.co/NousResearch)
|
37 |
- Original model: [Nous Hermes Llama 2 7B](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b)
|
38 |
|
|
|
39 |
## Description
|
40 |
|
41 |
This repo contains GGUF format model files for [NousResearch's Nous Hermes Llama 2 7B](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b).
|
42 |
|
|
|
43 |
<!-- README_GGUF.md-about-gguf start -->
|
44 |
### About GGUF
|
45 |
|
46 |
-
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
|
47 |
|
48 |
-
|
49 |
|
50 |
-
|
51 |
-
* [
|
52 |
-
* [
|
53 |
-
* [
|
54 |
-
* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI with GPU acceleration on both Windows (NVidia and AMD), and macOS.
|
55 |
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
|
|
|
56 |
* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
|
57 |
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
58 |
* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
@@ -61,9 +76,9 @@ Here are a list of clients and libraries that are known to support GGUF:
|
|
61 |
<!-- repositories-available start -->
|
62 |
## Repositories available
|
63 |
|
|
|
64 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GPTQ)
|
65 |
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GGUF)
|
66 |
-
* [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GGML)
|
67 |
* [NousResearch's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b)
|
68 |
<!-- repositories-available end -->
|
69 |
|
@@ -81,12 +96,21 @@ Below is an instruction that describes a task. Write a response that appropriate
|
|
81 |
```
|
82 |
|
83 |
<!-- prompt-template end -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
<!-- compatibility_gguf start -->
|
85 |
## Compatibility
|
86 |
|
87 |
-
These quantised
|
88 |
|
89 |
-
They are
|
90 |
|
91 |
## Explanation of quantisation methods
|
92 |
<details>
|
@@ -127,21 +151,75 @@ Refer to the Provided Files table below to see what files use which methods, and
|
|
127 |
|
128 |
<!-- README_GGUF.md-provided-files end -->
|
129 |
|
130 |
-
<!-- README_GGUF.md-how-to-
|
131 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
|
133 |
-
|
134 |
|
135 |
-
|
136 |
|
|
|
|
|
137 |
```
|
138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
```
|
140 |
-
Change `-t 10` to the number of physical CPU cores you have. For example if your system has 8 cores/16 threads, use `-t 8`. If offloading all layers to GPU, set `-t 1`.
|
141 |
|
142 |
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
143 |
|
144 |
-
Change `-c 4096` to the desired sequence length
|
145 |
|
146 |
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
147 |
|
@@ -198,10 +276,12 @@ For further support, and discussions on these models and AI in general, join us
|
|
198 |
|
199 |
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
200 |
|
201 |
-
## Thanks, and how to contribute
|
202 |
|
203 |
Thanks to the [chirper.ai](https://chirper.ai) team!
|
204 |
|
|
|
|
|
205 |
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.
|
206 |
|
207 |
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.
|
@@ -213,7 +293,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
|
|
213 |
|
214 |
**Special thanks to**: Aemon Algiz.
|
215 |
|
216 |
-
**Patreon special mentions**:
|
217 |
|
218 |
|
219 |
Thank you to all my generous patrons and donaters!
|
@@ -286,11 +366,34 @@ or
|
|
286 |
|
287 |
### Response:
|
288 |
<leave a newline blank for model to respond>
|
|
|
289 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
```
|
291 |
|
292 |
## Benchmark Results
|
293 |
-
|
|
|
|
|
294 |
|
295 |
## Resources for Applied Use Cases:
|
296 |
For an example of a back and forth chatbot using huggingface transformers and discord, check out: https://github.com/teknium1/alpaca-discord
|
|
|
1 |
---
|
2 |
+
base_model: https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b
|
3 |
inference: false
|
4 |
language:
|
5 |
- en
|
6 |
+
license:
|
7 |
+
- mit
|
8 |
model_creator: NousResearch
|
|
|
9 |
model_name: Nous Hermes Llama 2 7B
|
10 |
model_type: llama
|
11 |
+
prompt_template: 'Below is an instruction that describes a task. Write a response
|
12 |
+
that appropriately completes the request.
|
13 |
+
|
14 |
+
|
15 |
+
### Instruction:
|
16 |
+
|
17 |
+
{prompt}
|
18 |
+
|
19 |
+
|
20 |
+
### Response:
|
21 |
+
|
22 |
+
'
|
23 |
quantized_by: TheBloke
|
24 |
tags:
|
25 |
- llama-2
|
|
|
49 |
- Model creator: [NousResearch](https://huggingface.co/NousResearch)
|
50 |
- Original model: [Nous Hermes Llama 2 7B](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b)
|
51 |
|
52 |
+
<!-- description start -->
|
53 |
## Description
|
54 |
|
55 |
This repo contains GGUF format model files for [NousResearch's Nous Hermes Llama 2 7B](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b).
|
56 |
|
57 |
+
<!-- description end -->
|
58 |
<!-- README_GGUF.md-about-gguf start -->
|
59 |
### About GGUF
|
60 |
|
61 |
+
GGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp. GGUF offers numerous advantages over GGML, such as better tokenisation, and support for special tokens. It is also supports metadata, and is designed to be extensible.
|
62 |
|
63 |
+
Here is an incomplate list of clients and libraries that are known to support GGUF:
|
64 |
|
65 |
+
* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
|
66 |
+
* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
|
67 |
+
* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
|
68 |
+
* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.
|
|
|
69 |
* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.
|
70 |
+
* [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
|
71 |
* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
|
72 |
* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
|
73 |
* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
|
|
|
76 |
<!-- repositories-available start -->
|
77 |
## Repositories available
|
78 |
|
79 |
+
* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-AWQ)
|
80 |
* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GPTQ)
|
81 |
* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GGUF)
|
|
|
82 |
* [NousResearch's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b)
|
83 |
<!-- repositories-available end -->
|
84 |
|
|
|
96 |
```
|
97 |
|
98 |
<!-- prompt-template end -->
|
99 |
+
<!-- licensing start -->
|
100 |
+
## Licensing
|
101 |
+
|
102 |
+
The creator of the source model has listed its license as `['mit']`, and this quantization has therefore used that same license.
|
103 |
+
|
104 |
+
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.
|
105 |
+
|
106 |
+
In the meantime, any questions regarding licensing, and in particular how these two licenses might interact, should be directed to the original model repository: [NousResearch's Nous Hermes Llama 2 7B](https://huggingface.co/NousResearch/Nous-Hermes-llama-2-7b).
|
107 |
+
<!-- licensing end -->
|
108 |
<!-- compatibility_gguf start -->
|
109 |
## Compatibility
|
110 |
|
111 |
+
These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d36d5be95a0d9088b674dbb27354107221](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
|
112 |
|
113 |
+
They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
|
114 |
|
115 |
## Explanation of quantisation methods
|
116 |
<details>
|
|
|
151 |
|
152 |
<!-- README_GGUF.md-provided-files end -->
|
153 |
|
154 |
+
<!-- README_GGUF.md-how-to-download start -->
|
155 |
+
## How to download GGUF files
|
156 |
+
|
157 |
+
**Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.
|
158 |
+
|
159 |
+
The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
|
160 |
+
- LM Studio
|
161 |
+
- LoLLMS Web UI
|
162 |
+
- Faraday.dev
|
163 |
+
|
164 |
+
### In `text-generation-webui`
|
165 |
+
|
166 |
+
Under Download Model, you can enter the model repo: TheBloke/Nous-Hermes-Llama-2-7B-GGUF and below it, a specific filename to download, such as: nous-hermes-llama-2-7b.q4_K_M.gguf.
|
167 |
+
|
168 |
+
Then click Download.
|
169 |
+
|
170 |
+
### On the command line, including multiple files at once
|
171 |
+
|
172 |
+
I recommend using the `huggingface-hub` Python library:
|
173 |
+
|
174 |
+
```shell
|
175 |
+
pip3 install huggingface-hub>=0.17.1
|
176 |
+
```
|
177 |
+
|
178 |
+
Then you can download any individual model file to the current directory, at high speed, with a command like this:
|
179 |
+
|
180 |
+
```shell
|
181 |
+
huggingface-cli download TheBloke/Nous-Hermes-Llama-2-7B-GGUF nous-hermes-llama-2-7b.q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
|
182 |
+
```
|
183 |
+
|
184 |
+
<details>
|
185 |
+
<summary>More advanced huggingface-cli download usage</summary>
|
186 |
+
|
187 |
+
You can also download multiple files at once with a pattern:
|
188 |
+
|
189 |
+
```shell
|
190 |
+
huggingface-cli download TheBloke/Nous-Hermes-Llama-2-7B-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
191 |
+
```
|
192 |
|
193 |
+
For more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).
|
194 |
|
195 |
+
To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
|
196 |
|
197 |
+
```shell
|
198 |
+
pip3 install hf_transfer
|
199 |
```
|
200 |
+
|
201 |
+
And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
|
202 |
+
|
203 |
+
```shell
|
204 |
+
HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Nous-Hermes-Llama-2-7B-GGUF nous-hermes-llama-2-7b.q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
|
205 |
+
```
|
206 |
+
|
207 |
+
Windows CLI users: Use `set HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1` before running the download command.
|
208 |
+
</details>
|
209 |
+
<!-- README_GGUF.md-how-to-download end -->
|
210 |
+
|
211 |
+
<!-- README_GGUF.md-how-to-run start -->
|
212 |
+
## Example `llama.cpp` command
|
213 |
+
|
214 |
+
Make sure you are using `llama.cpp` from commit [d0cee0d36d5be95a0d9088b674dbb27354107221](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
|
215 |
+
|
216 |
+
```shell
|
217 |
+
./main -ngl 32 -m nous-hermes-llama-2-7b.q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{prompt}\n\n### Response:"
|
218 |
```
|
|
|
219 |
|
220 |
Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
221 |
|
222 |
+
Change `-c 4096` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically.
|
223 |
|
224 |
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
225 |
|
|
|
276 |
|
277 |
[TheBloke AI's Discord server](https://discord.gg/theblokeai)
|
278 |
|
279 |
+
## Thanks, and how to contribute
|
280 |
|
281 |
Thanks to the [chirper.ai](https://chirper.ai) team!
|
282 |
|
283 |
+
Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
|
284 |
+
|
285 |
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.
|
286 |
|
287 |
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.
|
|
|
293 |
|
294 |
**Special thanks to**: Aemon Algiz.
|
295 |
|
296 |
+
**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
|
297 |
|
298 |
|
299 |
Thank you to all my generous patrons and donaters!
|
|
|
366 |
|
367 |
### Response:
|
368 |
<leave a newline blank for model to respond>
|
369 |
+
```
|
370 |
|
371 |
+
AGIEval
|
372 |
+
```
|
373 |
+
| Task |Version| Metric |Value | |Stderr|
|
374 |
+
|------------------------------|------:|--------|-----:|---|-----:|
|
375 |
+
|agieval_aqua_rat | 0|acc |0.2520|± |0.0273|
|
376 |
+
| | |acc_norm|0.2402|± |0.0269|
|
377 |
+
|agieval_logiqa_en | 0|acc |0.2796|± |0.0176|
|
378 |
+
| | |acc_norm|0.3241|± |0.0184|
|
379 |
+
|agieval_lsat_ar | 0|acc |0.2478|± |0.0285|
|
380 |
+
| | |acc_norm|0.2348|± |0.0280|
|
381 |
+
|agieval_lsat_lr | 0|acc |0.2843|± |0.0200|
|
382 |
+
| | |acc_norm|0.2765|± |0.0198|
|
383 |
+
|agieval_lsat_rc | 0|acc |0.3271|± |0.0287|
|
384 |
+
| | |acc_norm|0.3011|± |0.0280|
|
385 |
+
|agieval_sat_en | 0|acc |0.4660|± |0.0348|
|
386 |
+
| | |acc_norm|0.4223|± |0.0345|
|
387 |
+
|agieval_sat_en_without_passage| 0|acc |0.3738|± |0.0338|
|
388 |
+
| | |acc_norm|0.3447|± |0.0332|
|
389 |
+
|agieval_sat_math | 0|acc |0.2500|± |0.0293|
|
390 |
+
| | |acc_norm|0.2364|± |0.0287|
|
391 |
```
|
392 |
|
393 |
## Benchmark Results
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
|
398 |
## Resources for Applied Use Cases:
|
399 |
For an example of a back and forth chatbot using huggingface transformers and discord, check out: https://github.com/teknium1/alpaca-discord
|