TheBloke commited on
Commit
b6fef8f
1 Parent(s): 4411477

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +100 -30
README.md CHANGED
@@ -1,13 +1,27 @@
1
  ---
 
2
  inference: false
3
  language:
4
  - en
5
- license: other
6
  model_creator: Meta Llama 2
7
- model_link: https://huggingface.co/meta-llama/Llama-2-70b-chat-hf
8
  model_name: Llama 2 70B Chat
9
  model_type: llama
10
  pipeline_tag: text-generation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  quantized_by: TheBloke
12
  tags:
13
  - facebook
@@ -38,34 +52,36 @@ tags:
38
  - Model creator: [Meta Llama 2](https://huggingface.co/meta-llama)
39
  - Original model: [Llama 2 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf)
40
 
 
41
  ## Description
42
 
43
  This repo contains GGUF format model files for [Meta Llama 2's Llama 2 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf).
44
 
 
45
  <!-- README_GGUF.md-about-gguf start -->
46
  ### About GGUF
47
 
48
- 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.
49
 
50
- The key benefit of GGUF is that it is a extensible, future-proof format which stores more information about the model as metadata. It also includes significantly improved tokenization code, including for the first time full support for special tokens. This should improve performance, especially with models that use new special tokens and implement custom prompt templates.
51
 
52
- Here are a list of clients and libraries that are known to support GGUF:
53
- * [llama.cpp](https://github.com/ggerganov/llama.cpp).
54
- * [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI. Supports GGUF with GPU acceleration via the ctransformers backend - llama-cpp-python backend should work soon too.
55
- * [KoboldCpp](https://github.com/LostRuins/koboldcpp), now supports GGUF as of release 1.41! A powerful GGML web UI, with full GPU accel. Especially good for story telling.
56
- * [LM Studio](https://lmstudio.ai/), version 0.2.2 and later support GGUF. A fully featured local GUI with GPU acceleration on both Windows (NVidia and AMD), and macOS.
57
- * [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), should now work, choose the `c_transformers` backend. A great web UI with many interesting features. Supports CUDA GPU acceleration.
58
- * [ctransformers](https://github.com/marella/ctransformers), now supports GGUF as of version 0.2.24! A Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
59
- * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), supports GGUF as of version 0.1.79. A Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
60
- * [candle](https://github.com/huggingface/candle), added GGUF support on August 22nd. Candle is a Rust ML framework with a focus on performance, including GPU support, and ease of use.
61
 
62
  <!-- README_GGUF.md-about-gguf end -->
63
  <!-- repositories-available start -->
64
  ## Repositories available
65
 
 
66
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ)
67
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF)
68
- * [2, 3, 4, 5, 6 and 8-bit GGML models for CPU+GPU inference (deprecated)](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGML)
69
  * [Meta Llama 2's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf)
70
  <!-- repositories-available end -->
71
 
@@ -81,12 +97,14 @@ You are a helpful, respectful and honest assistant. Always answer as helpfully a
81
  ```
82
 
83
  <!-- prompt-template end -->
 
 
84
  <!-- compatibility_gguf start -->
85
  ## Compatibility
86
 
87
- These quantised GGUF files are compatible with llama.cpp from August 21st 2023 onwards, as of commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9)
88
 
89
- They are now also compatible with many third party UIs and libraries - please see the list at the top of the README.
90
 
91
  ## Explanation of quantisation methods
92
  <details>
@@ -108,15 +126,11 @@ Refer to the Provided Files table below to see what files use which methods, and
108
 
109
  | Name | Quant method | Bits | Size | Max RAM required | Use case |
110
  | ---- | ---- | ---- | ---- | ---- | ----- |
111
- | [llama-2-70b-chat.Q6_K.gguf-split-b](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q6_K.gguf-split-b) | Q6_K | 6 | 19.89 GB| 22.39 GB | very large, extremely low quality loss |
112
  | [llama-2-70b-chat.Q2_K.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q2_K.gguf) | Q2_K | 2 | 29.28 GB| 31.78 GB | smallest, significant quality loss - not recommended for most purposes |
113
  | [llama-2-70b-chat.Q3_K_S.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q3_K_S.gguf) | Q3_K_S | 3 | 29.92 GB| 32.42 GB | very small, high quality loss |
114
  | [llama-2-70b-chat.Q5_K_S.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q5_K_S.gguf) | Q5_K_S | 5 | 30.57 GB| 33.07 GB | large, low quality loss - recommended |
115
  | [llama-2-70b-chat.Q3_K_M.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q3_K_M.gguf) | Q3_K_M | 3 | 33.19 GB| 35.69 GB | very small, high quality loss |
116
  | [llama-2-70b-chat.Q3_K_L.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q3_K_L.gguf) | Q3_K_L | 3 | 36.15 GB| 38.65 GB | small, substantial quality loss |
117
- | [llama-2-70b-chat.Q8_0.gguf-split-b](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q8_0.gguf-split-b) | Q8_0 | 8 | 36.59 GB| 39.09 GB | very large, extremely low quality loss - not recommended |
118
- | [llama-2-70b-chat.Q6_K.gguf-split-a](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q6_K.gguf-split-a) | Q6_K | 6 | 36.70 GB| 39.20 GB | very large, extremely low quality loss |
119
- | [llama-2-70b-chat.Q8_0.gguf-split-a](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q8_0.gguf-split-a) | Q8_0 | 8 | 36.70 GB| 39.20 GB | very large, extremely low quality loss - not recommended |
120
  | [llama-2-70b-chat.Q4_0.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q4_0.gguf) | Q4_0 | 4 | 38.87 GB| 41.37 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
121
  | [llama-2-70b-chat.Q4_K_S.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q4_K_S.gguf) | Q4_K_S | 4 | 39.07 GB| 41.57 GB | small, greater quality loss |
122
  | [llama-2-70b-chat.Q4_K_M.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q4_K_M.gguf) | Q4_K_M | 4 | 41.42 GB| 43.92 GB | medium, balanced quality - recommended |
@@ -163,21 +177,75 @@ del llama-2-70b-chat.Q8_0.gguf-split-a llama-2-70b-chat.Q8_0.gguf-split-b
163
  </details>
164
  <!-- README_GGUF.md-provided-files end -->
165
 
166
- <!-- README_GGUF.md-how-to-run start -->
167
- ## Example `llama.cpp` command
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
- Make sure you are using `llama.cpp` from commit [6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9](https://github.com/ggerganov/llama.cpp/commit/6381d4e110bd0ec02843a60bbeb8b6fc37a9ace9) or later.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
 
171
- For compatibility with older versions of llama.cpp, or for any third-party libraries or clients that haven't yet updated for GGUF, please use GGML files instead.
172
 
 
 
173
  ```
174
- ./main -t 10 -ngl 32 -m llama-2-70b-chat.q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "[INST] <<SYS>>\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.\n<</SYS>>\nWrite a story about llamas[/INST]"
 
 
 
 
 
 
 
 
 
 
 
175
  ```
176
- 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`.
177
 
178
  Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
179
 
180
- Change `-c 4096` to the desired sequence length for this model. 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.
181
 
182
  If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
183
 
@@ -212,7 +280,7 @@ CT_METAL=1 pip install ctransformers>=0.2.24 --no-binary ctransformers
212
  from ctransformers import AutoModelForCausalLM
213
 
214
  # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
215
- llm = AutoModelForCausalLM.from_pretrained("TheBloke/Llama-2-70B-chat-GGML", model_file="llama-2-70b-chat.q4_K_M.gguf", model_type="llama", gpu_layers=50)
216
 
217
  print(llm("AI is going to"))
218
  ```
@@ -234,10 +302,12 @@ For further support, and discussions on these models and AI in general, join us
234
 
235
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
236
 
237
- ## Thanks, and how to contribute.
238
 
239
  Thanks to the [chirper.ai](https://chirper.ai) team!
240
 
 
 
241
  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.
242
 
243
  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.
@@ -249,7 +319,7 @@ Donaters will get priority support on any and all AI/LLM/model questions and req
249
 
250
  **Special thanks to**: Aemon Algiz.
251
 
252
- **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
253
 
254
 
255
  Thank you to all my generous patrons and donaters!
 
1
  ---
2
+ base_model: https://huggingface.co/meta-llama/Llama-2-70b-chat-hf
3
  inference: false
4
  language:
5
  - en
6
+ license: llama2
7
  model_creator: Meta Llama 2
 
8
  model_name: Llama 2 70B Chat
9
  model_type: llama
10
  pipeline_tag: text-generation
11
+ prompt_template: '[INST] <<SYS>>
12
+
13
+ You are a helpful, respectful and honest assistant. Always answer as helpfully as
14
+ possible, while being safe. Your answers should not include any harmful, unethical,
15
+ racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses
16
+ are socially unbiased and positive in nature. If a question does not make any sense,
17
+ or is not factually coherent, explain why instead of answering something not correct.
18
+ If you don''t know the answer to a question, please don''t share false information.
19
+
20
+ <</SYS>>
21
+
22
+ {prompt}[/INST]
23
+
24
+ '
25
  quantized_by: TheBloke
26
  tags:
27
  - facebook
 
52
  - Model creator: [Meta Llama 2](https://huggingface.co/meta-llama)
53
  - Original model: [Llama 2 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf)
54
 
55
+ <!-- description start -->
56
  ## Description
57
 
58
  This repo contains GGUF format model files for [Meta Llama 2's Llama 2 70B Chat](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf).
59
 
60
+ <!-- description end -->
61
  <!-- README_GGUF.md-about-gguf start -->
62
  ### About GGUF
63
 
64
+ 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.
65
 
66
+ Here is an incomplate list of clients and libraries that are known to support GGUF:
67
 
68
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
69
+ * [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.
70
+ * [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.
71
+ * [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.
72
+ * [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.
73
+ * [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.
74
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.
75
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
76
+ * [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
77
 
78
  <!-- README_GGUF.md-about-gguf end -->
79
  <!-- repositories-available start -->
80
  ## Repositories available
81
 
82
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Llama-2-70B-chat-AWQ)
83
  * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Llama-2-70B-chat-GPTQ)
84
  * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF)
 
85
  * [Meta Llama 2's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf)
86
  <!-- repositories-available end -->
87
 
 
97
  ```
98
 
99
  <!-- prompt-template end -->
100
+
101
+
102
  <!-- compatibility_gguf start -->
103
  ## Compatibility
104
 
105
+ 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)
106
 
107
+ They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
108
 
109
  ## Explanation of quantisation methods
110
  <details>
 
126
 
127
  | Name | Quant method | Bits | Size | Max RAM required | Use case |
128
  | ---- | ---- | ---- | ---- | ---- | ----- |
 
129
  | [llama-2-70b-chat.Q2_K.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q2_K.gguf) | Q2_K | 2 | 29.28 GB| 31.78 GB | smallest, significant quality loss - not recommended for most purposes |
130
  | [llama-2-70b-chat.Q3_K_S.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q3_K_S.gguf) | Q3_K_S | 3 | 29.92 GB| 32.42 GB | very small, high quality loss |
131
  | [llama-2-70b-chat.Q5_K_S.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q5_K_S.gguf) | Q5_K_S | 5 | 30.57 GB| 33.07 GB | large, low quality loss - recommended |
132
  | [llama-2-70b-chat.Q3_K_M.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q3_K_M.gguf) | Q3_K_M | 3 | 33.19 GB| 35.69 GB | very small, high quality loss |
133
  | [llama-2-70b-chat.Q3_K_L.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q3_K_L.gguf) | Q3_K_L | 3 | 36.15 GB| 38.65 GB | small, substantial quality loss |
 
 
 
134
  | [llama-2-70b-chat.Q4_0.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q4_0.gguf) | Q4_0 | 4 | 38.87 GB| 41.37 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
135
  | [llama-2-70b-chat.Q4_K_S.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q4_K_S.gguf) | Q4_K_S | 4 | 39.07 GB| 41.57 GB | small, greater quality loss |
136
  | [llama-2-70b-chat.Q4_K_M.gguf](https://huggingface.co/TheBloke/Llama-2-70B-chat-GGUF/blob/main/llama-2-70b-chat.Q4_K_M.gguf) | Q4_K_M | 4 | 41.42 GB| 43.92 GB | medium, balanced quality - recommended |
 
177
  </details>
178
  <!-- README_GGUF.md-provided-files end -->
179
 
180
+ <!-- README_GGUF.md-how-to-download start -->
181
+ ## How to download GGUF files
182
+
183
+ **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.
184
+
185
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
186
+ - LM Studio
187
+ - LoLLMS Web UI
188
+ - Faraday.dev
189
+
190
+ ### In `text-generation-webui`
191
+
192
+ Under Download Model, you can enter the model repo: TheBloke/Llama-2-70B-chat-GGUF and below it, a specific filename to download, such as: llama-2-70b-chat.q4_K_M.gguf.
193
+
194
+ Then click Download.
195
+
196
+ ### On the command line, including multiple files at once
197
+
198
+ I recommend using the `huggingface-hub` Python library:
199
+
200
+ ```shell
201
+ pip3 install huggingface-hub>=0.17.1
202
+ ```
203
+
204
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
205
 
206
+ ```shell
207
+ huggingface-cli download TheBloke/Llama-2-70B-chat-GGUF llama-2-70b-chat.q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
208
+ ```
209
+
210
+ <details>
211
+ <summary>More advanced huggingface-cli download usage</summary>
212
+
213
+ You can also download multiple files at once with a pattern:
214
+
215
+ ```shell
216
+ huggingface-cli download TheBloke/Llama-2-70B-chat-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
217
+ ```
218
+
219
+ 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).
220
+
221
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
222
+
223
+ ```shell
224
+ pip3 install hf_transfer
225
+ ```
226
 
227
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
228
 
229
+ ```shell
230
+ HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Llama-2-70B-chat-GGUF llama-2-70b-chat.q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
231
  ```
232
+
233
+ Windows CLI users: Use `set HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1` before running the download command.
234
+ </details>
235
+ <!-- README_GGUF.md-how-to-download end -->
236
+
237
+ <!-- README_GGUF.md-how-to-run start -->
238
+ ## Example `llama.cpp` command
239
+
240
+ Make sure you are using `llama.cpp` from commit [d0cee0d36d5be95a0d9088b674dbb27354107221](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
241
+
242
+ ```shell
243
+ ./main -ngl 32 -m llama-2-70b-chat.q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "[INST] <<SYS>>\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.\n<</SYS>>\n{prompt}[/INST]"
244
  ```
 
245
 
246
  Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
247
 
248
+ 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.
249
 
250
  If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
251
 
 
280
  from ctransformers import AutoModelForCausalLM
281
 
282
  # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
283
+ llm = AutoModelForCausalLM.from_pretrained("TheBloke/Llama-2-70B-chat-GGUF", model_file="llama-2-70b-chat.q4_K_M.gguf", model_type="llama", gpu_layers=50)
284
 
285
  print(llm("AI is going to"))
286
  ```
 
302
 
303
  [TheBloke AI's Discord server](https://discord.gg/theblokeai)
304
 
305
+ ## Thanks, and how to contribute
306
 
307
  Thanks to the [chirper.ai](https://chirper.ai) team!
308
 
309
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
310
+
311
  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.
312
 
313
  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.
 
319
 
320
  **Special thanks to**: Aemon Algiz.
321
 
322
+ **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
323
 
324
 
325
  Thank you to all my generous patrons and donaters!