eadx huihui-ai commited on
Commit
7db9414
·
0 Parent(s):

Duplicate from huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF

Browse files

Co-authored-by: huihui.ai <huihui-ai@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
+ Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf filter=lfs diff=lfs merge=lfs -text
37
+ DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q4_K.gguf filter=lfs diff=lfs merge=lfs -text
DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afd481ee689dce9037f70f39085fcdae5a5b096d521cdad43b19fa52bf8f4083
3
+ size 3807602400
Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0abedca3dc470460fd1a5eae8e155c30f14a6584c807674bb9dff3bcf4f9f3d9
3
+ size 86720111200
Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfca919280118fd332afecbd3d3030807b27cbf270c0fcf804d7da1814a33340
3
+ size 99705676384
Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q4_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39f3e232fc6c4e1a42a60bf7842c86bd3f1db53e7231e07047f430a713a5f97e
3
+ size 164633502304
README.md ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: transformers
4
+ base_model:
5
+ - deepseek-ai/DeepSeek-V4-Flash
6
+ base_model_relation: quantized
7
+ quantized_by:
8
+ - antirez
9
+ - huihui.ai
10
+ tags:
11
+ - abliterated
12
+ - uncensored
13
+ - GGUF
14
+ - quantized
15
+ - deepseek
16
+ - deepseek-v4
17
+ - deepseek-v4-flash
18
+ - moe
19
+ - mixture-of-experts
20
+ - 2-bit
21
+ - 4-bit
22
+ - iq2_xxs
23
+ - q2_k
24
+ - q4_k
25
+ - ds4
26
+ - apple-silicon
27
+ - metal
28
+ - llama.cpp
29
+
30
+
31
+ extra_gated_prompt: >-
32
+ **Usage Warnings**
33
+
34
+
35
+ “**Risk of Sensitive or Controversial Outputs**“: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated outputs.
36
+
37
+ “**Not Suitable for All Audiences**:“ Due to limited content filtering, the model’s outputs may be inappropriate for public settings, underage users, or applications requiring high security.
38
+
39
+ “**Legal and Ethical Responsibilities**“: Users must ensure their usage complies with local laws and ethical standards. Generated content may carry legal or ethical risks, and users are solely responsible for any consequences.
40
+
41
+ “**Research and Experimental Use**“: It is recommended to use this model for research, testing, or controlled environments, avoiding direct use in production or public-facing commercial applications.
42
+
43
+ “**Monitoring and Review Recommendations**“: Users are strongly advised to monitor model outputs in real-time and conduct manual reviews when necessary to prevent the dissemination of inappropriate content.
44
+
45
+ “**No Default Safety Guarantees**“: Unlike standard models, this model has not undergone rigorous safety optimization. huihui.ai bears no responsibility for any consequences arising from its use.
46
+
47
+
48
+ ---
49
+
50
+ # huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF
51
+
52
+
53
+ This is an uncensored version of [deepseek-ai/DeepSeek-V4-Flash](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash) created with abliteration.
54
+
55
+ This quants are specific for the DS4([antirez/ds4](https://github.com/antirez/ds4)) and llama.cpp inference engine.
56
+ They may work with other inference engines or not (they should, but not the MTP model which requires a specific loader).
57
+
58
+ **Note**
59
+
60
+ 1. The Q2 version has a certain refusal rate. It should be fine for writing code, while the other versions are still under testing.
61
+
62
+ 2. Choose the appropriate model based on the size of your GPU. All models can run under both **[Fringe210/llama.cpp-deepseek-v4-flash-cuda](https://github.com/Fringe210/llama.cpp-deepseek-v4-flash-cuda)**(supports multi-GPU) and **[ds4](https://github.com/antirez/ds4)**(supports multi-GPU).
63
+
64
+ 3. ds4 now supports multi-GPU operation. For more information on how to use it, please refer to [x.com/support_huihui](https://x.com/support_huihui)
65
+
66
+ ## DS4 Unix Domain Socket (UDS) Acceleration Patch
67
+ Dramatically accelerate multi-GPU layer-splitting inference **on the same machine** (coordinator + worker mode) by replacing TCP loopback with Unix Domain Sockets.
68
+ open source 👉 [huihui-support/ds4/tree/uds](https://github.com/huihui-support/ds4/tree/uds)
69
+
70
+ ## DS4 Tensor-Parallel Acceleration Patch
71
+
72
+ Dramatically speed up multi-GPU layer-splitting inference on a single machine using a single process, with full support for consumer-grade graphics cards.
73
+ open source 👉 [huihui-support/ds4/tree/tp](https://github.com/huihui-support/ds4/tree/tp)
74
+
75
+ ## Files
76
+
77
+ The Template FILE comes from [antirez/deepseek-v4-gguf/DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2.gguf](https://huggingface.co/antirez/deepseek-v4-gguf/tree/main).
78
+
79
+ | File | Size | Routed experts (`ffn_{gate,up,down}_exps`) | Everything else |
80
+ |---|---:|---|---|
81
+ | `Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf` | 80.8 GiB | `IQ2_XXS` (gate, up) + `Q2_K` (down)| `Q8_0` attn proj / shared experts / output, `F16` router + embed + indexer + compressor + HC, `F32` norms / sinks / bias |
82
+ | `Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-IQ2_XXS.gguf` | 74.7 GiB | `IQ2_XXS` (gate, up, down)|same as above |
83
+ | `Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2_K.gguf` | 92.8 GiB | `Q2_K` (gate, up, down)|same as above |
84
+ | `Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q4_K.gguf` | 153 GiB | `Q4_K` (gate, up, down)| same as above|
85
+ | `DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf` | 3.6 GiB | MTP / speculative-decoding support (optional, not standalone). | |
86
+
87
+ Use **q2** on 128 GB Mac machines, **q4** on machines with ≥ 256 GB RAM, pair either with **MTP** for optional speculative decoding.
88
+
89
+
90
+ ## Download
91
+ ```
92
+ hf download huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF \
93
+ --local-dir ./huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF \
94
+ --token hf_xxx
95
+ ```
96
+
97
+ ## llama.cpp
98
+
99
+ Use the [Fringe210/llama.cpp-deepseek-v4-flash-cuda](https://github.com/Fringe210/llama.cpp-deepseek-v4-flash-cuda) program (llama-cli needs to be compiled)
100
+
101
+ ```
102
+ llama-cli -m huihui-ai/Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf -n 40960
103
+ ```
104
+
105
+ ## DS4
106
+
107
+ ### Test environment
108
+
109
+ Windows, WSL2, Ubuntu 24.04, RTX 6000 Pro (96GB), CUDA 13.0
110
+ In this environment, inference can reach more than 35 tokens per second.
111
+ Not tested in the Apple environment.
112
+
113
+ ### Supported Hardware
114
+ Only the RTX 6000 Pro has been tested; other hardware has not been tested.
115
+
116
+ **Metal** : MacBook with 96GB of RAM. Mac Studio class machines
117
+
118
+ **NVIDIA CUDA** : DGX Spark. RTX 6000 Pro
119
+
120
+ ### Install
121
+
122
+ ```bash
123
+ git clone https://github.com/antirez/ds4
124
+ cd ds4
125
+
126
+ make
127
+ ```
128
+
129
+ ### CLI
130
+ ```
131
+ export CUDA_VISIBLE_DEVICES=0
132
+
133
+ ./ds4 -m ./huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF/Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf \
134
+ -p "Explain Redis streams in one paragraph."
135
+
136
+ ```
137
+
138
+ ### Server
139
+ ```
140
+ export CUDA_VISIBLE_DEVICES=0
141
+ ./ds4-server \
142
+ --cuda \
143
+ -m ././huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF/Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf \
144
+ --ctx 131072 \
145
+ --kv-disk-dir ./ds4-kv-cache \
146
+ --kv-disk-space-mb 32768 \
147
+ --power 75 \
148
+ --warm-weights
149
+
150
+
151
+ ```
152
+ #### curl test
153
+ ```
154
+ curl http://127.0.0.1:8000/v1/models
155
+
156
+ curl http://127.0.0.1:8000/v1/chat/completions \
157
+ -H "Content-Type: application/json" \
158
+ -d '{
159
+ "model": "deepseek-v4-flash",
160
+ "messages": [
161
+ {"role": "user", "content": "hello"}
162
+ ],
163
+ "temperature": 0.7,
164
+ "max_tokens": 512,
165
+ "stream": false
166
+ }'
167
+
168
+ ```
169
+
170
+ ## License
171
+
172
+ MIT. The base model copyright is held by DeepSeek; the GGUFs are redistributed under the base model's release terms.
173
+
174
+ ## Usage Warnings
175
+
176
+
177
+ - **Risk of Sensitive or Controversial Outputs**: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated outputs.
178
+
179
+ - **Not Suitable for All Audiences**: Due to limited content filtering, the model’s outputs may be inappropriate for public settings, underage users, or applications requiring high security.
180
+
181
+ - **Legal and Ethical Responsibilities**: Users must ensure their usage complies with local laws and ethical standards. Generated content may carry legal or ethical risks, and users are solely responsible for any consequences.
182
+
183
+ - **Research and Experimental Use**: It is recommended to use this model for research, testing, or controlled environments, avoiding direct use in production or public-facing commercial applications.
184
+
185
+ - **Monitoring and Review Recommendations**: Users are strongly advised to monitor model outputs in real-time and conduct manual reviews when necessary to prevent the dissemination of inappropriate content.
186
+
187
+ - **No Default Safety Guarantees**: Unlike standard models, this model has not undergone rigorous safety optimization. huihui.ai bears no responsibility for any consequences arising from its use.
188
+
189
+
190
+ ## Donation
191
+
192
+ If you like it, please click 'like' and follow us for more updates.
193
+ You can follow [x.com/support_huihui](https://x.com/support_huihui) to get the latest model information from huihui.ai.
194
+
195
+ ### Your donation helps us continue our further development and improvement, a cup of coffee can do it.
196
+ - bitcoin(BTC):
197
+ ```
198
+ bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge
199
+ ```
200
+ - Support our work on Ko-fi (https://ko-fi.com/huihuiai)!