Instructions to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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 cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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 cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF # Run inference directly in the terminal: llama cli -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF # Run inference directly in the terminal: llama cli -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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 cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF # Run inference directly in the terminal: ./llama-cli -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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 cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
Use Docker
docker model run hf.co/cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
- Llama new
- LM Studio
- Jan
- vLLM
How to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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": "cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
- Ollama
How to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF with Ollama:
ollama run hf.co/cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
- Unsloth Desktop
- Pi
How to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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": "cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF with Docker Model Runner:
docker model run hf.co/cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
- Lemonade
How to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
Run and chat with the model
lemonade run user.DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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 cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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 cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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 "cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-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"
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": "cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF"
}
]
}
}
}Run Pi
# Start Pi in your project directory:
piDeepSeek-V4.1-Flash-1017 · V6e · 192/384 experts per layer
Chinese-coding-only model with a fallback for non-code text: per layer the 176 experts with the highest REAP score on Chinese-coding text plus the 16 most-routed experts on general text.
Part of the expert-pruning / extreme-quantization test for running DeepSeek-V4.1-Flash-1017 on 2×RTX 4090 48G. Full report, all measurements, tools and data: cliecy/DeepSeek-V4.1-Flash-1017-pruning-eval (kept up to date). This is an experimental checkpoint, published so every step of the test can be reproduced; read its results first.
How it was made
Base: V0 (fixed UD-IQ2XS). V0 tensor types (UD-IQ2XS, zero-dither requant): routed experts ffn_gate_exps/ffn_up_exps IQ2_XS, ffn_down_exps IQ2_S; engram_embd Q4_K; attention (attn_q_a/q_b/kv/output_a/output_b) and shared experts Q6_K; ffn_gate_inp (router), attn_compressor_*, indexer.* BF16; hc_*_fn F32; output Q6_K; token embedding Q8_0. imatrix: mrfakename Q2_K on calib-mix (EN + Chinese), ctx 512.
python3 tools/prune_experts.py GGUF_PY V0 OLD_IMATRIX 192 OUT.gguf OUT-imatrix.gguf report.json routing/reap176-general16.json count
# reap176-general16.json: score 2 for REAP-codezh top-176, 1 for the 16 most-routed calib-all experts not among them
prune_experts.pycuts, per layer and along the expert axis,ffn_{gate,up,down}_exps, the routerffn_gate_inpand the selection biasesexp_probs_b(_vl), and setsdeepseek41.expert_count= 192 (llama.cpp has one global expert count, so every layer keeps the same number: its own top-192). A pruned expert can never be selected.- Rankings come from
llama-reapon V0 (routing count and REAP score = mean of g_e·‖f_e‖ over routed tokens), on the mixed calibrationcalib-all(452k tokens: EN/zh text, V0-generated chats, Japanese, C++) or the Chinese-coding calibrationcalib-codezh(1.0M tokens: GLM-5.3 generated Chinese coding chats + code in 8 languages). Per-layer dropped expert lists are in the eval repo underprune-reports/. - OLD_IMATRIX = mrfakename Q2_K / calib-mix / ctx 512; NEW_IMATRIX = V0 / calib-all / ctx 2048.
Results
Copied from the eval report (KLD / top-1 agreement vs V0; per-domain tables: eval-all = wiki/ja/code/chat, eval-v6 = code/codezh/wiki/ja/chat):
| ver | content | file | KLD mean | KLD 99 % | top-1 | Q&A | loops | verdict |
|---|---|---|---|---|---|---|---|---|
| V6e | V0: REAP-codezh top-176 + 16 general experts | 199 GB | 0.398 (all) | 5.27 | 81.8 % (all) | 4/4 code+math; ja OK | 3 of 4 long texts loop | HumanEval-zh 85.4 %; tool call broken |
| ver (PPL / KLD / top-1) | code (C++) | codezh | wiki | ja | chat |
|---|---|---|---|---|---|
| V6e | 1.426 / 0.186 / 94.5 % | 1.861 / 0.055 / 92.7 % | 4.38 / 0.710 / 75.7 % | 16.6 / 0.418 / 71.0 % | 3.40 / 0.621 / 75.0 % |
Files
Split with llama-gguf-split --split-max-size 45G; point llama.cpp at the first shard.
DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-00001-of-00005.ggufDeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-00002-of-00005.ggufDeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-00003-of-00005.ggufDeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-00004-of-00005.ggufDeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-00005-of-00005.gguf
Running
Needs the DeepSeek-V4.1 llama.cpp build used for cliecy/DeepSeek-V4.1-Flash-1017-UD-IQ2XS-GGUF (its README has the patch and prebuilt binaries). Settings used for all tests (2 GPUs, engram table on CPU / page cache):
llama-server -m <first shard> -ngl 999 -fa on -sm layer -ts 48,52 -ot engram_embd.weight=CPU -lm none -lzm off -t 16 \
-c 32768 -np 1 --jinja --chat-template-file deepseek-ai-DeepSeek-V4.1-Flash.jinja
Serving guards for this coding-only model (DRY anti-repetition + thinking budget). Guard v1 measured on V6: HumanEval-zh 92.7 % (no harm to code), fixes some loops but not short-line loops:
--dry-multiplier 0.8 --dry-allowed-length 4 --reasoning-budget 4096 --reasoning-budget-message 思考已足够,现在直接给出答案。
Do not use guard v2 (no DRY sequence breakers, 2048-token window): it breaks code, HumanEval-zh 85.4 % → 42.7 % on V6e:
--dry-multiplier 0.8 --dry-allowed-length 4 --dry-penalty-last-n 2048 --dry-sequence-breaker none --reasoning-budget 2048 --reasoning-budget-message 思考已足够,现在直接给出答案。
Eval settings: KLD and top-1 agreement vs V0 logits with llama-perplexity --kl-divergence, ctx 2048, 16384 tokens per
domain; Q&A temperature 0.6; HumanEval-zh greedy, max 6000 tokens, every 2nd problem (82).
- Downloads last month
- 144
We're not able to determine the quantization variants.
Model tree for cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF
Base model
deepseek-ai/DeepSeek-V4.1-Flash-1017
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf cliecy/DeepSeek-V4.1-Flash-1017-V6e-codezh-reap176gen16-IQ2XS-GGUF