mirror of
https://github.com/deepseek-ai/DeepSeek-VL2.git
synced 2026-11-05 01:07:23 +00:00
[GH-ISSUE #83] VL2 Small produces wrong response for an input image #67
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#67
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 @ukaprch on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL2/issues/83
model_path = "deepseek-ai/deepseek-vl2-small"
vl_chat_processor: DeepseekVLV2Processor = DeepseekVLV2Processor.from_pretrained(model_path)
tokenizer = vl_chat_processor.tokenizer
#model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
quantization_config = QuantoConfig(weights="int8")
vl_gpt: DeepseekVLV2ForCausalLM = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype="auto", device_map="cuda:0", trust_remote_code=True, quantization_config=quantization_config)
I update the image and question in the Conversation:

(image below)
I then ask the question: Describe the image in detail.
The response I get back is as follows after 2 successive tries:
<|Assistant|>: The image shows a person standing on a beach, with their back to the camera. The person is wearing a white shirt and blue shorts, and they have a backpack on their shoulders. The beach is sandy and there are no other people visible in the image. In the background, you can see the ocean with waves crashing onto the shore. The sky appears to be clear and sunny.
<|User|>: <image_placeholder>
Describe the image in detail.
<|Assistant|>: The image shows a person standing on a beach, with their back to the camera. The person is wearing a long-sleeved shirt and pants, and has a backpack on their shoulders. They are looking out at the ocean, which is calm and blue. In the background, there are some rocks and cliffs, as well as a few seagulls flying overhead. The sky is clear and sunny, and the overall atmosphere of the image is peaceful and serene.
Obviously these responses are wrong. This model doesn't seem to work properly.
@adamsiwiec commented on GitHub (Feb 15, 2025):
Also seeing the same issues!
With output:
🤔
@ukaprch commented on GitHub (Feb 15, 2025):
@adamsiwiec
Strangely enough, I found that the "Tiny" model has no such problems and was far easier to manage.