Weights of Deepseek v4 flash 0731 have been released!!!
摘要
DeepSeek released the official DeepSeek-V4-Flash-0731 weights on Hugging Face, superseding the preview version with enhanced agentic capabilities and competitive benchmark results.
查看缓存全文
缓存时间: 2026/07/31 12:47
deepseek-ai/DeepSeek-V4-Flash-0731 · Hugging Face
Source: https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731
https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731#introductionIntroduction
DeepSeek-V4-Flash-0731is the official release ofDeepSeek-V4-Flash, superseding the preview version, with substantially enhanced agentic capabilities. It has the same model structure asDeepSeek-V4-Flash-DSpark, i.e. it comes with a speculative decoding module attached.
DeepSeek-V4-Flash-0731 outperforms DeepSeek-V4-Pro (Preview) on benchmarks listed below despite its far smaller activated parameter count, and is broadly competitive with the strongest proprietary models available.
BenchmarkDeepSeek-V4-Flash-0731DeepSeek-V4-Flash (Preview)DeepSeek-V4-Pro (Preview)GLM-5.2Opus-4.8Terminal Bench 2.182.761.872.181.085.0NL2Repo54.239.438.548.969.7Cybergym76.738.752.7-83.1DeepSWE54.47.312.846.258.0Toolathlon-Verified70.349.755.959.976.2Agents’ Last Exam25.215.816.523.825.7AutomationBench Public25.110.812.812.927.2DSBench-FullStack †68.737.041.861.871.6DSBench-Hard †59.625.831.154.571.7 Notes:
- For the Code Agent tasks among the public benchmarks above, DeepSeek-V4-Flash-0731 is evaluated with the minimal mode of DeepSeek Harness (to be released) as the agent framework, using the
maxreasoning effort level withtemperature = 1\.0, top\_p = 0\.95. - † DSBench-FullStack is an internal full-stack development test set; DSBench-Hard is an internal test set of difficult coding-agent problems.
https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731#chat-templateChat Template
This release does not include a Jinja-format chat template. Instead, we provide a dedicatedencodingfolder with Python scripts and test cases demonstrating how to encode messages in OpenAI-compatible format into input strings for the model, and how to parse the model’s text output. Please refer to theencodingfolder for full documentation.
Thereasoning\_effortparameter now supports three levels —low,high, andmax— which control how much deliberation the model spends before answering.
A brief example:
from encoding_dsv4 import encode_messages, parse_message_from_completion_text
messages = [
{"role": "user", "content": "hello"},
{"role": "assistant", "content": "Hello! I am DeepSeek.", "reasoning_content": "thinking..."},
{"role": "user", "content": "1+1=?"}
]
# messages -> string
prompt = encode_messages(messages, thinking_mode="thinking", reasoning_effort="max")
# string -> tokens
import transformers
tokenizer = transformers.AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-V4-Flash-0731")
tokens = tokenizer.encode(prompt)
https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731#how-to-run-with-vllmHow to Run with vLLM
DSpark speculative decoding is enabled with a single flag — add --speculative-config with method: dspark to your vLLM launch command:
\-\-speculative\-config '\{"method":"dspark","num\_speculative\_tokens":7,"draft\_sample\_method":"greedy"\}'
For example, the command below serves the model with vLLM on a single 4×GB300 node. See thevLLM recipefor detailed instructions and other hardware configurations.
vllm serve deepseek-ai/DeepSeek-V4-Flash-0731 \
--trust-remote-code --kv-cache-dtype fp8 --block-size 256 \
--data-parallel-size 4 --enable-expert-parallel \
--moe-backend deep_gemm_mega_moe \
--attention-config '{"use_fp4_indexer_cache": true}' \
--speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'
https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731#how-to-run-locallyHow to Run Locally
Please refer to theinferencefolder for detailed instructions on running DeepSeek-V4 locally, including model weight conversion and interactive chat demos.
For local deployment, we recommend setting the sampling parameters totemperature = 1\.0, withtop\_p = 0\.95for agentic scenarios andtop\_p = 1\.0otherwise. For thehighandmaxreasoning effort levels, we recommend a maximum output length of384Ktokens.
https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731#licenseLicense
This repository and the model weights are licensed under theMIT License.
https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731#citationCitation
@misc{deepseekai2026deepseekv4,
title={DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence},
author={DeepSeek-AI},
year={2026},
}
https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731#contactContact
If you have any questions, please raise an issue or contact us at[email protected].
相似文章
DeepSeek v4 flash 发布版本似乎已在 API 上激活。开放权重即将到来?
DeepSeek v4 flash 发布版本似乎已在 API 上激活,开放权重即将到来,可能在其重量级中超越竞争对手。
@AdinaYakup: DeepSeek V4 Pro's weights are out https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro-0813… - 1.6T / 49B MoE, MIT licens…
DeepSeek released DeepSeek-V4-Pro-0813, an open-weights MoE model (1.6T total / 49B active) with MIT license, 1M context, and enhanced agentic capabilities, outperforming its preview and competing with top proprietary models on benchmarks like Terminal-Bench 2.1.
@seclink: @grok DeepSeek-V4-Flash-Vision-Exp 开源了其权重。亮点是什么?
DeepSeek 已开源 DeepSeek-V4-Flash-Vision-Exp 模型的权重,使其可供公众使用和研究。
DeepSeek-V4-Flash-0731 在基准测试中现已大幅超越 DeepSeek-V4-Pro-Preview
DeepSeek 的新 V4-Flash-0731 模型在基准测试中的表现现已远远优于 V4-Pro-Preview,标志着该模型系列取得了显著进步。
deepseek-ai/DeepSeek-V4-Flash-0731
DeepSeek 发布了 DeepSeek-V4-Flash-0731,这是一个拥有 304B 参数的模型,具备增强的智能体能力,定价为每百万输入 token 0.14 美元、每百万输出 token 0.27 美元。该模型表现超出其体量,被 Artificial Analysis 评为最具智能性价比的模型。