AI Infrastructure

DeepSeek V4.1 Flash: Size, Hardware Requirements and How to Run It Locally

DeepSeek V4.1 Flash replaced V4 Flash on DeepSeek's API on 10 September 2026, and a weight update called 1017 followed on 17 October. This guide covers what changed, how large the official and community builds are, which GPU servers, workstations and Macs can hold them, how to serve them with vLLM, SGLang or llama.cpp, and what the API costs instead, all checked on 4 November 2026.

DeepSeek V4.1 Flash is an MIT-licensed multimodal mixture-of-experts model with a 552-billion-parameter backbone, 196.6 billion parameters of Engram n-gram memory, and 8 billion active parameters per prompt token or 16 billion per generated token. Its 510 GB checkpoint fits one 8-GPU H200 node, or four of its GPUs once the 183 GiB of Engram tables move to host memory. Locally, a 512 GB Mac Studio holds a 3- or 4-bit build, while a single 128 GB machine needs SSD streaming.

DeepSeek calls V4.1 Flash the smallest model in its new architecture family, yet the download is three times the size of the V4 Flash it replaced. Searches for it mix three things: the open weights, the 1017 update and the API that serves both. This guide keeps them apart.

Model cards, configuration files, serving recipes and DeepSeek’s API pages were read on 4 November 2026, and memory figures follow the method of our LLM VRAM calculator. The checks a security team should run before a pilot are in our DeepSeek provenance and risk review.

DeepSeek V4.1 Flash at a glance

DeepSeek V4.1 Flash
VersionsLaunch release, 10 September 2026; 1017 update, 17 October 2026
Hugging Facedeepseek-ai/DeepSeek-V4.1-Flash and deepseek-ai/DeepSeek-V4.1-Flash-1017
Parameters552B backbone plus 196.6B of Engram memory; 763B in Hugging Face’s count
Active parameters8B per prompt token, 16B per generated token
Architecture40 layers, a 20-layer causal encoder and a 20-layer decoder; 384 routed experts, 6 per token, plus 1 shared
Context1,048,576 tokens
InputText and images
Global KV cache890 bytes per token
Weights510.3 GB; routed experts in FP4, most other weights in FP8
ReasoningThinking on or off; effort is an integer from 1 to 100
LicenceMIT

The suffixes are dates. V4-Flash-0731 shipped on 31 July 2026, V4-Pro-0813 on 13 August and V4.1-Flash-1017 on 17 October. The 1017 checkpoint keeps the launch model’s architecture, configuration, tokenizer and size, and only the weights changed. DeepSeek reports gains on its own tests, such as Terminal-Bench 4.0 rising from 31.2 to 42.3 and DeepSWE v1.1 from 74.2 to 77.0, along with shorter outputs. Its API, web chat and app moved to 1017 the same day, and vLLM’s recipe now defaults to it.

The technical report, DeepSeek_V41_Tech_Report.pdf, sits in the launch repository on Hugging Face. vLLM labels the launch weights “0909”, while DeepSeek’s change log dates the release 10 September.

What changed from DeepSeek V4 Flash

DeepSeek-V4-Flash-0731DeepSeek-V4.1-Flash
Parameters284B, 13B active552B plus 196.6B Engram; 8B or 16B active
Layers4340, split into encoder and decoder
Routed experts256, 6 per token384, 6 per token
AttentionCompressed sparse attention, ratios 4 and 128CSA2 with ratios 1 and 2, latents shared across layers, two-stage indexer
InputTextText and images
Reasoning effortlow, high, maxInteger from 1 to 100
Weights166.9 GB510.3 GB
DeepSeek API, 4 November 2026Retired; old names now reach V4.1-Flash-1017deepseek-flash

Three changes decide the hardware. Engram adds two hash tables of about 384 million rows each, looked up by 2- to 4-gram hashes of the input: 196.6 billion parameters, or 183 GiB in FP8, read only a few rows at a time, so engines can keep them off the GPU. The encoder-decoder split means a prompt token passes through only the 20-layer encoder, hence 8 billion active parameters in prefill and 16 billion in decode. And compressed latents, stored in FP4 and shared between layers, bring the global KV cache to 890 bytes per token, about a quarter of V4 Flash’s, so a million-token prompt holds under 1 GB of it plus a 128-token sliding window per layer.

