[GH-ISSUE #436] deepseek r1支持temperature吗? #347

Closed
opened 2026-10-26 21:19:45 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @hanhsia on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/436

文档中存在自相矛盾的地方:

官方文档里写的是可以设置,但是不起作用:
https://api-docs.deepseek.com/guides/reasoning_model
Reasoning Model (deepseek-reasoner)
Not Supported Parameters:temperature、top_p、presence_penalty、frequency_penalty、logprobs、top_logprobs. Please note that to ensure compatibility with existing software, setting temperature、top_p、presence_penalty、frequency_penalty will not trigger an error but will also have no effect. Setting logprobs、top_logprobs will trigger an error.

但是github中又写需要设置temperature为0.5-0.7
https://github.com/deepseek-ai/DeepSeek-R1
Set the temperature within the range of 0.5-0.7 (0.6 is recommended) to prevent endless repetitions or incoherent outputs.

Originally created by @hanhsia on GitHub (Feb 17, 2025). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/436 文档中存在自相矛盾的地方: 官方文档里写的是可以设置,但是不起作用: https://api-docs.deepseek.com/guides/reasoning_model Reasoning Model (deepseek-reasoner) Not Supported Parameters:temperature、top_p、presence_penalty、frequency_penalty、logprobs、top_logprobs. Please note that to ensure compatibility with existing software, setting temperature、top_p、presence_penalty、frequency_penalty will not trigger an error but will also have no effect. Setting logprobs、top_logprobs will trigger an error. 但是github中又写需要设置temperature为0.5-0.7 https://github.com/deepseek-ai/DeepSeek-R1 Set the temperature within the range of 0.5-0.7 (0.6 is recommended) to prevent endless repetitions or incoherent outputs.
Author
Owner

@deepsicker commented on GitHub (Feb 17, 2025):

https://www.yuque.com/unreal/gpynrn/so9tml5v3dv9x6ra

<!-- gh-comment-id:2662604355 --> @deepsicker commented on GitHub (Feb 17, 2025): https://www.yuque.com/unreal/gpynrn/so9tml5v3dv9x6ra
Author
Owner

@Kairo-Dai commented on GitHub (Feb 18, 2025):

推理模型目前会忽略temperature,目前测试0.0和1.0没有区别。

<!-- gh-comment-id:2664810337 --> @Kairo-Dai commented on GitHub (Feb 18, 2025): 推理模型目前会忽略temperature,目前测试0.0和1.0没有区别。
Author
Owner

@hanhsia commented on GitHub (Feb 19, 2025):

那为什么https://github.com/deepseek-ai/DeepSeek-R1会写需要设置temperature为0.5-0.7呢?

<!-- gh-comment-id:2667426701 --> @hanhsia commented on GitHub (Feb 19, 2025): 那为什么https://github.com/deepseek-ai/DeepSeek-R1会写需要设置temperature为0.5-0.7呢?
Author
Owner

@mowentian commented on GitHub (Feb 19, 2025):

个人部署可以自由设置 temp

<!-- gh-comment-id:2668184804 --> @mowentian commented on GitHub (Feb 19, 2025): 个人部署可以自由设置 temp
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-R1#347
No description provided.