mirror of
https://github.com/deepseek-ai/DeepSeek-R1.git
synced 2026-11-05 00:47:42 +00:00
[GH-ISSUE #420] [疑问] 关于DeepseekV3Model类默认关闭gradient checkpointing.的原因 #333
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#333
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 @ShaohonChen on GitHub (Feb 16, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/420
感谢DeepSeek团队优秀的工作!
我在阅读HuggingFace上DeepSeek-V3模型的代码时(R1继承了V3的代码,因此有相同的问题),发现在
modeling_deepseek.py中DeepseekV3PreTrainedModel类中声明了支持supports_gradient_checkpointing = True,但是在DeepseekV3Model类中似乎默认关闭了gradient checkpointing. (1372行)代码的切片如下:我想请教下开发者为什么要这么设置呢?期待开发者和社区伙伴的答疑。
@github-actions[bot] commented on GitHub (Mar 21, 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 (Apr 25, 2025):
false