DeepSeek trained V4.1 Flash from scratch on 45 trillion multimodal tokens. One setting catches people out: the API maps low, high and max effort to 50, 75 and 100, while the open encoder that vLLM uses maps low, high, xhigh and max to 25, 50, 75 and 100. Send an integer to get the same behaviour everywhere.

DeepSeek V4.1 Flash size: official and community builds

vLLM’s recipe breaks the official 510.3 GB down: routed and draft experts in MXFP4 take 259.5 GiB, the Engram tables 183.1 GiB, block scales 21.9 GiB, attention and dense layers 6.9 GiB, and the BF16 embedding and output head 3.9 GiB. Because DeepSeek already ships the experts in FP4, a 4-bit conversion saves little.

BuildPublisherTotalWithout Engram tables
As released, FP4 experts and FP8DeepSeek510.3 GB313.7 GB
NVFP4NVIDIA429.0 GB–
MLX, original experts, 4-bit Engram tablesmlx-community432.0 GB309.1 GB
GGUF UD-Q4_K_XLUnsloth500.7 GB297.9 GB
GGUF Q4_K_Mmrfakename444.7 GB–
GGUF UD-IQ3_XXSUnsloth394.7 GB233.5 GB
GGUF UD-Q2_K_XLUnsloth334.8 GB199.6 GB
GGUF UD-IQ2_XXSUnsloth300.5 GB165.3 GB
GGUF UD-IQ1_SUnsloth233.0 GB122.4 GB
DwarfStar q2antirez/ds4341 GiB152 GiB
DwarfStar q4antirez/ds4483 GiB294 GiB

Unsloth measured top-1 agreement with the official model of 82.8% for UD-IQ1_S, 91.5% for UD-Q2_K_XL, 94.6% for UD-IQ3_XXS and 98.2% for UD-Q4_K_XL on its wiki test. Across six benchmarks, UD-Q2_K_XL averaged 87.49 against 87.68 for Unsloth’s near-lossless build, and UD-IQ1_S 83.53.

Where the Engram tables can live

  • vLLM pins them in host memory with --engram-config '{"cpu_offload":true}'; on H200 at four-way tensor parallelism that frees 23.6 GiB per GPU, with unchanged output.
  • SGLang moves them to host memory with --engram-config '{"placement": "cpu"}', one huge-page shard per rank.
  • llama.cpp reads rows from the memory-mapped GGUF on demand with --lazy-mode on, so the table can stay on SSD; Unsloth’s figures without Engram assume this.
  • DwarfStar never loads the tables and reads rows from the file in every mode, so the GGUF belongs on a fast local SSD.

DeepSeek V4.1 Flash hardware requirements

Weights decide the hardware, because the cache is small. Using the calculator’s rule, 90% of GPU memory and 80% of unified memory count as usable, and each configuration must hold its resident weights plus a few gigabytes per GPU for cache, buffers and the vision encoder.

GPU servers

ConfigurationEngram tablesvLLM recipe notes
8× H200, 141 GB eachResident, or host memory at TP4The whole checkpoint fits one node; at TP4 with offload, 81.2 GiB of weights and 38.5 GiB of cache per GPU, about 20 million tokens
8× H100, 80 GB eachHost memoryTP8, with batched tokens capped at 4,096
B200, GB200, GB300Host memoryTP2 per replica; one 768 GB GB200 NVL4 tray holds it at TP4
AMD MI300X, 192 GBHost memoryTP4 at about 81 GiB per rank; TP2 does not fit
AMD MI325X, MI355XHost memoryTP2
NVIDIA DGX Station GB300Host memory, plus 60 GB of routed expertsOne GPU, the full 1,048,576-token window and 24 sequences

Engram offload needs about 183 GiB of pinned host memory on top of the operating system. Our Kimi K3 walkthrough applies the same per-GPU arithmetic to a model that genuinely needs several nodes.

Workstations with 96 to 128 GB

