TheBloke commited on
Commit
471c902
·
verified ·
1 Parent(s): f83d335

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +462 -0
README.md ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Weyaxi/Helion-4x34B
3
+ inference: false
4
+ license: other
5
+ license_link: https://huggingface.co/01-ai/Yi-34B-200K/blob/main/LICENSE
6
+ license_name: yi-license
7
+ model_creator: "Ya\u011F\u0131z \xC7al\u0131k"
8
+ model_name: Helion 4X34B
9
+ model_type: mixtral
10
+ prompt_template: '<|im_start|>system
11
+
12
+ {system_message}<|im_end|>
13
+
14
+ <|im_start|>user
15
+
16
+ {prompt}<|im_end|>
17
+
18
+ <|im_start|>assistant
19
+
20
+ '
21
+ quantized_by: TheBloke
22
+ tags:
23
+ - yi
24
+ - moe
25
+ ---
26
+ <!-- markdownlint-disable MD041 -->
27
+
28
+ <!-- header start -->
29
+ <!-- 200823 -->
30
+ <div style="width: auto; margin-left: auto; margin-right: auto">
31
+ <img src="https://i.imgur.com/EBdldam.jpg" alt="TheBlokeAI" style="width: 100%; min-width: 400px; display: block; margin: auto;">
32
+ </div>
33
+ <div style="display: flex; justify-content: space-between; width: 100%;">
34
+ <div style="display: flex; flex-direction: column; align-items: flex-start;">
35
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://discord.gg/theblokeai">Chat & support: TheBloke's Discord server</a></p>
36
+ </div>
37
+ <div style="display: flex; flex-direction: column; align-items: flex-end;">
38
+ <p style="margin-top: 0.5em; margin-bottom: 0em;"><a href="https://www.patreon.com/TheBlokeAI">Want to contribute? TheBloke's Patreon page</a></p>
39
+ </div>
40
+ </div>
41
+ <div style="text-align:center; margin-top: 0em; margin-bottom: 0em"><p style="margin-top: 0.25em; margin-bottom: 0em;">TheBloke's LLM work is generously supported by a grant from <a href="https://a16z.com">andreessen horowitz (a16z)</a></p></div>
42
+ <hr style="margin-top: 1.0em; margin-bottom: 1.0em;">
43
+ <!-- header end -->
44
+
45
+ # Helion 4X34B - GGUF
46
+ - Model creator: [Yağız Çalık](https://huggingface.co/Weyaxi)
47
+ - Original model: [Helion 4X34B](https://huggingface.co/Weyaxi/Helion-4x34B)
48
+
49
+ <!-- description start -->
50
+ ## Description
51
+
52
+ This repo contains GGUF format model files for [Yağız Çalık's Helion 4X34B](https://huggingface.co/Weyaxi/Helion-4x34B).
53
+
54
+ These files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).
55
+
56
+ <!-- description end -->
57
+ <!-- README_GGUF.md-about-gguf start -->
58
+ ### About GGUF
59
+
60
+ 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.
61
+
62
+ Here is an incomplete list of clients and libraries that are known to support GGUF:
63
+
64
+ * [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.
65
+ * [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.
66
+ * [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.
67
+ * [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
68
+ * [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.
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
+ * [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
72
+ * [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.
73
+ * [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.
74
+
75
+ <!-- README_GGUF.md-about-gguf end -->
76
+ <!-- repositories-available start -->
77
+ ## Repositories available
78
+
79
+ * [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/Helion-4x34B-AWQ)
80
+ * [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/Helion-4x34B-GPTQ)
81
+ * [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/Helion-4x34B-GGUF)
82
+ * [Yağız Çalık's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/Weyaxi/Helion-4x34B)
83
+ <!-- repositories-available end -->
84
+
85
+ <!-- prompt-template start -->
86
+ ## Prompt template: ChatML
87
+
88
+ ```
89
+ <|im_start|>system
90
+ {system_message}<|im_end|>
91
+ <|im_start|>user
92
+ {prompt}<|im_end|>
93
+ <|im_start|>assistant
94
+
95
+ ```
96
+
97
+ <!-- prompt-template end -->
98
+
99
+
100
+ <!-- compatibility_gguf start -->
101
+ ## Compatibility
102
+
103
+ These quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)
104
+
105
+ They are also compatible with many third party UIs and libraries - please see the list at the top of this README.
106
+
107
+ ## Explanation of quantisation methods
108
+
109
+ <details>
110
+ <summary>Click to see details</summary>
111
+
112
+ The new methods available are:
113
+
114
+ * 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)
115
+ * 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.
116
+ * 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.
117
+ * GGML_TYPE_Q5_K - "type-1" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw
118
+ * 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
119
+
120
+ Refer to the Provided Files table below to see what files use which methods, and how.
121
+ </details>
122
+ <!-- compatibility_gguf end -->
123
+
124
+ <!-- README_GGUF.md-provided-files start -->
125
+ ## Provided files
126
+
127
+ | Name | Quant method | Bits | Size | Max RAM required | Use case |
128
+ | ---- | ---- | ---- | ---- | ---- | ----- |
129
+ | [helion-4x34b.Q2_K.gguf](https://huggingface.co/TheBloke/Helion-4x34B-GGUF/blob/main/helion-4x34b.Q2_K.gguf) | Q2_K | 2 | 41.47 GB| 43.97 GB | smallest, significant quality loss - not recommended for most purposes |
130
+ | helion-4x34b.Q3_K_M.gguf | Q3_K_M | 3 | 54.45 GB| 56.95 GB | very small, high quality loss |
131
+ | helion-4x34b.Q4_0.gguf | Q4_0 | 4 | 64.06 GB| 66.56 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
132
+ | helion-4x34b.Q4_K_M.gguf | Q4_K_M | 4 | 68.66 GB| 71.16 GB | medium, balanced quality - recommended |
133
+ | helion-4x34b.Q5_0.gguf | Q5_0 | 5 | 78.21 GB| 80.71 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
134
+ | helion-4x34b.Q5_K_M.gguf | Q5_K_M | 5 | 80.58 GB| 83.08 GB | large, very low quality loss - recommended |
135
+ | helion-4x34b.Q6_K.gguf | Q6_K | 6 | 93.25 GB| 95.75 GB | very large, extremely low quality loss |
136
+
137
+ **Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
138
+
139
+ ### Q6_K and Q8_0 files are split and require joining
140
+
141
+ **Note:** HF does not support uploading files larger than 50GB. Therefore I have uploaded the Q6_K and Q8_0 files as split files.
142
+
143
+ <details>
144
+ <summary>Click for instructions regarding Q6_K and Q8_0 files</summary>
145
+
146
+ ### q6_K
147
+ Please download:
148
+ * `helion-4x34b.Q6_K.gguf-split-a`
149
+ * `helion-4x34b.Q6_K.gguf-split-b`
150
+
151
+ ### q8_0
152
+ Please download:
153
+ * `helion-4x34b.Q8_0.gguf-split-a`
154
+ * `helion-4x34b.Q8_0.gguf-split-b`
155
+
156
+ To join the files, do the following:
157
+
158
+ Linux and macOS:
159
+ ```
160
+ cat helion-4x34b.Q6_K.gguf-split-* > helion-4x34b.Q6_K.gguf && rm helion-4x34b.Q6_K.gguf-split-*
161
+ cat helion-4x34b.Q8_0.gguf-split-* > helion-4x34b.Q8_0.gguf && rm helion-4x34b.Q8_0.gguf-split-*
162
+ ```
163
+ Windows command line:
164
+ ```
165
+ COPY /B helion-4x34b.Q6_K.gguf-split-a + helion-4x34b.Q6_K.gguf-split-b helion-4x34b.Q6_K.gguf
166
+ del helion-4x34b.Q6_K.gguf-split-a helion-4x34b.Q6_K.gguf-split-b
167
+
168
+ COPY /B helion-4x34b.Q8_0.gguf-split-a + helion-4x34b.Q8_0.gguf-split-b helion-4x34b.Q8_0.gguf
169
+ del helion-4x34b.Q8_0.gguf-split-a helion-4x34b.Q8_0.gguf-split-b
170
+ ```
171
+
172
+ </details>
173
+ <!-- README_GGUF.md-provided-files end -->
174
+
175
+ <!-- README_GGUF.md-how-to-download start -->
176
+ ## How to download GGUF files
177
+
178
+ **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.
179
+
180
+ The following clients/libraries will automatically download models for you, providing a list of available models to choose from:
181
+
182
+ * LM Studio
183
+ * LoLLMS Web UI
184
+ * Faraday.dev
185
+
186
+ ### In `text-generation-webui`
187
+
188
+ Under Download Model, you can enter the model repo: TheBloke/Helion-4x34B-GGUF and below it, a specific filename to download, such as: helion-4x34b.Q4_K_M.gguf.
189
+
190
+ Then click Download.
191
+
192
+ ### On the command line, including multiple files at once
193
+
194
+ I recommend using the `huggingface-hub` Python library:
195
+
196
+ ```shell
197
+ pip3 install huggingface-hub
198
+ ```
199
+
200
+ Then you can download any individual model file to the current directory, at high speed, with a command like this:
201
+
202
+ ```shell
203
+ huggingface-cli download TheBloke/Helion-4x34B-GGUF helion-4x34b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
204
+ ```
205
+
206
+ <details>
207
+ <summary>More advanced huggingface-cli download usage (click to read)</summary>
208
+
209
+ You can also download multiple files at once with a pattern:
210
+
211
+ ```shell
212
+ huggingface-cli download TheBloke/Helion-4x34B-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'
213
+ ```
214
+
215
+ 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).
216
+
217
+ To accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:
218
+
219
+ ```shell
220
+ pip3 install hf_transfer
221
+ ```
222
+
223
+ And set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:
224
+
225
+ ```shell
226
+ HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Helion-4x34B-GGUF helion-4x34b.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False
227
+ ```
228
+
229
+ Windows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.
230
+ </details>
231
+ <!-- README_GGUF.md-how-to-download end -->
232
+
233
+ <!-- README_GGUF.md-how-to-run start -->
234
+ ## Example `llama.cpp` command
235
+
236
+ Make sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.
237
+
238
+ ```shell
239
+ ./main -ngl 35 -m helion-4x34b.Q4_K_M.gguf --color -c 200000 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant"
240
+ ```
241
+
242
+ Change `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
243
+
244
+ Change `-c 200000` 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.
245
+
246
+ If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
247
+
248
+ 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)
249
+
250
+ ## How to run in `text-generation-webui`
251
+
252
+ 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).
253
+
254
+ ## How to run from Python code
255
+
256
+ 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.
257
+
258
+ ### How to load this model in Python code, using llama-cpp-python
259
+
260
+ For full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).
261
+
262
+ #### First install the package
263
+
264
+ Run one of the following commands, according to your system:
265
+
266
+ ```shell
267
+ # Base ctransformers with no GPU acceleration
268
+ pip install llama-cpp-python
269
+ # With NVidia CUDA acceleration
270
+ CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
271
+ # Or with OpenBLAS acceleration
272
+ CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
273
+ # Or with CLBLast acceleration
274
+ CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
275
+ # Or with AMD ROCm GPU acceleration (Linux only)
276
+ CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
277
+ # Or with Metal GPU acceleration for macOS systems only
278
+ CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
279
+
280
+ # In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:
281
+ $env:CMAKE_ARGS = "-DLLAMA_OPENBLAS=on"
282
+ pip install llama-cpp-python
283
+ ```
284
+
285
+ #### Simple llama-cpp-python example code
286
+
287
+ ```python
288
+ from llama_cpp import Llama
289
+
290
+ # Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.
291
+ llm = Llama(
292
+ model_path="./helion-4x34b.Q4_K_M.gguf", # Download the model file first
293
+ n_ctx=200000, # The max sequence length to use - note that longer sequence lengths require much more resources
294
+ n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
295
+ n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
296
+ )
297
+
298
+ # Simple inference example
299
+ output = llm(
300
+ "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant", # Prompt
301
+ max_tokens=512, # Generate up to 512 tokens
302
+ stop=["</s>"], # Example stop token - not necessarily correct for this specific model! Please check before using.
303
+ echo=True # Whether to echo the prompt
304
+ )
305
+
306
+ # Chat Completion API
307
+
308
+ llm = Llama(model_path="./helion-4x34b.Q4_K_M.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
309
+ llm.create_chat_completion(
310
+ messages = [
311
+ {"role": "system", "content": "You are a story writing assistant."},
312
+ {
313
+ "role": "user",
314
+ "content": "Write a story about llamas."
315
+ }
316
+ ]
317
+ )
318
+ ```
319
+
320
+ ## How to use with LangChain
321
+
322
+ Here are guides on using llama-cpp-python and ctransformers with LangChain:
323
+
324
+ * [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)
325
+ * [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)
326
+
327
+ <!-- README_GGUF.md-how-to-run end -->
328
+
329
+ <!-- footer start -->
330
+ <!-- 200823 -->
331
+ ## Discord
332
+
333
+ For further support, and discussions on these models and AI in general, join us at:
334
+
335
+ [TheBloke AI's Discord server](https://discord.gg/theblokeai)
336
+
337
+ ## Thanks, and how to contribute
338
+
339
+ Thanks to the [chirper.ai](https://chirper.ai) team!
340
+
341
+ Thanks to Clay from [gpus.llm-utils.org](llm-utils)!
342
+
343
+ 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.
344
+
345
+ 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.
346
+
347
+ Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
348
+
349
+ * Patreon: https://patreon.com/TheBlokeAI
350
+ * Ko-Fi: https://ko-fi.com/TheBlokeAI
351
+
352
+ **Special thanks to**: Aemon Algiz.
353
+
354
+ **Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros
355
+
356
+
357
+ Thank you to all my generous patrons and donaters!
358
+
359
+ And thank you again to a16z for their generous grant.
360
+
361
+ <!-- footer end -->
362
+
363
+ <!-- original-model-card start -->
364
+ # Original model card: Yağız Çalık's Helion 4X34B
365
+
366
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/6468ce47e134d050a58aa89c/GA28gWAezC9qhrTcwSfuA.jpeg)
367
+
368
+ # Helion-4x34B
369
+
370
+ This is the model for Helion-4x34B. I used [mergekit](https://github.com/cg123/mergekit) to make this MOE model.
371
+
372
+ # Prompt Template(s):
373
+
374
+ Since [bagel-dpo-34b-v0.2](https://huggingface.co/jondurbin/bagel-dpo-34b-v0.2) uses many prompt templates, you can utilize prompt templates provided by bagel and other expert's prompt templates.
375
+
376
+ **Note:** I currently do not know which prompt template is best.
377
+
378
+ ### ChatML:
379
+
380
+ ```
381
+ <|im_start|>system
382
+ {system}<|im_end|>
383
+ <|im_start|>user
384
+ {user}<|im_end|>
385
+ <|im_start|>assistant
386
+ {asistant}<|im_end|>
387
+ ```
388
+
389
+ ### Human Asistant
390
+
391
+ ```
392
+ Human: {user}
393
+
394
+ ### Assistant: {asistant}
395
+ ```
396
+
397
+ ### Alpaca (sort of)
398
+
399
+ ```
400
+ Below is an instruction that describes a task. Write a response that appropriately completes the request.
401
+
402
+ ### Instruction:
403
+ {system}
404
+ {instruction}
405
+
406
+ ### Response:
407
+ ```
408
+
409
+ ### Vicuna
410
+
411
+ ```
412
+ {system}
413
+ USER: {instruction}
414
+ ASSISTANT:
415
+ ```
416
+
417
+ Visit [bagel-dpo-34b-v0.2](https://huggingface.co/jondurbin/bagel-dpo-34b-v0.2) to try more prompt templates.
418
+
419
+ # Yaml Config to reproduce
420
+
421
+ ```yaml
422
+ base_model: nontoxic-bagel-34b-v0.2
423
+ gate_mode: hidden
424
+ dtype: bfloat16
425
+
426
+ experts:
427
+ - source_model: bagel-dpo-34b-v0.2
428
+ positive_prompts: ["question answering", "Q:", science", "biology", "chemistry", "physics"]
429
+ negative_prompts: ["math", "reason", "mathematics", "solve", "count", "code", "python", "javascript", "programming", "algorithm"]
430
+
431
+ - source_model: Nous-Hermes-2-Yi-34B
432
+ positive_prompts: ["chat", "math", "reason", "mathematics", "solve", "count", "python", "javascript", "programming", "algorithm", "tell me", "assistant"]
433
+
434
+ - source_model: SUS-Chat-34B
435
+ positive_prompts: ["math", "reason", "mathematics", "solve", "count", "assistant"]
436
+
437
+ - source_model: platypus-yi-34b
438
+ positive_prompts: [""]
439
+ negative_prompts: ["math", "reason", "mathematics", "solve", "count"]
440
+ ```
441
+
442
+ # Quantizationed versions
443
+
444
+ Quantizationed versions of this model is available thanks to [TheBloke](https://hf.co/TheBloke).
445
+
446
+ ##### GPTQ
447
+
448
+ - [TheBloke/Helion-4x34B-GPTQ](https://huggingface.co/TheBloke/Helion-4x34B-GPTQ)
449
+
450
+ ##### GGUF
451
+
452
+ - [TheBloke/Helion-4x34B-GGUF](https://huggingface.co/TheBloke/Helion-4x34B-GGUF)
453
+
454
+ ##### AWQ
455
+
456
+ - [TheBloke/Helion-4x34B-AWQ](https://huggingface.co/TheBloke/Helion-4x34B-AWQ)
457
+
458
+ If you would like to support me:
459
+
460
+ [☕ Buy Me a Coffee](https://www.buymeacoffee.com/weyaxi)
461
+
462
+ <!-- original-model-card end -->