Views
No views yet
| Benchmark | DeepSeek-V4-Flash-0731 | DeepSeek-V4-Flash (Preview) | DeepSeek-V4-Pro (Preview) | GLM-5.2 | Opus-4.8 |
|---|---|---|---|---|---|
| Terminal Bench 2.1 | 82.7 | 61.8 | 72.1 | 81.0 | 85.0 |
| NL2Repo | 54.2 | 39.4 | 38.5 | 48.9 | 69.7 |
| Cybergym | 76.7 | 38.7 | 52.7 | - | 83.1 |
| DeepSWE | 54.4 | 7.3 | 12.8 | 46.2 | 58.0 |
| Toolathlon-Verified | 70.3 | 49.7 | 55.9 | 59.9 | 76.2 |
| Agents' Last Exam | 25.2 | 15.8 | 16.5 | 23.8 | 25.7 |
| AutomationBench Public | 25.1 | 10.8 | 12.8 | 12.9 | 27.2 |
| DSBench-FullStack † | 68.7 | 37.0 | 41.8 | 61.8 | 71.6 |
| DSBench-Hard † | 59.6 | 25.8 | 31.1 | 54.5 | 71.7 |
max reasoning effort level with temperature = 1.0, top_p = 0.95.encoding folder 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 the encoding folder for full documentation.reasoning_effort parameter now supports three levels — low, high, and max — which control how much deliberation the model spends before answering.1from encoding_dsv4 import encode_messages, parse_message_from_completion_text
2
3messages = [
4 {"role": "user", "content": "hello"},
5 {"role": "assistant", "content": "Hello! I am DeepSeek.", "reasoning_content": "thinking..."},
6 {"role": "user", "content": "1+1=?"}
7]
8
9# messages -> string
10prompt = encode_messages(messages, thinking_mode="thinking", reasoning_effort="max")
11
12# string -> tokens
13import transformers
14tokenizer = transformers.AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-V4-Flash-0731")
15tokens = tokenizer.encode(prompt)--speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'1vllm serve deepseek-ai/DeepSeek-V4-Flash-0731 \
2 --trust-remote-code --kv-cache-dtype fp8 --block-size 256 \
3 --data-parallel-size 4 --enable-expert-parallel \
4 --moe-backend deep_gemm_mega_moe \
5 --attention-config '{"use_fp4_indexer_cache": true}' \
6 --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}'--speculative-algorithm DSPARK and do not set a separate --speculative-draft-model-path as the target and draft weights therefore come from the same checkpoint.
See the SGLang cookbook for detailed instructions, benchmarks and other hardwares configurations.1sglang serve \
2 --trust-remote-code \
3 --model-path deepseek-ai/DeepSeek-V4-Flash-0731 \
4 --tp 4 \
5 --moe-runner-backend flashinfer_mxfp4 \
6 --speculative-algorithm DSPARK \
7 --mem-fraction-static 0.90 \
8 --chunked-prefill-size 4096 \
9 --swa-full-tokens-ratio 0.1 \temperature = 1.0, with top_p = 0.95 for agentic scenarios and top_p = 1.0 otherwise. For the high and max reasoning effort levels, we recommend a maximum output length of 384K tokens.@misc{deepseekai2026deepseekv4,
title={DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence},
author={DeepSeek-AI},
year={2026},
}