No vLLM or SGLang configuration targets a single 96 GB card or a 128 GB desk-side system, which leaves two routes. A workstation with a 96 GB RTX PRO 6000 and plenty of system RAM can keep the routed experts in that RAM with llama.cpp’s --cpu-moe and the Engram table on SSD; Unsloth’s UD-Q2_K_XL then needs about 200 GB of RAM and VRAM together, and generation runs at the speed of system memory. Alternatively, DwarfStar, which supports a DGX Spark through CUDA, streams its 2-bit build from SSD on one 128 GB Spark, or splits it across two Sparks over RDMA with about 81 GiB of main weights on each.

By our 80% rule, no single 128 GB machine holds any build’s main weights. Unsloth lists its 122.4 GB 1-bit set for 128 GB systems such as a MacBook or a DGX Spark, which leaves under 6 GB for the system, cache and runtime. Treat single-Spark V4.1 Flash as an experiment; our desk-side hardware comparison covers what each machine holds.

Mac Studio

The M5 Ultra Mac Studio comes with 96, 256 or 512 GB at 1.2 TB/s. A 512 GB model offers about 410 GB by our rule: enough for Unsloth’s UD-IQ3_XXS fully resident at 394.7 GB, or its UD-Q4_K_XL at 297.9 GB with the Engram tables left on SSD. DwarfStar’s README says its 4-bit build is fully resident on a 512 GB Mac, with Engram rows read from disk. A 256 GB model offers about 205 GB, enough for Unsloth’s UD-Q2_K_XL or UD-IQ2_XXS without Engram, or for DwarfStar’s 2-bit build. The 432 GB MLX conversion needs the 512 GB model and still passes our 80% line. Our M5 Ultra Mac Studio guide covers the machine.

Serving DeepSeek V4.1 Flash with vLLM, SGLang, llama.cpp and Ollama

vLLM

Use vLLM 0.31.0 or newer. The architecture arrived in 0.30.0, and 0.31.0 added a KV-offload fix and the gate that lets AMD GPUs offload Engram; 0.32.0, released on 18 October, was current on 4 November. The recipe’s command for an 8-GPU H200 node uses four of its GPUs:

export VLLM_ENGINE_READY_TIMEOUT_S=3600
vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017 \
  --tokenizer-mode deepseek_v41 \
  --tensor-parallel-size 4 \
  --engram-config '{"cpu_offload":true}' \
  --tool-call-parser deepseek_v41 \
  --enable-auto-tool-choice \
  --reasoning-parser deepseek_v41 \
  --mm-encoder-tp-mode data

The first load is slow, hence the hour-long timeout. Add --language-model-only for text-only work. Speculative decoding uses DeepSeek’s own DSpark drafter, which adds about 14 billion parameters; V4.1 has no MTP module. With thinking settings left unset, vLLM thinks at effort 50, so a small max_tokens can return empty content.

SGLang

SGLang’s cookbook covers V4.1 Flash on H200, B200, B300, GB300 and AMD MI355X. When we checked, it pointed NVIDIA users to the preview container lmsysorg/sglang:dev-dsv41 rather than a pip release, although release 0.5.23 of 2 November lists further V4.1 work. Thinking is off by default in SGLang, the reverse of vLLM, and the deepseekv41 tool-call parser is required.

llama.cpp

llama.cpp merged V4.1 Flash support on 25 October 2026 in pull request #31086; the separate pull request that Unsloth’s guide builds from, #30817, was closed without merging two days later. Early GGUF files have needed re-uploads: an issue opened on 29 October reported Unsloth’s files failing on the main branch, and a 1 November comment says UD-Q2_K_XL loads after the update. Pin both the llama.cpp build and the GGUF revision. Unsloth’s command keeps the Engram table out of GPU memory:

./llama.cpp/llama-cli \
  --model unsloth/DeepSeek-V4.1-Flash-1017-GGUF/UD-Q2_K_XL/DeepSeek-V4.1-Flash-1017-UD-Q2_K_XL-00001-of-00007.gguf \
  --temp 1.0 --top-p 1.0 --top-k 0 --min-p 0.0 \
  --chat-template-kwargs '{"reasoning_effort":75}' \
  --load-mode mmap --lazy-mode on \
  --override-tensor "per_layer_token_embd.weight=CPU"

