| Model version | DeepSeek-V4.1-Flash-1017, released by DeepSeek on 2026-10-17 |
| Source checkpoint | deepseek-ai/DeepSeek-V4.1-Flash-1017, commit 1bae0e10 |
| Previous version | DeepSeek-V4.1-Flash (the first V4.1 release), on the v4.1-flash-previous branch |
The file names did not change between versions. The 1017 files carry general.version = 1017 in the
GGUF header, the previous files have no general.version.
These files are built for mx-llama.cpp, a fork of llama.cpp focused on multi-GPU inference: layer pipeline parallelism, tensor parallelism (
-sm tensor) with a custom AllReduce, and DSpark / MTP speculative decoding. Prebuilt AMD / ROCm and NVIDIA / CUDA images are on Docker Hub at mxxm/mx-llama.cpp.
deepseek-ai/DeepSeek-V4.1-Flash-1017
converted to GGUF, plus its DSpark draft stages as a separate sidecar file and its vision encoder as an
mmproj file, so the model takes image input. DeepSeek's original model card follows below.
Image input needs a current mx-llama.cpp build. Since 2026-11-17 the main files carry the 40 image routing-bias tensors (
blk.N.exp_probs_b_vl.bias). Builds from before DeepSeek-V4.1 image support stop at load with a tensor-count error. Text-only prompts produce the same output as before.
| file | size | notes |
|---|---|---|
DeepSeek-V4.1-Flash-MXFP4-00001-of-00012.gguf .. -00012-of-00012.gguf |
375.8 GiB total | main model, routed experts MXFP4 |
DeepSeek-V4.1-Flash-DSpark-MXFP4.gguf |
7.43 GiB | DSpark draft stages, not a standalone model |
mmproj-DeepSeek-V4.1-Flash-1017-F16.gguf |
0.90 GiB | vision encoder and projector, F16 |
Shards 00009 and 00011 each hold one Engram table (about 97 GiB together). They are read at random
during prompt processing and stay on disk rather than in VRAM, so they belong on the fastest storage
you have.
The sidecar holds the three mtp.* draft stages, 128 routed experts each with 3 active, plus the
DSpark heads. It taps the attention input of target layers 37, 38 and 39. It is a draft model for
speculative decoding against the main file and cannot generate on its own.
The mmproj holds the 32-layer vision encoder, the 3x3 patch merger, the projector and the image
start, end and newline embeddings. Image routing biases live in the main files, because the language
model's MoE router uses them on image tokens.
The weights occupy roughly 288 GiB across ten cards with -sm layer and 305 GiB with -sm tensor -tps 2. An example command:
GGML_ENABLE_CUSTOM_AR=1 HSA_FORCE_FINE_GRAIN_PCIE=1 GPU_MAX_HW_QUEUES=8 \
llama-server -m DeepSeek-V4.1-Flash-MXFP4-00001-of-00012.gguf \
-sm layer -ngl 99 -fit off \
-c 32768 -b 8192 -ub 256 -fa 1 -lm dio
-md DeepSeek-V4.1-Flash-DSpark-MXFP4.gguf --spec-type draft-dspark --spec-draft-n-max 3 for
DSpark speculative decoding.-sm tensor -tps N also works, for N of 1, 2, 4 or 8. On ten MI50 over PCIe -sm layer is faster
for both prompt processing and generation.reasoning_content.--mmproj mmproj-DeepSeek-V4.1-Flash-1017-F16.gguf to llama-server, or run
llama-mtmd-cli with the same -m and --mmproj and pass --image photo.jpg. Images are resized
to at most 1024 image tokens, as DeepSeek's own preprocessor does.-c 32768 on ten 32 GB cards need --no-mmproj-offload: the
drafter, the vision encoder and the image buffers do not fit on the first card together. Image
prompt processing then runs the encoder on the CPU, 10 to 20 seconds per image here.Routed experts are repacked from the checkpoint's own FP4 to MXFP4, a format change rather than a requantization. FP8 block-scaled tensors are dequantized and stored Q8_0. Norms, hyper-connection coefficients, the router bias and the image router bias stay F32. The router, markov and confidence weights stay BF16. No weights were retrained, fine-tuned or otherwise altered.
Checked against the source checkpoint: every declared tensor is present, FP8 tensors dequantize to the
source values, the sidecar accounts for all 69 mtp.* tensors, and the Engram hash tables reproduce
the reference engram.py derivation. The vision encoder reproduces DeepSeek's vision.py image
embeddings on the shipped example images (per-token cosine 0.99997 or better on identical pixels).
MIT, inherited from the base model. A copy is included in this repository as LICENSE, as its terms
require. Copyright (c) 2023 DeepSeek.
Reproduced from deepseek-ai/DeepSeek-V4.1-Flash-1017, unchanged except that its relative links now point to that repository.
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.
DeepSeek-V4.1-Flash-MXFP4-00011-of-00012.gguf 52 GBDeepSeek-V4.1-Flash-MXFP4-00009-of-00012.gguf 52 GBDeepSeek-V4.1-Flash-MXFP4-00001-of-00012.gguf 39 GBDeepSeek-V4.1-Flash-MXFP4-00002-of-00012.gguf 39 GBDeepSeek-V4.1-Flash-MXFP4-00003-of-00012.gguf 39 GBDeepSeek-V4.1-Flash-MXFP4-00004-of-00012.gguf 39 GBDeepSeek-V4.1-Flash-MXFP4-00005-of-00012.gguf 39 GBDeepSeek-V4.1-Flash-MXFP4-00006-of-00012.gguf 39 GBDeepSeek-V4.1-Flash-MXFP4-00007-of-00012.gguf 39 GBDeepSeek-V4.1-Flash-MXFP4-00008-of-00012.gguf 29 GBDeepSeek-V4.1-Flash-MXFP4-00010-of-00012.gguf 167 MBDeepSeek-V4.1-Flash-MXFP4-00012-of-00012.gguf 167 MBdeepseek-ai/DeepSeek-V4.1-Flash-1017