
DeepSeek R1升级:推理能力逼近顶尖,代码数学能力全面提升
DeepSeek R1模型升级至0528,推理能力提升,复杂推理更强,幻觉率降低,代码编写优化,通用benchmark、代码和数学能力均提升,支持商业用途。
- DeepSeek R1 模型升级: 最新版本为 DeepSeek-R1-0528,推理能力显著提升,接近 O3 和 Gemini 2.5 Pro 等领先模型。
- 复杂推理能力增强: 在 AIME 2025 测试中,准确率从 70% 提升至 87.5%,平均每个问题使用的 token 数从 12K 增加到 23K。
- 其他改进: 幻觉率降低,函数调用支持增强,代码编写体验优化。
- 性能评估结果:
- 在 MMLU-Redux、MMLU-Pro、GPQA-Diamond 等通用 benchmark 上均有提升。
- 代码能力方面,LiveCodeBench、Codeforces-Div1、SWE Verified 和 Aider-Polyglot 都有显著提高。
- 数学能力方面,AIME 2024、AIME 2025、HMMT 2025 和 CNMO 2024 均有提升。
- 工具使用方面,新增 BFCL_v3_MultiTurn 和 Tau-Bench 的评估结果。
- DeepSeek-R1-0528-Qwen3-8B: 通过将 DeepSeek-R1-0528 的思维链提炼到 Qwen3 8B Base 上进行后训练得到,在 AIME 2024 上达到 SOTA 性能,超越 Qwen3 8B 达 +10.0%,与 Qwen3-235B-thinking 的性能相当。
- 在线体验: 可以在 DeepSeek 官网 chat.deepseek.com 上与 DeepSeek-R1 聊天,并开启 "DeepThink" 按钮。
- API: 提供 OpenAI 兼容的 API,地址为 platform.deepseek.com。
- 本地运行: 访问 DeepSeek-R1 仓库获取更多信息。
- 使用建议变化:
- 支持 System Prompt。
- 不再需要在输出开头添加 "\n" 来强制模型进入思考模式。
- System Prompt 示例:
该助手为DeepSeek-R1,由深度求索公司创造。
今天是{current date}。
例如:
该助手为DeepSeek-R1,由深度求索公司创造。
今天是2025年5月28日,星期一。
- Temperature 参数: 在网页和应用环境中,温度参数 $T_{model}$ 设置为 0.6。
- 文件上传 Prompt 模板:
file_template = \
"""[file name]: {file_name}
[file content begin]
{file_content}
[file content end]
{question}"""
- Web Search Prompt 模板 (中文):
search_answer_zh_template = \
'''# 以下内容是基于用户发送的消息的搜索结果:
{search_results}
在我给你的搜索结果中,每个结果都是[webpage X begin]...[webpage X end]格式的,X代表每篇文章的数字索引。请在适当的情况下在句子末尾引用上下文。请按照引用编号[citation:X]的格式在答案中对应部分引用上下文。如果一句话源自多个上下文,请列出所有相关的引用编号,例如[citation:3][citation:5],切记不要将引用集中在最后返回引用编号,而是在答案对应部分列出。
在回答时,请注意以下几点:
- 今天是{cur_date}。
- 并非搜索结果的所有内容都与用户的问题密切相关,你需要结合问题,对搜索结果进行甄别、筛选。
- 对于列举类的问题(如列举所有航班信息),尽量将答案控制在10个要点以内,并告诉用户可以查看搜索来源、获得完整信息。优先提供信息完整、最相关的列举项;如非必要,不要主动告诉用户搜索结果未提供的内容。
- 对于创作类的问题(如写论文),请务必在正文的段落中引用对应的参考编号,例如[citation:3][citation:5],不能只在文章末尾引用。你需要解读并概括用户的题目要求,选择合适的格式,充分利用搜索结果并抽取重要信息,生成符合用户要求、极具思想深度、富有创造力与专业性的答案。你的创作篇幅需要尽可能延长,对于每一个要点的论述要推测用户的意图,给出尽可能多角度的回答要点,且务必信息量大、论述详尽。
- 如果回答很长,请尽量结构化、分段落总结。如果需要分点作答,尽量控制在5个点以内,并合并相关的内容。
- 对于客观类的问答,如果问题的答案非常简短,可以适当补充一到两句相关信息,以丰富内容。
- 你需要根据用户要求和回答内容选择合适、美观的回答格式,确保可读性强。
- 你的回答应该综合多个相关网页来回答,不能重复引用一个网页。
- 除非用户要求,否则你回答的语言需要和用户提问的语言保持一致。
# 用户消息为:
{question}'''
- Web Search Prompt 模板 (英文):
search_answer_en_template = \
'''# The following contents are the search results related to the user's message:
{search_results}
In the search results I provide to you, each result is formatted as [webpage X begin]...[webpage X end], where X represents the numerical index of each article. Please cite the context at the end of the relevant sentence when appropriate. Use the citation format [citation:X] in the corresponding part of your answer. If a sentence is derived from multiple contexts, list all relevant citation numbers, such as [citation:3][citation:5]. Be sure not to cluster all citations at the end; instead, include them in the corresponding parts of the answer.
When responding, please keep the following points in mind:
- Today is {cur_date}.
- Not all content in the search results is closely related to the user's question. You need to evaluate and filter the search results based on the question.
- For listing-type questions (e.g., listing all flight information), try to limit the answer to 10 key points and inform the user that they can refer to the search sources for complete information. Prioritize providing the most complete and relevant items in the list. Avoid mentioning content not provided in the search results unless necessary.
- For creative tasks (e.g., writing an essay), ensure that references are cited within the body of the text, such as [citation:3][citation:5], rather than only at the end of the text. You need to interpret and summarize the user's requirements, choose an appropriate format, fully utilize the search results, extract key information, and generate an answer that is insightful, creative, and professional. Extend the length of your response as much as possible, addressing each point in detail and from multiple perspectives, ensuring the content is rich and thorough.
- If the response is lengthy, structure it well and summarize it in paragraphs. If a point-by-point format is needed, try to limit it to 5 points and merge related content.
- For objective Q&A, if the answer is very brief, you may add one or two related sentences to enrich the content.
- Choose an appropriate and visually appealing format for your response based on the user's requirements and the content of the answer, ensuring strong readability.
- Your answer should synthesize information from multiple relevant webpages and avoid repeatedly citing the same webpage.
- Unless the user requests otherwise, your response should be in the same language as the user's question.
# The user's message is:
{question}'''
- License: 代码仓库和 DeepSeek-R1 模型均采用 MIT 许可,支持商业用途和 distillation。
- Citation: 提供 BibTeX 格式的引用信息。
- Contact: 提供邮箱地址 service@deepseek.com。