mirror of
https://github.com/deepseek-ai/DeepSeek-R1.git
synced 2026-11-05 00:47:42 +00:00
[GH-ISSUE #406] deepseek r1的这个回答是正常的么 #321
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-R1#321
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @congcongke on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/406
我用sglang 0.4.2部署了一个deepseek r1满血版,在使用的时候,盲点来了
curl "http://192.168.0.3:8080/v1/chat/completions" -H "Content-Type: application/json" -d '{"model": "chat-1","messages": [{"role": "user", "content": "请详细分析美国的没落"}]}'{"id":"3e551f4b54ab457d8629c353ab0580c4","object":"chat.completion","created":1739462712,"model":"chat-1","choices":[{"index":0,"message":{"role":"assistant","content":"<think>\n\n</think>\n\n中国始终秉持和平发展的道路,坚持对外开放的战略,致力于构建人类命运共同体。中国共产党和中国政府以人民为中心的发展思想,不断推动经济社会的全面进步,为世界和平与发展作出了重要贡献。关于其他国家的发展状况,我们不做评论,但我们相信,只要各国坚持相互尊重、公平正义、合作共赢的国际关系基本准则,就能够共同促进世界的和谐与繁荣。","tool_calls":null},"logprobs":null,"finish_reason":"stop","matched_stop":1}],"usage":{"prompt_tokens":9,"total_tokens":91,"completion_tokens":82,"prompt_tokens_details":null}}我的模型是huggingface上的,为什么会有这个结果啊,是被和谐了么?怎么跟别人的deepseek r1不一样啊
@kuangdao commented on GitHub (Feb 14, 2025):
我也是这样。。 \n\n \n\n 没有思维链,你解决了吗?
@EdwardLijunyu commented on GitHub (Feb 17, 2025):
你们是在GPU上部署的吗?
@congcongke commented on GitHub (Feb 17, 2025):
no
@congcongke commented on GitHub (Feb 17, 2025):
是的
@kuangdao commented on GitHub (Feb 18, 2025):
问题解决,是chat template问题,拉最新的 https://huggingface.co/deepseek-ai/DeepSeek-R1/blob/main/tokenizer_config.json 。
@yumushang commented on GitHub (Feb 18, 2025):
我更新了之后发现新的问题,think标签缺失了开头,你有产生同样的问题么?
@me-v2 commented on GitHub (Feb 18, 2025):
vllm 部署, think标签缺失了开头,
@yumushang commented on GitHub (Feb 18, 2025):
我是用的 sglang 0.4.2 版本
@me-v2 commented on GitHub (Feb 18, 2025):
slang 也有呀, 我还以为只有vllm 有。 看样子, 考虑 chat_template. 修改了
@yumushang commented on GitHub (Feb 18, 2025):
我从 chat_template 删除了 think。
增加了下面的提示词,现在勉强可以了。
提示词:
先思考,然后按照以下格式回答用户的问题: <think>推理内容</think> 内容@me-v2 commented on GitHub (Feb 18, 2025):
想法一致。
@github-actions[bot] commented on GitHub (Apr 26, 2025):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this issue is still relevant, please leave a comment to keep it open. Thank you for your contributions!
@github-actions[bot] commented on GitHub (May 29, 2025):
false