MaziyarPanahi commited on
Commit
2fe0dbc
1 Parent(s): 835c231

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ notux-8x7b-v1.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ notux-8x7b-v1.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ notux-8x7b-v1.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ notux-8x7b-v1.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ notux-8x7b-v1.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
41
+ notux-8x7b-v1.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
42
+ notux-8x7b-v1.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ notux-8x7b-v1.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ notux-8x7b-v1.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
45
+ notux-8x7b-v1.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - quantized
4
+ - 2-bit
5
+ - 3-bit
6
+ - 4-bit
7
+ - 5-bit
8
+ - 6-bit
9
+ - 8-bit
10
+ - GGUF
11
+ - transformers
12
+ - tensorboard
13
+ - safetensors
14
+ - mixtral
15
+ - text-generation
16
+ - dpo
17
+ - rlaif
18
+ - preference
19
+ - ultrafeedback
20
+ - moe
21
+ - en
22
+ - de
23
+ - es
24
+ - fr
25
+ - it
26
+ - dataset:argilla/ultrafeedback-binarized-preferences-cleaned
27
+ - base_model:mistralai/Mixtral-8x7B-Instruct-v0.1
28
+ - license:apache-2.0
29
+ - autotrain_compatible
30
+ - endpoints_compatible
31
+ - has_space
32
+ - text-generation-inference
33
+ - region:us
34
+ model_name: notux-8x7b-v1-GGUF
35
+ base_model: argilla/notux-8x7b-v1
36
+ inference: false
37
+ model_creator: argilla
38
+ pipeline_tag: text-generation
39
+ quantized_by: MaziyarPanahi
40
+ ---
41
+ # [MaziyarPanahi/notux-8x7b-v1-GGUF](https://huggingface.co/MaziyarPanahi/notux-8x7b-v1-GGUF)
42
+ - Model creator: [argilla](https://huggingface.co/argilla)
43
+ - Original model: [argilla/notux-8x7b-v1](https://huggingface.co/argilla/notux-8x7b-v1)
44
+
45
+ ## Description
46
+ [MaziyarPanahi/notux-8x7b-v1-GGUF](https://huggingface.co/MaziyarPanahi/notux-8x7b-v1-GGUF) contains GGUF format model files for [argilla/notux-8x7b-v1](https://huggingface.co/argilla/notux-8x7b-v1).
47
+
48
+ ## How to use
49
+ Thanks to [TheBloke](https://huggingface.co/TheBloke) for preparing an amazing README on how to use GGUF models:
50
+
51
+ ### About GGUF
52
+
53
+ 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.
54
+
55
+ Here is an incomplete list of clients and libraries that are known to support GGUF:
56
+
57
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
58
+ * [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.
59
+ * [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.
60
+ * [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
61
+ * [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.
62
+ * [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.
63
+ * [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.
64
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
65
+ * [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
66
+ * [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.
67
+
68
+ ### Explanation of quantisation methods
69
+
70
+ <details>
71
+ <summary>Click to see details</summary>
72
+
73
+ The new methods available are:
74
+
75
+ * GGML_TYPE_Q2_K - "type-1" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)
76
+ * GGML_TYPE_Q3_K - "type-0" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.
77
+ * GGML_TYPE_Q4_K - "type-1" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.
78
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
79
+ * GGML_TYPE_Q6_K - "type-0" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw
80
+
81
+ ## How to download GGUF files
82
+
83
+ **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.
84
+
85
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
86
+
87
+ * LM Studio
88
+ * LoLLMS Web UI
89
+ * Faraday.dev
90
+
91
+ ### In `text-generation-webui`
92
+
93
+ Under Download Model, you can enter the model repo: [MaziyarPanahi/notux-8x7b-v1-GGUF](https://huggingface.co/MaziyarPanahi/notux-8x7b-v1-GGUF) and below it, a specific filename to download, such as: notux-8x7b-v1-GGUF.Q4_K_M.gguf.
94
+
95
+ Then click Download.
96
+
97
+ ### On the command line, including multiple files at once
98
+
99
+ I recommend using the `huggingface-hub` Python library:
100
+
101
+ ```shell
102
+ pip3 install huggingface-hub
103
+ ```
104
+
105
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
106
+
107
+ ```shell
108
+ huggingface-cli download MaziyarPanahi/notux-8x7b-v1-GGUF notux-8x7b-v1-GGUF.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
109
+ ```
110
+ </details>
111
+ <details>
112
+ <summary>More advanced huggingface-cli download usage (click to read)</summary>
113
+
114
+ You can also download multiple files at once with a pattern:
115
+
116
+ ```shell
117
+ huggingface-cli download [MaziyarPanahi/notux-8x7b-v1-GGUF](https://huggingface.co/MaziyarPanahi/notux-8x7b-v1-GGUF) --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
118
+ ```
119
+
120
+ 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).
121
+
122
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
123
+
124
+ ```shell
125
+ pip3 install hf_transfer
126
+ ```
127
+
128
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
129
+
130
+ ```shell
131
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download MaziyarPanahi/notux-8x7b-v1-GGUF notux-8x7b-v1-GGUF.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
132
+ ```
133
+
134
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
135
+ </details>
136
+
137
+ ## Example `llama.cpp` command
138
+
139
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
140
+
141
+ ```shell
142
+ ./main -ngl 35 -m notux-8x7b-v1-GGUF.Q4_K_M.gguf --color -c 32768 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<|im_start|>system
143
+ {system_message}<|im_end|>
144
+ <|im_start|>user
145
+ {prompt}<|im_end|>
146
+ <|im_start|>assistant"
147
+ ```
148
+
149
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
150
+
151
+ Change `-c 32768` 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. Note that longer sequence lengths require much more resources, so you may need to reduce this value.
152
+
153
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
154
+
155
+ For other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)
156
+
157
+ ## How to run in `text-generation-webui`
158
+
159
+ Further instructions can be found in the text-generation-webui documentation, here: [text-generation-webui/docs/04 ‐ Model Tab.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/04%20%E2%80%90%20Model%20Tab.md#llamacpp).
160
+
161
+ ## How to run from Python code
162
+
163
+ You can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries. Note that at the time of writing (Nov 27th 2023), ctransformers has not been updated for some time and is not compatible with some recent models. Therefore I recommend you use llama-cpp-python.
164
+
165
+ ### How to load this model in Python code, using llama-cpp-python
166
+
167
+ For full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).
168
+
169
+ #### First install the package
170
+
171
+ Run one of the following commands, according to your system:
172
+
173
+ ```shell
174
+ # Base ctransformers with no GPU acceleration
175
+ pip install llama-cpp-python
176
+ # With NVidia CUDA acceleration
177
+ CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
178
+ # Or with OpenBLAS acceleration
179
+ CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
180
+ # Or with CLBLast acceleration
181
+ CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
182
+ # Or with AMD ROCm GPU acceleration (Linux only)
183
+ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
184
+ # Or with Metal GPU acceleration for macOS systems only
185
+ CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
186
+
187
+ # In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
188
+ $env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
189
+ pip install llama-cpp-python
190
+ ```
191
+
192
+ #### Simple llama-cpp-python example code
193
+
194
+ ```python
195
+ from llama_cpp import Llama
196
+
197
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
198
+ llm = Llama(
199
+ model_path="./notux-8x7b-v1-GGUF.Q4_K_M.gguf", # Download the model file first
200
+ n_ctx=32768, # The max sequence length to use - note that longer sequence lengths require much more resources
201
+ n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
202
+ n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
203
+ )
204
+
205
+ # Simple inference example
206
+ output = llm(
207
+ "<|im_start|>system
208
+ {system_message}<|im_end|>
209
+ <|im_start|>user
210
+ {prompt}<|im_end|>
211
+ <|im_start|>assistant", # Prompt
212
+ max_tokens=512, # Generate up to 512 tokens
213
+ stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
214
+ echo=True # Whether to echo the prompt
215
+ )
216
+
217
+ # Chat Completion API
218
+
219
+ llm = Llama(model_path="./notux-8x7b-v1-GGUF.Q4_K_M.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
220
+ llm.create_chat_completion(
221
+ messages = [
222
+ {"role": "system", "content": "You are a story writing assistant."},
223
+ {
224
+ "role": "user",
225
+ "content": "Write a story about llamas."
226
+ }
227
+ ]
228
+ )
229
+ ```
230
+
231
+ ## How to use with LangChain
232
+
233
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
234
+
235
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
236
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
notux-8x7b-v1.Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eaab7006ea2ee4fdba44f731906811ee33e28b1672bbdab0c650bc94a7dced79
3
+ size 17309173664
notux-8x7b-v1.Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3bbbbc1b286ff766a3de58824d2d522528c9bd808b65da47030a74ed91e2c2f
3
+ size 24167589792
notux-8x7b-v1.Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:09b872ac5af119cbabdcd2aaba361899e19e6b878c40d45f97df620228a8791f
3
+ size 22544394144
notux-8x7b-v1.Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a078f7fd2a0c1c1afaf17f6a5810f897b3f402d84c8c2888345b31f05be86d2
3
+ size 20430464928
notux-8x7b-v1.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:268eefde97d944ed74390b0ccd024c0b7883d364b003d8889964fb5261d84c9a
3
+ size 28446410656
notux-8x7b-v1.Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96b7406911e7e9d21507785cc885ba57ef93be7041e49bbf6f61aeab3bc6afce
3
+ size 26743523232
notux-8x7b-v1.Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afc1f9631cc30bca75539f8c0bc5808fd47d44e62becb5ba8c25c23cdf77b81d
3
+ size 33227524000
notux-8x7b-v1.Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95fb6dbfe1dd03a639ca13138f3c74426f1b7e6fbda830bb651b474275af3e89
3
+ size 32229279648
notux-8x7b-v1.Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c70e3b13ec62d4b27a0a274d50cb44a8ddc77582c2d2cad836164b5caf6eb3ac
3
+ size 38378760096
notux-8x7b-v1.Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bae39a11867563840573b010c8d706624dcf556ecaf1082fe33119c7718a6a0b
3
+ size 49624262560