Instructions to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF", dtype="auto") - llama-cpp-python
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF", filename="DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: llama cli -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: llama cli -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: ./llama-cli -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Use Docker
docker model run hf.co/eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
- LM Studio
- Jan
- Ollama
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Ollama:
ollama run hf.co/eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
- Unsloth Studio
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF to start chatting
- Pi
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Docker Model Runner:
docker model run hf.co/eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
- Lemonade
How to use eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull eadx/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Run and chat with the model
lemonade run user.Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF-F32
List all available models
lemonade list
Duplicate from huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF
Browse filesCo-authored-by: huihui.ai <huihui-ai@users.noreply.huggingface.co>
|
@@ -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
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afd481ee689dce9037f70f39085fcdae5a5b096d521cdad43b19fa52bf8f4083
|
| 3 |
+
size 3807602400
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0abedca3dc470460fd1a5eae8e155c30f14a6584c807674bb9dff3bcf4f9f3d9
|
| 3 |
+
size 86720111200
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfca919280118fd332afecbd3d3030807b27cbf270c0fcf804d7da1814a33340
|
| 3 |
+
size 99705676384
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39f3e232fc6c4e1a42a60bf7842c86bd3f1db53e7231e07047f430a713a5f97e
|
| 3 |
+
size 164633502304
|
|
@@ -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)!
|