Instructions to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-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 anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF # Run inference directly in the terminal: llama cli -hf anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF # Run inference directly in the terminal: llama cli -hf anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
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 anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF # Run inference directly in the terminal: ./llama-cli -hf anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
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 anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
Use Docker
docker model run hf.co/anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
- LM Studio
- Jan
- vLLM
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
- Ollama
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF with Ollama:
ollama run hf.co/anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
- Unsloth Studio
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-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 anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-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 anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF to start chatting
- Pi
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
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": "anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF with Docker Model Runner:
docker model run hf.co/anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
- Lemonade
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
Run and chat with the model
lemonade run user.DeepSeek-V4-Flash-0731-REAP-K160-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-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 anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
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 anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
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 "anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF" \ --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"
Run and chat with the model
lemonade run user.DeepSeek-V4-Flash-0731-REAP-K160-GGUF-{{QUANT_TAG}}List all available models
lemonade listDeepSeek-V4-Flash-0731 REAP K160, Q3_K/Q4_K GGUF
A GGUF quant of 0xSero/DeepSeek-V4-Flash-0731-REAP,
the K160 expert-pruned checkpoint of
deepseek-ai/DeepSeek-V4-Flash-0731.
The pruning is 0xSero's work: 160 of 256 routed experts kept per MoE scope, top-6
routing unchanged. I only did the quantization and the testing below.
I built this to fit a 4x RTX 3090 rig (96 GB) with a 256K context window. The file is 89.9 GB, which leaves enough room on four 24 GB cards for a quarter million tokens of KV cache.
What is inside
| Tensor type | Tensors | Size | Share |
|---|---|---|---|
| Q3_K | 86 | 49.60 GB | 55.2% |
| Q4_K | 43 | 32.46 GB | 36.1% |
| Q8_0 | 578 | 7.71 GB | 8.6% |
| F32 | 618 | 0.14 GB | 0.2% |
Routed experts carry the Q3_K and Q4_K bulk. Attention, shared experts, the indexer and the output head stay at Q8_0. No imatrix was used.
180.4B parameters after pruning, 89.92 GB of tensor data, so about 3.99 bits per weight.
Quality: a tie with a 2-bit quant of the unpruned model
I ran this against DeepSeek-V4-Flash-0731-UD-IQ2_M, which keeps all 284B
parameters at 2.56 bpw and weighs almost exactly the same, 90.9 GB. Both served
from llama.cpp at temperature 0, 150 scenarios total.
| Pack | K160 Q3_K/Q4_K | UD-IQ2_M |
|---|---|---|
| ToolCall, InstructFollow, StructOutput, DataExtract, ReasonMath (75) | 67 | 67 |
| cli-40 | 23 | 22 |
| hermesagent-20 | 14 | 14 |
| bugfind-15 | 14 | 14 |
| Total | 118/150 | 117/150 |
One scenario out of 150 is noise, so I read this as a tie. The two builds do not fail on the same items though: K160 won CLI-16/17/28/30/40 and HA-17/19, the 2-bit build won CLI-01/03/11/35 and HA-08/13. Same level, slightly different error profile.
Which is the interesting part. Same 90 GB budget, and it does not matter much whether you spend it on 180B parameters at 4 bits or 284B parameters at 2.5 bits.
Known problem: non-English output
Russian output from this build is broken. Not degraded, broken. The unpruned 2-bit quant handles the same prompts fine, so this comes from the pruning, not from my quantization. My guess is that REAP drops the experts that rarely fire on an English and code calibration set, and other languages live exactly there.
I only tested Russian. If you need any language other than English, test it before you commit to this file, or use a quant of the unpruned model.
Running it
This needs my llama.cpp fork (alesha-pro/llama.cpp,
branch ds4-longctx) built with CUDA. Mainline llama.cpp cannot load DeepSeek V4
Flash at all.
git clone -b ds4-longctx https://github.com/alesha-pro/llama.cpp
cd llama.cpp
cmake -B build-v4-cuda -DGGML_CUDA=ON && cmake --build build-v4-cuda -j
MODEL=/path/to/DeepSeek-V4-Flash-0731-REAP-K160-Q3_K_Q4_K-00001-of-00004.gguf \
CTX=262144 bash scripts/ds4-prod-serve.sh
scripts/ds4-prod-serve.sh carries the whole ship flag set, so there is no wall of
DSV4_* variables to copy. Every one of them is still overridable from the
environment if you want to A/B a flag, and the kill switches are
DSV4_PREFILL_GRAPHS=0 and GGML_CUDA_DISABLE_GRAPHS=1.
The launcher also warms the server to full depth once at startup, which takes four to five minutes. That matters more than it sounds: without it the first request at any new depth pays a one-time allocator climb and runs roughly 3x slower than steady state. With it, even the first real request runs warm.
Point MODEL at the first shard, llama.cpp picks up the rest. TS defaults to the
tensor split for my four cards and you will probably need your own. The chat template
ships inside the GGUF.
Speed on my rig
Four RTX 3090 on PCIe 3.0 x16, all four at a 350 W power limit, the fork above, 262144 context, weights and cache filling 92 of the 96 GB.
Prefill runs 1675 t/s on a 32K prompt and 1766 to 1771 t/s between 64K and 130K. Marginal prefill, measured after the fixed cost is paid, sits around 1830 to 1850 t/s. Short prompts look slower than that: a real 18K request today showed 1660 t/s apparent, because every request pays a fixed cost of about 3 seconds for the context checkpoint, and on a short prompt that cost dominates the average.
Decode is 34 to 36 t/s in the benchmark harness and up to 38.9 t/s on single requests.
If you run 3090s at their stock limit, expect less. On other models the step from 220 W to 350 W is worth a lot on the prefill side, so compare against your own cards at a known limit rather than against these numbers.
Credits
Expert pruning and the REAP checkpoint: 0xSero.
Observation dataset behind the expert ranking:
0xSero/deepseek-v4-flash-reap-observations-v2.
Base model: DeepSeek. Quantization, benchmarks and the llama.cpp work: me,
@superalesha.
- Downloads last month
- 3,373
Model tree for anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF
Base model
deepseek-ai/DeepSeek-V4-Flash-0731
Pull the model
# Download Lemonade from https://lemonade-server.ai/lemonade pull anonymousmaharaj/DeepSeek-V4-Flash-0731-REAP-K160-GGUF