ai/deepseek-v4-flash-safetensors

Verified Publisher

By Docker

Updated 3 months ago

Efficient 284B MoE language model with 1M token context and multi-mode reasoning capabilities

Artifact
3

10K+

ai/deepseek-v4-flash-safetensors repository overview

DeepSeek-V4-Flash

DeepSeek-V4-Flash is a highly efficient Mixture-of-Experts (MoE) language model with 284B total parameters, of which 13B are activated per token. It is part of the DeepSeek-V4 series, designed to deliver exceptional performance with significantly improved efficiency for long-context tasks. The model supports an unprecedented context length of one million tokens, making it ideal for processing large documents, extensive codebases, and complex multi-turn conversations.

Built with innovative architectural advances including Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA), DeepSeek-V4-Flash achieves world-leading long-context efficiency while drastically reducing computational and memory costs. Pre-trained on over 32 trillion diverse, high-quality tokens and refined through a comprehensive two-stage post-training pipeline, the model delivers strong reasoning capabilities that closely approach its larger sibling DeepSeek-V4-Pro, particularly when given a larger thinking budget. Its smaller parameter footprint translates to faster response times and highly cost-effective deployment, making it an excellent choice for production environments requiring both performance and efficiency.

DeepSeek-V4-Flash supports dual reasoning modes: a fast non-thinking mode for routine tasks and a thinking mode for complex problem-solving that rivals the Pro version's performance. The model excels across diverse domains including coding, mathematics, agentic workflows, and knowledge-intensive tasks, establishing itself as a top-tier open-source model in its parameter class.

DeepSeek-V4 Performance Overview


Characteristics

AttributeValue
ProviderDeepSeek AI
ArchitectureDeepseekV4ForCausalLM (MoE)
Total Parameters284B
Activated Parameters13B
Context Length1M tokens
LanguagesMultilingual (English, Chinese, and others)
Input modalitiesText
Output modalitiesText
LicenseMIT
PrecisionFP4 + FP8 Mixed (MoE experts use FP4; other parameters use FP8)

Using this model with Docker Model Runner

docker model run deepseek-v4-flash-safetensors

For more information, check out the Docker Model Runner docs.

Benchmarks

Base Model Performance
Benchmark (Metric)# ShotsDeepSeek-V4-Flash-BaseDeepSeek-V4-Pro-Base
World Knowledge
AGIEval (EM)0-shot82.683.1
MMLU (EM)5-shot88.790.1
MMLU-Redux (EM)5-shot89.490.8
MMLU-Pro (EM)5-shot68.373.5
MMMLU (EM)5-shot88.890.3
C-Eval (EM)5-shot92.193.1
CMMLU (EM)5-shot90.490.8
MultiLoKo (EM)5-shot42.251.1
Simple-QA verified (EM)25-shot30.155.2
SuperGPQA (EM)5-shot46.553.9
FACTS Parametric (EM)25-shot33.962.6
TriviaQA (EM)5-shot82.885.6
Language & Reasoning
BBH (EM)3-shot86.987.5
DROP (F1)1-shot88.688.7
HellaSwag (EM)0-shot85.788.0
WinoGrande (EM)0-shot79.581.5
CLUEWSC (EM)5-shot82.285.2
Code & Math
BigCodeBench (Pass@1)3-shot56.859.2
HumanEval (Pass@1)0-shot69.576.8
GSM8K (EM)8-shot90.892.6
MATH (EM)4-shot57.464.5
MGSM (EM)8-shot85.784.4
CMath (EM)3-shot93.690.9
Long Context
LongBench-V2 (EM)1-shot44.751.5
Instruct Model Performance (Across Reasoning Modes)
Benchmark (Metric)V4-Flash Non-ThinkV4-Flash HighV4-Flash Max
Knowledge & Reasoning
MMLU-Pro (EM)83.086.486.2
SimpleQA-Verified (Pass@1)23.128.934.1
Chinese-SimpleQA (Pass@1)71.573.278.9
GPQA Diamond (Pass@1)71.287.488.1
HLE (Pass@1)8.129.434.8
LiveCodeBench (Pass@1)55.288.491.6
Codeforces (Rating)-28163052
HMMT 2026 Feb (Pass@1)40.891.994.8
IMOAnswerBench (Pass@1)41.985.188.4
Apex (Pass@1)1.019.133.0
Apex Shortlist (Pass@1)9.372.185.7
Long Context
MRCR 1M (MMR)37.576.978.7
CorpusQA 1M (ACC)15.559.360.5
Agentic
Terminal Bench 2.0 (Acc)49.156.656.9
SWE Verified (Resolved)73.778.679.0
SWE Pro (Resolved)49.152.352.6
SWE Multilingual (Resolved)69.770.273.3
BrowseComp (Pass@1)-53.573.2
HLE w/ tools (Pass@1)-40.345.1
MCPAtlas (Pass@1)64.067.469.0
GDPval-AA (Elo)--1395
Toolathlon (Pass@1)40.743.547.8

Key Features

Hybrid Attention Architecture: DeepSeek-V4-Flash employs a novel hybrid attention mechanism combining Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA). In the 1M-token context setting, this design requires only 27% of single-token inference FLOPs and 10% of KV cache compared to DeepSeek-V3.2.

Manifold-Constrained Hyper-Connections (mHC): The model incorporates mHC to strengthen conventional residual connections, enhancing stability of signal propagation across layers while preserving model expressivity.

Muon Optimizer: Training leverages the Muon optimizer for faster convergence and greater training stability.

Reasoning Modes: The model supports three reasoning effort modes:

  • Non-think: Fast, intuitive responses for routine daily tasks and low-risk decisions
  • Think High: Conscious logical analysis, slower but more accurate for complex problem-solving
  • Think Max: Push reasoning to its fullest extent for exploring the boundary of model capabilities

Considerations

  • For local deployment, the model requires at least 384K token context window for Think Max reasoning mode
  • Recommended sampling parameters: temperature = 1.0, top_p = 1.0
  • The model uses FP4 precision for MoE expert parameters and FP8 for most other parameters, optimizing for both performance and efficiency
  • While DeepSeek-V4-Flash delivers exceptional reasoning performance approaching the Pro version, its smaller parameter scale naturally places it slightly behind on pure knowledge tasks and the most complex agentic workflows
  • Specialized encoding scripts are required for message formatting (provided in the repository)
Generated by

This model card was automatically generated using cagent-action. Want to learn more about Docker Model Runner? Check out the project repository: https://github.com/docker/model-runner.

Tag summary

Content type

Unrecognized

Digest

sha256:5ccdf658a

Size

148.7 GB

Last updated

3 months ago

docker pull ai/deepseek-v4-flash-safetensors

This week's pulls

Pulls:

1,112

Last week