mirror of
https://github.com/deepseek-ai/DeepSeek-VL2.git
synced 2026-11-05 01:07:23 +00:00
[PR #89] [MERGED] change xformers import location #142
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-VL2#142
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?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepSeek-VL2/pull/89
Author: @CUHKSZzxy
Created: 2/19/2025
Status: ✅ Merged
Merged: 2/20/2025
Merged by: @StevenLiuWen
Base:
main← Head:optimize-deps📝 Commits (2)
cf21982optimize lib dependenciesb6e557crecover attrdict📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
deepseek_vl2/models/siglip_vit.py(+2 -1)📄 Description
What does this PR do?
Thanks for your great work, we have been working on supporting the DeepSeek-VL2 series on LMDeploy inference engine.
In this PR, we
xformersimport positionWhy is this change needed?
We want to reuse the image processer and configurations from the upstream DeepSeek-VL2 repository while making the 3rd party dependencies as small as possible. Therefore, we install deepseek_vl2 with
and attempt to reuse the processer and configuration components with the following:
The above commands fail since
deepseek_vl2/models/__init__.pyinvokes a bunch of initialization/imports, subsequently requiresxformershere, even if we won't use the xformers-related components (only reuse processors and config).Therefore, we would recommend changing the
xformersimport position to where it's needed. This modification will facilitate the integration into LMDeploy, while keeping all the functionalities unchanged.Besides, the
attrdicthas never been used. May consider removing those unnecessary codes.Let me know if any changes are needed!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.