DwarfStar and Ollama

DwarfStar (ds4) is an open-source engine from the antirez/ds4 repository, built around a handful of large models and its own GGUF files. It runs V4.1 Flash text and images on Apple’s Metal, and text on CUDA, including a DGX Spark. Its README says it is developed with strong assistance from AI coding agents, so review it like any new dependency.

Ollama’s library lists only deepseek-v4.1-flash:cloud and deepseek-v4.1-flash:1017-cloud, which run on Ollama’s servers at $0.30 per million input tokens and $1.20 per million output tokens at peak, so prompts leave your machine. LM Studio’s catalogue had no V4.1 Flash entry on 4 November. Our vLLM, Ollama and llama.cpp comparison covers the engines more generally.

DeepSeek V4.1 Flash API or your own hardware

DeepSeek’s API prices per million tokens, as of 4 November 2026:

deepseek-flash (V4.1-Flash-1017)deepseek-v4-pro (V4-Pro-0813)
Input, cache hit$0.006 peak, $0.003 off-peak$0.044 peak, $0.022 off-peak
Input, cache miss$0.30 peak, $0.15 off-peak$1.32 peak, $0.66 off-peak
Output$1.20 peak, $0.60 off-peak$3.96 peak, $1.98 off-peak
Context, maximum output1M, 384K1M, 384K
Image inputYesNo

Peak hours run from 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, excluding Chinese public holidays. The legacy names deepseek-v4-flash and deepseek-v4-flash-vision-exp still work but now reach V4.1-Flash-1017.

Price is only part of the choice. API calls go to DeepSeek, whose privacy policy says that to provide its services it collects, processes and stores personal data in the People’s Republic of China. Weights on your own servers, with no outbound route, send nothing anywhere, and they change only when you change them, whereas an API name can move to new weights overnight, as deepseek-flash did on 17 October. Our guide to whether DeepSeek is safe compares the app, the API and local weights.

DeepSeek V4.1 Flash vs GLM-5.3-Flash, Qwen 3.8 and V4 Pro

DeepSeek-V4.1-FlashDeepSeek-V4-Pro-0813GLM-5.3-FlashQwen3.8-Flash-NextQwen3.8-27B
Parameters552B plus 196.6B Engram; 8B or 16B active1.6T, 49B active320B, 18B active125B plus a 51B n-gram table; 6B active27.8B dense
Context1M1M1M262K, 1M with YaRN262K, 1M with YaRN
InputText, imagesTextText, imagesText, images, videoText, images, video
LicenceMITMITMITQwen Community License 1.0Apache 2.0
Published weights510.3 GB892.8 GB328.3 GB FP8185.6 GB FP830.9 GB FP8
Smallest machine by our rule256 GB Mac, Engram on SSD8× H200128 GB at 1-bit128 GB at 4-bit24 GB GPU at 4-bit

Against V4 Pro, DeepSeek’s own maximum-effort table has the newer Flash ahead on most agent tests, for example 74.2 against 62.7 on DeepSWE v1.1 and 90.6 against 87.9 on Terminal-Bench 2.1. Pro keeps an edge in knowledge: its base model scores 55.2 on SimpleQA-Verified against 42.3. It also reads text only, weighs almost 900 GB and costs three to four times as much per token on the API. DeepSeek’s launch post expected a V4.1 Pro; none was listed on 4 November 2026.

GLM-5.3-Flash and Qwen3.8 sit in lighter classes. GLM-5.3-Flash’s 4-bit builds fit 256 GB, as our GLM-5.3 sizing guide shows, and Qwen3.8 starts at a single 24 GB GPU, as our Qwen 3.8 hardware guide explains. For smaller cards, our picks by VRAM size apply.

DeepSeek V4.1 Flash licence

Both V4.1 repositories state that the repository and the weights are licensed under the MIT License, and the LICENSE file is the standard MIT text with “Copyright (c) 2023 DeepSeek”. The weights are free to download and use: the licence sets no fees, user thresholds, naming rules or acceptable-use policy, and asks only that you keep the notice with any copies you pass on. Conversions carry their own tags, and NVIDIA’s NVFP4 build, Unsloth’s GGUFs and the MLX conversion are also marked MIT on Hugging Face.

