Instructions to use huihui-ai/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 huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF", dtype="auto") - llama-cpp-python
How to use huihui-ai/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="huihui-ai/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
- llama.cpp
How to use huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: llama-cli -hf huihui-ai/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-server -hf huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: llama-cli -hf huihui-ai/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 huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: ./llama-cli -hf huihui-ai/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 huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Use Docker
docker model run hf.co/huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
- LM Studio
- Jan
- Ollama
How to use huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Ollama:
ollama run hf.co/huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
- Unsloth Studio new
How to use huihui-ai/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 huihui-ai/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 huihui-ai/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 huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF to start chatting
- Pi new
How to use huihui-ai/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-server -hf huihui-ai/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": "huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use huihui-ai/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-server -hf huihui-ai/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 huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
Run Hermes
hermes
- Docker Model Runner
How to use huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Docker Model Runner:
docker model run hf.co/huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF:F32
- Lemonade
How to use huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull huihui-ai/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
huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF
This is an uncensored version of deepseek-ai/DeepSeek-V4-Flash created with abliteration.
This quants are specific for the DS4(antirez/ds4) and llama.cpp inference engine. They may work with other inference engines or not (they should, but not the MTP model which requires a specific loader).
Note
The Q2 version has a certain refusal rate. It should be fine for writing code, while the other versions are still under testing.
Choose the appropriate model based on the size of your GPU. All models can run under both llama.cpp(supports multi-GPU) and ds4(currently supports only single-GPU).
Files
The Template FILE comes from antirez/deepseek-v4-gguf/DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2.gguf.
| File | Size | Routed experts (ffn_{gate,up,down}_exps) |
Everything else |
|---|---|---|---|
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 |
Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-IQ2_XXS.gguf |
74.7 GiB | IQ2_XXS (gate, up, down) |
same as above |
Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2_K.gguf |
92.8 GiB | Q2_K (gate, up, down) |
same as above |
Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q4_K.gguf |
153 GiB | Q4_K (gate, up, down) |
same as above |
DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf |
3.6 GiB | MTP / speculative-decoding support (optional, not standalone). |
Use q2 on 128 GB Mac machines, q4 on machines with ≥ 256 GB RAM, pair either with MTP for optional speculative decoding.
Download
hf download huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF \
--local-dir ./huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF \
--token hf_xxx
llama.cpp
Use the Fringe210/llama.cpp-deepseek-v4-flash-cuda program (llama-cli needs to be compiled)
llama-cli -m huihui-ai/Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf -n 40960
DS4
Test environment
Windows, WSL2, Ubuntu 24.04, RTX 6000 Pro (96GB), CUDA 13.0
In this environment, inference can reach more than 35 tokens per second.
Not tested in the Apple environment.
Supported Hardware
Only the RTX 6000 Pro has been tested; other hardware has not been tested.
Metal : MacBook with 96GB of RAM. Mac Studio class machines
NVIDIA CUDA : DGX Spark. RTX 6000 Pro
Install
git clone https://github.com/antirez/ds4
cd ds4
make
CLI
export CUDA_VISIBLE_DEVICES=0
./ds4 -m ./huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF/Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf \
-p "Explain Redis streams in one paragraph."
Server
export CUDA_VISIBLE_DEVICES=0
./ds4-server \
--cuda \
-m ././huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF/Huihui-DeepSeek-V4-Flash-BF16-abliterated-ds4-Q2.gguf \
--ctx 131072 \
--kv-disk-dir ./ds4-kv-cache \
--kv-disk-space-mb 32768 \
--power 75 \
--warm-weights
curl test
curl http://127.0.0.1:8000/v1/models
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [
{"role": "user", "content": "hello"}
],
"temperature": 0.7,
"max_tokens": 512,
"stream": false
}'
License
MIT. The base model copyright is held by DeepSeek; the GGUFs are redistributed under the base model's release terms.
Usage Warnings
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.
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.
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.
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.
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.
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.
Donation
If you like it, please click 'like' and follow us for more updates.
You can follow x.com/support_huihui to get the latest model information from huihui.ai.
Your donation helps us continue our further development and improvement, a cup of coffee can do it.
- bitcoin(BTC):
bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge
- Support our work on Ko-fi (https://ko-fi.com/huihuiai)!
- Downloads last month
- -
2-bit
16-bit
32-bit
Model tree for huihui-ai/Huihui-DeepSeek-V4-Flash-abliterated-ds4-GGUF
Base model
deepseek-ai/DeepSeek-V4-Flash