Skip to the content

fatehi.devx2Learning

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

  1. DeepSeek-V4.1-FlashUnder construction

    Papers

  2. The KV cacheUnder construction

    Deep learning

    What a model must remember about every earlier token, and why at a million tokens that memory dominates the cost of serving.

  3. Mixture of expertsUnder construction

    Deep learning

    How a model can hold 552B parameters but use only 8B to 16B of them for each token.

  4. Sparse attentionUnder construction

    Deep learning

    How a query can attend to 512 chosen entries instead of every earlier token, and how the choice is made.

  5. QuantisationUnder construction

    Deep learning

    How numbers are stored in eight or four bits, and what that costs in accuracy: the model’s cache is kept in FP4.

  6. Causal encoder-decoderUnder construction

    Papers

    Half the layers make the cache for the other half, so reading a prompt needs only half the model.

  7. Compressed Sparse Attention 2Under construction

    Papers

    Attention that shares its cache and its choices across layers: the main reason the cache is a quarter of its predecessor’s.

  8. mHC, Engram and DSparkUnder construction

    Papers

    Three further pieces: several residual streams, a large lookup memory and a fast way to draft tokens.

  9. Pre-trainingUnder construction

    Papers

    How the model was trained on 45 trillion tokens of text and images, with sparse attention from the start.

  10. Reinforcement learningUnder construction

    Deep learning

    Learning from rewards rather than examples: the method behind the model’s reasoning and agent skills.

  11. Post-trainingUnder construction

    Papers

    Fine-tuning, reinforcement learning and distillation, and the report’s claim that the data, not the algorithm, made the gains.

  12. Serving a million tokensUnder construction

    Papers

    How the cache is kept on fast memory and disk, and how bounded replay avoids storing part of it at all.

  13. ResultsUnder construction

    Papers

    What the base and the finished model score, and against which models.

  14. The 1017 updateUnder construction

    Papers

    What changed in the 1017 update of 17 October 2026.

  15. The safety evaluationUnder construction

    Papers

    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.