Paths, 15 steps in four parts after an overview, none written yet
DeepSeek-V4.1-Flash
DeepSeek-V4.1-Flash, updated as the 1017 model on 17 October 2026, is a 552B mixture-of-experts language model with a one-million-token context and a key-value cache of 890 bytes per token. This path teaches what is needed to follow how it was built: the memory a long context costs, experts and sparse attention, four-bit numbers, the architecture, the training, how it is served, and what an independent safety evaluation found.
Builds on Inside a language model, four steps: start there if its topics are new to you.
none read yet
No step is written yet.Map
A language model that reads a million tokens has to remember something about every one of them, and that memory, the key-value cache, becomes the main cost of serving it. DeepSeek’s report on V4.1-Flash is about pushing that cost down: a causal encoder-decoder that halves the work of reading a prompt, attention that shares its cache across layers, and a cache stored in four-bit numbers. This path explains it from the bottom up.
Part 1 teaches the costs and the tools: the key-value cache, mixtures of experts, sparse attention and quantisation. Part 2 follows the architecture. Part 3 the training, from 45 trillion tokens of pre-training to reinforcement learning. Part 4 how the model is served, how it scores, what the 1017 update changed, and what an independent safety evaluation of that model found.
The steps
The idea in brief
Step 1
-
DeepSeek-V4.1-FlashUnder construction
Part 1 Memory and compute
Steps 2 to 5
-
The KV cacheUnder construction
What a model must remember about every earlier token, and why at a million tokens that memory dominates the cost of serving.
-
Mixture of expertsUnder construction
How a model can hold 552B parameters but use only 8B to 16B of them for each token.
-
Sparse attentionUnder construction
How a query can attend to 512 chosen entries instead of every earlier token, and how the choice is made.
-
QuantisationUnder construction
How numbers are stored in eight or four bits, and what that costs in accuracy: the model’s cache is kept in FP4.
Part 2 The architecture
Steps 6 to 8
-
Causal encoder-decoderUnder construction
Half the layers make the cache for the other half, so reading a prompt needs only half the model.
-
Compressed Sparse Attention 2Under construction
Attention that shares its cache and its choices across layers: the main reason the cache is a quarter of its predecessor’s.
-
mHC, Engram and DSparkUnder construction
Three further pieces: several residual streams, a large lookup memory and a fast way to draft tokens.
Part 3 Training
Steps 9 to 11
-
Pre-trainingUnder construction
How the model was trained on 45 trillion tokens of text and images, with sparse attention from the start.
-
Reinforcement learningUnder construction
Learning from rewards rather than examples: the method behind the model’s reasoning and agent skills.
-
Post-trainingUnder construction
Fine-tuning, reinforcement learning and distillation, and the report’s claim that the data, not the algorithm, made the gains.
Part 4 Serving and results
Steps 12 to 15
-
Serving a million tokensUnder construction
How the cache is kept on fast memory and disk, and how bounded replay avoids storing part of it at all.
-
The safety evaluationUnder construction
An independent evaluation of the 1017 model for loss of control and manipulation, and what it found.
At the end of the path
At the end of the path you can explain where the cost of a million-token model lies and how DeepSeek-V4.1-Flash reduces it: half the layers making the cache for the rest, attention that shares its cache and its choices across layers, four-bit storage, and a replay that rebuilds what is not kept. You can read its scores against its size, and weigh what an independent evaluation found about its behaviour.
Now see the researchDeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression (DeepSeek-AI, 2026)
What you mark as read is kept in this browser only, never sent.