[GH-ISSUE #24] load erros #22

Closed
opened 2026-10-26 21:01:47 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @cooper12121 on GitHub (Feb 25, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-MoE/issues/24

Originally assigned to: @zwd003 on GitHub.

Is the flash_attn library necessary to load your model?,when I load your model,there is error:ImportError: This modeling file requires the following packages that were not found in your environment: flash_attn. Run pip install flash_attn
thank you so much!

Originally created by @cooper12121 on GitHub (Feb 25, 2024). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-MoE/issues/24 Originally assigned to: @zwd003 on GitHub. Is the flash_attn library necessary to load your model?,when I load your model,there is error:ImportError: This modeling file requires the following packages that were not found in your environment: flash_attn. Run `pip install flash_attn` thank you so much!
Author
Owner

@luofuli commented on GitHub (Feb 25, 2024):

cc @zwd003

<!-- gh-comment-id:1962974380 --> @luofuli commented on GitHub (Feb 25, 2024): cc @zwd003
Author
Owner

@zwd003 commented on GitHub (Feb 27, 2024):

you could install flash_attn or load the model with attn_implementation="eager"

<!-- gh-comment-id:1966317725 --> @zwd003 commented on GitHub (Feb 27, 2024): you could install flash_attn or load the model with attn_implementation="eager"
Sign in to join this conversation.
No labels
pull-request
WIP
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-MoE#22
No description provided.