mirror of
https://github.com/deepseek-ai/DeepSeek-R1.git
synced 2026-11-05 00:47:42 +00:00
[GH-ISSUE #684] Unrecognized keys in rope_scaling for 'rope_type'='yarn': {'attn_factor'} #558
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#558
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 @Jintao-Huang on GitHub (Jun 12, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/684
哈咯,我使用deepseek-ai/DeepSeek-R1-0528-Qwen3-8B
但是遇到了下面的警告信息:
"Unrecognized keys in
rope_scalingfor 'rope_type'='yarn': {'attn_factor'}"我查看了transformers对于yarn的实现
github.com/huggingface/transformers@7c58336949/src/transformers/modeling_rope_utils.py (L256)是否config.json中的rope_scaling参数有误,attn_factor -> attention_factor
使用transformers计算的attention_factor为:
而默认值为 "attn_factor": 0.8782488562869419
这是否导致性能下降,谢谢
@OCEANOUXIN commented on GitHub (Jun 26, 2025):
哈喽,你是这么解决这个问题的,我也遇到了这个问题
@HBin013 commented on GitHub (Jul 23, 2025):
你好,请问你有做实验测试这个设置的影响吗?
Hello! Have you ever done any experiments to verify that?
@yangysc commented on GitHub (Aug 11, 2025):
Yes, I also found this issue. Hope someone can helpfully clarify this!
@HBin013 commented on GitHub (Aug 11, 2025):
I've tested different settings on AIME24. It turned out that the original config was right.
@yangysc commented on GitHub (Aug 12, 2025):
Thanks. By "original config," do you mean the attention_factor in Transformers or the rope_scaling setting in config.json?
@HBin013 commented on GitHub (Aug 12, 2025):
Sorry that I didn't make myself clear. I mean the original settings in the official
config.json.With this setting I reproduced the results from the official technical report on AIME25, and a slightly lower result on AIME24:
Settings mentioned in this issue:
or
caused a significant performance drop:
I am not familiar with rope scaling. Based on my experimental results, I suppose the original setup is correct.
Hope it helps.
@yangysc commented on GitHub (Aug 12, 2025):
Thanks very much for your detailed explanation! So maybe we can safely ignore the warning
Unrecognized keys in rope_scaling for 'rope_type'='yarn': {'attn_factor'}@Insanexiao commented on GitHub (Aug 15, 2025):
我也遇到这个问题了,我看了你们的讨论,这意思是不是直接忽略掉这个警告就可以了?
@github-actions[bot] commented on GitHub (Sep 16, 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 (Sep 30, 2025):
false