Skip to content
StackDecode
LLM Library
Mixture of expertsOpen weightsArchitecture animation

DeepSeek-R1

A reasoning model trained with reinforcement learning on top of V3.

At a glance

Made by
DeepSeek
Released
2025
Type
Mixture of experts
Access
Open weights
Parameters
671B
Active per token
37B
Context window
128k tokens
Attention
Multi-head latent attention (MLA)

How it works

R1 starts from the V3 base and is trained with RL (GRPO) on problems with checkable answers, so it learns to write long chains of thought, check itself and backtrack. Smaller distilled versions were also released.

Architecture, step by step

A token travels from text in to prediction out. The boxed layers repeat many times.

× N layersText inTokenizerEmbedding + positionNormSelf-attentionAdd (residual)NormRouter picks top-k expertsSelected experts (MLPs)Add (residual)Final normLM head (vocabulary scores)Softmax, then sample next token

Raw text enters the system, for example "The cat sat on the".

stage:
1/13
part:
Text in
1/13

The green dot is one token travelling through the model. The boxed section repeats for every layer.

What stands out

  • Reinforcement learning for reasoning
  • Long chain of thought
  • MIT licence with distilled models

Keep in mind

Long reasoning makes answers slower and costlier.

Related models