mirror of
https://github.com/deepseek-ai/DeepSeek-R1.git
synced 2026-11-05 00:47:42 +00:00
[GH-ISSUE #55] Python库矛盾 #43
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#43
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 @ResonanceForge on GitHub (Jan 23, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-R1/issues/55
各相关版本信息
使用Huggingface
错误信息
问题主要出现于modeling_deepseek.py 第44~47行
@Huowuge commented on GitHub (Jan 24, 2025):
Same error, python version 3.12, windows 11.
I downgrade transformers version to 2.21 and python to 3.10, the error has disappeared, but a new one has appeared.
Need to install flash-attn, but no version can install successfully.
@zharry29 commented on GitHub (Jan 24, 2025):
Same issue!
@psychpsych commented on GitHub (Jan 27, 2025):
Hey,
Check out the doc:
@zharry29 commented on GitHub (Jan 27, 2025):
I got things to work using transformers==4.37.2 and flash_attn==1.0.5 (reference, reference). Hopefully the support for the latest version of Transformers would be implemented soon.
@quanq666 commented on GitHub (Jan 27, 2025):
Got the same issue: ImportError: cannot import name 'is_torch_greater_or_equal_than_1_13' from 'transformers.pytorch_utils'
@quanq666 commented on GitHub (Jan 27, 2025):
Updated to
is_torch_greater_or_equal_than_2_1works for me.@ruidazeng commented on GitHub (Jan 28, 2025):
Which line did you fix it in?
@ruidazeng commented on GitHub (Jan 28, 2025):
Did you fix the
unknown quantization type, got fp8issue?@Jiadalee commented on GitHub (Jan 28, 2025):
I fixed it. but as you mentioned, I also got the unknown quantization type, got fp8 issue
@Jiadalee commented on GitHub (Jan 28, 2025):
pls change both lines 46 and 69 from _1_13 to _2_1
@quanq666 commented on GitHub (Jan 28, 2025):
Yeah I also got the fp8 exception, I think that's the default model loading from deepseek config.
Since I tried to run it on my Macbook (M1), so I need to override the quantization configuration during model loading. -> set
device_map="auto"@Jiadalee commented on GitHub (Jan 29, 2025):
@quanq666 you mean you fixed the fp8 issue by setting device_map="auto"?
@yuxuan-z19 commented on GitHub (Feb 7, 2025):
Nope, it's not working on my Ubuntu Jammy + CUDA 12.1. Perhaps
fp8is not officially supported at the moment (see https://github.com/huggingface/transformers/issues/35471)@github-actions[bot] commented on GitHub (Mar 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 (Apr 12, 2025):
false