Even at 4-bit, this 763B model needs about 420 GB of memory. Run it with ZK Inference instead: pay anonymously, and personal details stay hidden.
DeepSeek-V4.1-Flash-1017 is a minor update to DeepSeek-V4.1-Flash, delivering substantial improvements across reasoning, coding, agentic tasks, and visual benchmarks. Alongside these gains, the model reduces task execution time and output length, enabling users to complete tasks faster and at lower cost and advancing the performance–cost Pareto frontier across multiple agent harnesses.
| Benchmark | DS-V4.1-Flash-1017 | DS-V4.1-Flash | K3 | GLM-5.3 | GPT-5.6 Sol | Opus 5 |
|---|---|---|---|---|---|---|
| HLE w/o tools | 42.6 (44.0†) | 36.8 (39.1†) | 43.5 | 42.0† | 44.5 | 56.3 |
| Terminal-Bench 4.0 | 42.3 | 31.2 | 12.6 | 37.9 | 39.9 | 51.8 |
| DeepSWE v1.1 | 77.0 | 74.2 | 67.5 | 66.9 | 73.0 | 74.0 |
| ProgramBench | 29.1 | 20.3 | 17.5 | 19.0 | 23.0 | 37.0 |
| NL2Repo-Bench | 68.2 | 65.4 | 58.0 | 58.0 | 56.8 | 75.3 |
| Automation-Bench v1.0.6 | 60.5 | 54.8 | 46.7 | 48.8 | 45.8 | 50.3 |
| Agents’ Last Exam | 35.4 | 31.8 | 27.6 | 28.5 | 26.7 | 28.6 |
| Apex Bench v1.1 | 72.1 | 64.6 | 47.8 | 56.6 | 54.3 | 65.8 |
| Chartography (w/tools) | 83.0 | 78.9 | 68.1 | — | 79.9 | 84.0 |
| BabyVision (w/tools) | 92.5 | 89.6 | 85.7 | — | 88.9 | 94.1 |
| ZeroBench-main (w/tools) | 51.0 | 49.0 | 41.0 | — | 53.0 | 52.0 |
† denotes the text-only subset of HLE. We use the Claude Code harness for Terminal-Bench 4.0 and the Mini-SWE-V2 harness for DeepSWE v1.1.
This release does not include a Jinja-format chat template. The encoding folder contains a self-contained Python reference implementation (encoding.py) with test cases for multi-turn conversations, tool calling, thinking mode, numeric reasoning effort, mid-conversation system messages, and interleaved image content.
For production use, we additionally release deepseek-recipe, a set of Rust libraries with Python bindings that provides the same prompt format as a maintained, protocol-aware toolkit. It converts Messages, Chat Completions, and Responses API requests into the Conversation format, encodes them into DeepSeek V4 and V4.1 prompts or token IDs, and parses model output back into complete or streamed responses — covering thinking, tool calls, images, and generation settings. Model inference, tool execution, and HTTP transport are left to the caller.
Please refer to the inference folder for instructions on weight conversion and running inference locally.
Recommended sampling parameters:
| Parameter | Value |
|---|---|
temperature |
1.0 |
top_p |
1.0 |
context_window |
1M tokens |
max_tokens |
≥ 256K |
This repository and the model weights are licensed under the MIT License.
@misc{deepseekai2026deepseekv41flash,
title={DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression},
author={DeepSeek-AI},
year={2026},
}
If you have any questions, please raise an issue or contact us at service@deepseek.com.
model-00048-of-00048.safetensors 95 GiBmodel-00047-of-00048.safetensors 95 GiBmodel-00017-of-00048.safetensors 6.9 GiBmodel-00005-of-00048.safetensors 6.9 GiBmodel-00011-of-00048.safetensors 6.9 GiBmodel-00023-of-00048.safetensors 6.9 GiBmodel-00027-of-00048.safetensors 6.9 GiBmodel-00031-of-00048.safetensors 6.9 GiBmodel-00035-of-00048.safetensors 6.9 GiBmodel-00039-of-00048.safetensors 6.9 GiBmodel-00013-of-00048.safetensors 6.9 GiBmodel-00014-of-00048.safetensors 6.9 GiBmodel-00015-of-00048.safetensors 6.9 GiBmodel-00016-of-00048.safetensors 6.9 GiBmodel-00018-of-00048.safetensors 6.9 GiBmodel-00019-of-00048.safetensors 6.9 GiBmodel-00020-of-00048.safetensors 6.9 GiBmodel-00021-of-00048.safetensors 6.9 GiBmodel-00022-of-00048.safetensors 6.9 GiBmodel-00024-of-00048.safetensors 6.9 GiBmodel-00025-of-00048.safetensors 6.9 GiBmodel-00026-of-00048.safetensors 6.9 GiBmodel-00028-of-00048.safetensors 6.9 GiBmodel-00029-of-00048.safetensors 6.9 GiBmodel-00030-of-00048.safetensors 6.9 GiBmodel-00032-of-00048.safetensors 6.9 GiBmodel-00033-of-00048.safetensors 6.9 GiBmodel-00034-of-00048.safetensors 6.9 GiBmodel-00036-of-00048.safetensors 6.9 GiBmodel-00037-of-00048.safetensors 6.9 GiBmodel-00038-of-00048.safetensors 6.9 GiBmodel-00040-of-00048.safetensors 6.9 GiBmodel-00041-of-00048.safetensors 6.9 GiBmodel-00042-of-00048.safetensors 6.9 GiBmodel-00003-of-00048.safetensors 6.9 GiBmodel-00004-of-00048.safetensors 6.9 GiBmodel-00006-of-00048.safetensors 6.9 GiBmodel-00007-of-00048.safetensors 6.9 GiBmodel-00008-of-00048.safetensors 6.9 GiBmodel-00009-of-00048.safetensors 6.9 GiBmodel-00010-of-00048.safetensors 6.9 GiBmodel-00012-of-00048.safetensors 6.9 GiBmodel-00046-of-00048.safetensors 2.5 GiBmodel-00044-of-00048.safetensors 2.5 GiBmodel-00045-of-00048.safetensors 2.4 GiBmodel-00002-of-00048.safetensors 1.2 GiBmodel-00043-of-00048.safetensors 1.2 GiBmodel-00001-of-00048.safetensors 926 MiBBRRR_FUSED_DECODER=0 vllm serve nvidia/DeepSeek-V4.1-Flash-1017-NVFP4 --served-model-name nvfp4-1017 --host 0.0.0.0 --port 8641 --tensor-parallel-size 4 --gpu-memory-utilization 0.96 --max-model-len 1048576 --max-num-seqs 16 --reasoning-parser deepseek_v41 --enable-auto-tool-choice --tool-call-parser deepseek_v41 --max-num-batched-tokens 4096 --attention-backend B12X --moe-backend b12x --kv-cache-dtype fp8 --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"probabilistic","rejection_sample_method":"block","enable_adaptive_verification":false,"attention_backend":"B12X","moe_backend":"b12x"}' --override-generation-config '{"temperature":1.0,"top_p":1.0}' --tokenizer-mode deepseek_v41 --mm-processor-cache-gb 1 --linear-backend b12x --engram-config '{"projection_tp":true}' --block-size 256 --swa-block-size 128 --compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' --max-cudagraph-capture-size 128 --async-scheduling --enable-scale-out --enable-prompt-tokens-details --default-chat-template-kwargs '{"thinking":false}'View run on LocalMaxxing vllm serve /root/.cache/huggingface/hub/models--deepseek-ai--DeepSeek-V4.1-Flash-1017/snapshots/1bae0e1088993b9b82de08f59de5be5a34e42170 --revision 1bae0e1088993b9b82de08f59de5be5a34e42170 --tokenizer-mode deepseek_v41 --tensor-parallel-size 4 --tool-call-parser deepseek_v41 --enable-auto-tool-choice --reasoning-parser deepseek_v41 --mm-encoder-tp-mode data --block-size 64 --enable-expert-parallel --speculative-config '{"method":"dspark","num_speculative_tokens":5,"revision":"1bae0e1088993b9b82de08f59de5be5a34e42170","enable_adaptive_verification":true,"use_local_argmax_reduction":true}' --gpu-memory-utilization 0.95 --max-num-batched-tokens 4096 --compilation-config '{"max_cudagraph_capture_size":768,"cudagraph_capture_sizes":[1,2,4,6,8,12,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256,272,288,304,320,336,352,368,384,400,416,432,448,464,480,496,512,528,544,560,576,592,608,624,640,656,672,688,704,720,736,752,768]}' --served-model-name deepseek-ai/DeepSeek-V4.1-Flash-1017View run on LocalMaxxing vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017 -pp 4 --max-model-len 40960 --max-num-seqs 8 --max-num-batched-tokens 4096 --gpu-memory-utilization 0.96 --kv-cache-dtype fp8 --block-size 128 --reasoning-parser deepseek_v41 --speculative-config '{"method":"dspark","num_speculative_tokens":5}' --engram-config '{"cpu_offload":true,"storage":"disk"}' # Zanooda sm_80 image + Revamp import hook, EXL3 2.9 bpw routed experts (LibertAI)View run on LocalMaxxing vllm serve /model --served-model-name dsv41 --trust-remote-code --tensor-parallel-size 4 --pipeline-parallel-size 2 --max-model-len 1048576 --block-size 128 --gpu-memory-utilization 0.95 --kv-cache-dtype fp8 --max-num-batched-tokens 4096 --max-num-seqs 32 --long-prefill-token-threshold 1024 --speculative-config '{"method":"dspark","num_speculative_tokens":5,"use_local_argmax_reduction":true}' --engram-config '{"storage":"disk","disk_threads":32}' --reasoning-parser deepseek_v41 --tool-call-parser deepseek_v41 --enable-auto-tool-choice # env VLLM_PP_LAYER_PARTITION=20,20 VLLM_ALLREDUCE_Q8_PCIE=1 VLLM_ALLREDUCE_Q8_PCIE_MAX_NUMEL=16777216 VLLM_X299_LAZY_PP_RECV=1View run on LocalMaxxing cd bnk && ./run.sh ds-xs # bnk server; engine launched as: build/bnk serve --model ~/.cache/huggingface/hub/models--ISTA-DASLab--DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF/snapshots/85caaf74bcbc760eb163518043e8a93954347c1b/DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XS-00001-of-00004.gguf --ctx 262144 --park-gib 24.0 --slots 1 --gpus all --mtp ~/.cache/bnk/dspark/DeepSeek-V4.1-Flash-1017-DSpark.gguf --draft 5 --draft-vocab ~/.cache/bnk/draft-vocab-DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XS.bin --counts ~/.cache/bnk/counts-DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ2_XS.bnkc --vram-reserve-gib 1.0View run on LocalMaxxing
llama-server -m IQ2_XXS/DeepSeek-V4.1-Flash-1017-GSQ-RCO-Coder-IQ2_XXS-00001-of-00006.gguf -ngl 999 -c 1048576 -np 1 -fa on -fit offView run on LocalMaxxing
Median of 164 community runs on 14 setups, from LocalMaxxing.
Run it yourself: setup guideISTA-DASLab/DeepSeek-V4.1-Flash-1017-GSQ-RCO-GGUF Magnet 5