Instructions to use jabbatheduck/DeepSeek-v4-flash-mini 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 jabbatheduck/DeepSeek-v4-flash-mini 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 jabbatheduck/DeepSeek-v4-flash-mini # Run inference directly in the terminal: llama cli -hf jabbatheduck/DeepSeek-v4-flash-mini
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jabbatheduck/DeepSeek-v4-flash-mini # Run inference directly in the terminal: llama cli -hf jabbatheduck/DeepSeek-v4-flash-mini
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 jabbatheduck/DeepSeek-v4-flash-mini # Run inference directly in the terminal: ./llama-cli -hf jabbatheduck/DeepSeek-v4-flash-mini
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 jabbatheduck/DeepSeek-v4-flash-mini # Run inference directly in the terminal: ./build/bin/llama-cli -hf jabbatheduck/DeepSeek-v4-flash-mini
Use Docker
docker model run hf.co/jabbatheduck/DeepSeek-v4-flash-mini
- LM Studio
- Jan
- vLLM
How to use jabbatheduck/DeepSeek-v4-flash-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jabbatheduck/DeepSeek-v4-flash-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jabbatheduck/DeepSeek-v4-flash-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jabbatheduck/DeepSeek-v4-flash-mini
- Ollama
How to use jabbatheduck/DeepSeek-v4-flash-mini with Ollama:
ollama run hf.co/jabbatheduck/DeepSeek-v4-flash-mini
- Unsloth Studio
How to use jabbatheduck/DeepSeek-v4-flash-mini 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 jabbatheduck/DeepSeek-v4-flash-mini 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 jabbatheduck/DeepSeek-v4-flash-mini to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jabbatheduck/DeepSeek-v4-flash-mini to start chatting
- Pi
How to use jabbatheduck/DeepSeek-v4-flash-mini with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jabbatheduck/DeepSeek-v4-flash-mini
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": "jabbatheduck/DeepSeek-v4-flash-mini" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use jabbatheduck/DeepSeek-v4-flash-mini with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jabbatheduck/DeepSeek-v4-flash-mini
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 "jabbatheduck/DeepSeek-v4-flash-mini" \ --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 jabbatheduck/DeepSeek-v4-flash-mini with Docker Model Runner:
docker model run hf.co/jabbatheduck/DeepSeek-v4-flash-mini
- Lemonade
How to use jabbatheduck/DeepSeek-v4-flash-mini with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jabbatheduck/DeepSeek-v4-flash-mini
Run and chat with the model
lemonade run user.DeepSeek-v4-flash-mini-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use jabbatheduck/DeepSeek-v4-flash-mini with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jabbatheduck/DeepSeek-v4-flash-mini
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 jabbatheduck/DeepSeek-v4-flash-mini
Run Hermes
hermes
- Atomic Chat
Use Docker
docker model run hf.co/jabbatheduck/DeepSeek-v4-flash-miniDeepSeek-V4-Flash-0731 REAP 80G
A balanced, memory-efficient GGUF quantization of deepseek-ai/DeepSeek-V4-Flash-0731 with 160 of 256 routed experts retained via REAP pruning.
This is an experimental derivative. It is not an official DeepSeek release, and pruning/quantization can reduce quality. Evaluate it on your own coding, reasoning, tool-use, and long-context workloads before production use.
What's Inside
| Item | Value |
|---|---|
| Source revision | 9e165c30e2704aec5d9d593cce3eebd58bbef1cb |
| Original routed experts | 256 per MoE scope |
| Retained routed experts | 160 per MoE scope |
| Routed experts removed | 37.5% |
| Router top-k | 6, unchanged |
| Backbone MoE layers | 43 |
| DSpark MTP blocks | 3, mapped to backbone layers 40, 41, 42 |
| GGUF tensor count | 1,328 |
| GGUF size | ~70.9 GB |
Quantization Recipe
This model uses a mixed-precision scheme optimized for quality at reduced size:
- Experts (routed w1/w3):
IQ2XXS(2.06 bpw) - Routed W2 (down projection):
Q4_K(4.58 bpw) - Attention projections:
Q8_0 - Shared experts:
Q8_0 - Output head:
Q8_0 - Token embeddings:
BF16
The W2 projection was upgraded to Q4_K to preserve the MoE expert quality that degrades fastest under aggressive quantization, while keeping the rest of the model at high precision.
How It Was Made
- REAP pruning retained 160/256 experts per layer from the DeepSeek-V4-Flash-0731 checkpoint using transferred rankings from the
0xSero/deepseek-v4-flash-reap-observations-v2dataset. - GGUF conversion used the
antirez/ds4deepseek4-quantizetool with the recipe above. - Imatrix was collected via the ds4 runtime's routed-MoE activation collector on a Q4KExperts template GGUF, using the
DeepSeek-V4-Flash-chat-v2-routed-moe-ds4calibration corpus. - Verification included structural checks (1,328 tensors, zero failures) and runtime smoke tests.
Usage
Use a DeepSeek-V4-capable runtime. Generic GGUF loaders may not understand the model's custom MXFP4, sparse-attention, tokenizer, and DSpark MTP components.
llama.cpp / llama-server
./llama-cli -m DeepSeek-V4-Flash-REAP-80G-imatrix-0731.gguf \
-ngl 99 \
-c 8192 \
--chat-template deepseek-v4
vLLM
For the tested vLLM preview lineage, patch vllm_topk_softplus_sqrt so expert counts outside the fused kernel's supported set call the Torch fallback. See the runtime/ directory in the source repository for the patch script.
Limitations
- Expert importance came from a closely aligned earlier checkpoint, not a fresh
0731observation. - Structural and smoke validation do not establish benchmark parity with the unpruned model.
- This is an aggressive 37.5% routed-expert prune. Coding preservation is plausible because coding and agentic data were included, but must be measured rather than assumed.
- The included three DSpark MTP blocks were pruned consistently; MTP runtime compatibility should be validated separately from backbone generation.
Credits and License
Thanks to DeepSeek for the base model, Cerebras Research for REAP, the vLLM contributors, and the ds4 community for the GGUF toolchain.
This derivative follows the source repository's MIT license. See LICENSE for the full text.
Citation
If you use this model in your research, please cite the original DeepSeek-V4-Flash work and the REAP pruning methodology.
- Downloads last month
- 416
We're not able to determine the quantization variants.
Model tree for jabbatheduck/DeepSeek-v4-flash-mini
Base model
deepseek-ai/DeepSeek-V4-Flash-0731
Install from pip and serve model
# Install vLLM from pip: pip install vllm# Start the vLLM server: vllm serve "jabbatheduck/DeepSeek-v4-flash-mini"# Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jabbatheduck/DeepSeek-v4-flash-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'