Instructions to use JigSawPT/DeepSeek-V4.1-Flash-DSpark-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 JigSawPT/DeepSeek-V4.1-Flash-DSpark-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 JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF # Run inference directly in the terminal: llama cli -hf JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF # Run inference directly in the terminal: llama cli -hf JigSawPT/DeepSeek-V4.1-Flash-DSpark-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 JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF # Run inference directly in the terminal: ./llama-cli -hf JigSawPT/DeepSeek-V4.1-Flash-DSpark-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 JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
Use Docker
docker model run hf.co/JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
- LM Studio
- Jan
- Ollama
How to use JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF with Ollama:
ollama run hf.co/JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
- Unsloth Desktop
- Pi
How to use JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF with Docker Model Runner:
docker model run hf.co/JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
- Lemonade
How to use JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
Run and chat with the model
lemonade run user.DeepSeek-V4.1-Flash-DSpark-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use JigSawPT/DeepSeek-V4.1-Flash-DSpark-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 JigSawPT/DeepSeek-V4.1-Flash-DSpark-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 JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf JigSawPT/DeepSeek-V4.1-Flash-DSpark-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 "JigSawPT/DeepSeek-V4.1-Flash-DSpark-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"
DeepSeek-V4.1-Flash DSpark draft head, GGUF
The speculative-decoding draft head that ships inside DeepSeek-V4.1-Flash under the mtp.*
tensors, exported as a standalone DFLASH-architecture GGUF for llama.cpp: three full V4.1 blocks
(128 routed experts, 3 used), the Markov bigram head (rank 256), the confidence head, block size 5.
78 tensors, 7.97 GB.
It runs only on the dsv41-porte branch of
JigSawPT/llama.cpp, with the target model from
JigSawPT/DeepSeek-V4.1-Flash-GGUF.
Upstream llama.cpp has no runtime for V4.1 yet.
What it does for throughput, measured
On an RTX 5090 (31.8 GiB of VRAM) with the target streaming its experts from NVMe, the head is neutral on mixed content: our benchmark (four prompts, three rounds, same day, same configuration) gives 4.92 tokens/s with the draft against 5.13 without, and 21.23 against 21.40 on resident content. Acceptance is high and tracks the content (51 % on Portuguese prose, 79 % on code, 97 % on verbatim repetition), but a verification step pays for the union of experts of its K + 1 tokens, and on a disk-bound machine that cost eats the accepted tokens. Only verbatim repetition gains (+12–15 %). The best draft length on this machine is 2, not the trained block of 5.
In a compute-bound regime, where a batched verification is nearly free, the same acceptance would multiply throughput; that regime needs the working set on the card.
Full numbers and method: the report.
Run
llama-server -m DeepSeek-V4.1-Flash-MXFP4-engram-00001-of-00011.gguf -ngl 99 -c 8192 ^
--moe-stream --moe-stream-cache 18 --moe-stream-l2 72 --reasoning off ^
-md DeepSeek-V4.1-Flash-DSpark.gguf --spec-type draft-dspark --spec-draft-n-max 2 -ngld 99 --spec-draft-n-cpu-moe 3
--spec-draft-n-cpu-moe 3 keeps the draft's experts in RAM so the target keeps its VRAM cache;
putting them on the card changes nothing and costs the target 5 GiB.
How it was made
python convert_hf_to_gguf.py <DeepSeek-V4.1-Flash> --dspark --target-model-dir <DeepSeek-V4.1-Flash> --outtype bf16 --outfile DeepSeek-V4.1-Flash-DSpark.gguf
The converter class is DeepseekV41DSparkModel. It writes the V4.1 head names
(markov_head.embed/head), the draft's own expert counts, the target layers as the reference reads
them (the mean over the hyper-connection streams is taken before running layers 37–39), and a
dflash.dsv41_semantics key that tells the loader to apply the V4.1 rules: no per-head q norm,
the hyper-connection mix threaded one sub-layer ahead, and a final collapse with the last FFN mix
(the V4.1 head has no hc_head weights). Draft experts are MXFP4 as released; attention and dense
weights Q8_0/BF16 from fp8.
SHA-256 in SHA256SUMS.txt.
Credits
DeepSeek for the model (MIT). Engineering assisted by Claude (Anthropic).
- Downloads last month
- 904
We're not able to determine the quantization variants.
Model tree for JigSawPT/DeepSeek-V4.1-Flash-DSpark-GGUF
Base model
deepseek-ai/DeepSeek-V4.1-Flash