How VDF AI fits

Running V4.1 Flash on your own hardware settles where prompts go. It does not settle who may use the model, for which tasks and with which documents. VDF AI handles that on premises or in a private cloud, with policy-bound agents, multi-agent workflows in Networks, retrieval over company documents that keeps their permissions, audit logs and role-based access control on every plan.

VDF AI Router can register a vLLM endpoint serving V4.1 Flash beside other local models and any cloud models you approve, and in air-gap mode it keeps every request on local models. DeepSeek says it optimised the 1017 update for its own DeepSeek Harness, among other tools. VDF AI does not run or integrate with DeepSeek Harness; VDF Code is its own governed coding assistant for infrastructure you control. On-prem bundles can begin with a three-month platform trial.

Sources

DeepSeek model cards, API pages, serving recipes and community builds checked 4 November 2026.


Weighing DeepSeek’s API against your own servers? See how VDF AI Router keeps local models under one governed endpoint, or book a demo.

Frequently asked questions

How big is DeepSeek V4.1 Flash?

DeepSeek lists a 552-billion-parameter backbone plus 196.6 billion parameters of Engram n-gram memory; Hugging Face counts 763 billion with the vision encoder and draft head included. Only 8 billion parameters are active per prompt token and 16 billion per generated token. The official checkpoint is 510.3 GB in 48 files, with routed experts in FP4 and most other weights in FP8, and Unsloth's GGUF builds run from 233.0 GB at 1-bit to 500.7 GB at 4-bit.

What is DeepSeek V4.1 Flash 1017?

It is the weight update DeepSeek released on 17 October 2026, named after its date in the same way as V4-Flash-0731 and V4-Pro-0813. Architecture, configuration, tokenizer and the 510 GB size are unchanged from the launch release of 10 September. DeepSeek reports higher scores with shorter outputs, for example 42.3 against 31.2 on Terminal-Bench 4.0, and its API, web chat and app switched to 1017 the same day.

What is the difference between DeepSeek V4.1 Flash and V4 Flash?

V4.1 Flash is a new and much larger architecture rather than an update. V4-Flash-0731 has 284 billion parameters with 13 billion active, reads text only and downloads at 166.9 GB. V4.1 Flash adds Engram memory, splits its 40 layers into an encoder and a decoder, reads images, shrinks the KV cache to about a quarter and weighs 510.3 GB. DeepSeek retired V4 Flash on its API on 10 September 2026.

Can DeepSeek V4.1 Flash run on a Mac Studio or DGX Spark?

A 512 GB Mac Studio can. Unsloth's 394.7 GB UD-IQ3_XXS build fits in memory under our sizing rule, and its 4-bit build fits when the Engram tables are read from SSD. A 256 GB Mac holds the 2-bit builds with Engram on SSD. One 128 GB DGX Spark cannot hold any build's main weights by our rule; the DwarfStar engine streams its 2-bit build from SSD on one Spark or splits it across two.

How much does the DeepSeek V4.1 Flash API cost?

As of 4 November 2026, the deepseek-flash model, which serves V4.1-Flash-1017, costs $0.30 per million input tokens on a cache miss, $0.006 on a cache hit and $1.20 per million output tokens at peak rates, with off-peak rates at half those prices. Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, excluding Chinese public holidays. The weights themselves are free to download under the MIT License.

Can I run DeepSeek V4.1 Flash with Ollama?

Not on your own machine, as of 4 November 2026. Ollama's library lists only deepseek-v4.1-flash:cloud and deepseek-v4.1-flash:1017-cloud, which run on Ollama's servers, so prompts leave your network. For local use, run a GGUF build with llama.cpp, which merged support for the architecture on 25 October 2026, or serve the official weights with vLLM or SGLang on GPU servers.

Filed under
DeepSeekDeepSeek V4.1open-weight modelsmixture of expertslocal LLMmodel serving
On-Prem AI

Plan your on-prem AI deployment

Book an architecture call and we will scope a private, on-prem AI deployment for your environment — integrations, hardware, and governance included.

Keep reading