mirror of
https://github.com/deepseek-ai/DeepSeek-VL2.git
synced 2026-11-05 01:07:23 +00:00
[GH-ISSUE #12] Separator Token and New Line Token Mapped to self.image_token_id Instead of Distinct IDs as Described in the Paper? #8
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#8
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 @chenin-wang on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL2/issues/12
Why are both the Separator Token and the New Line Token implemented using

self.image_token_idin the code, while the paper describes them as having distinct IDs corresponding to/sepand/n?github.com/deepseek-ai/DeepSeek-VL2@6036493d83/deepseek_vl2/models/processing_deepseek_vl_v2.py (L570)github.com/deepseek-ai/DeepSeek-VL2@6036493d83/deepseek_vl2/models/processing_deepseek_vl_v2.py (L572)@chenin-wang commented on GitHub (Dec 18, 2024):
the Separator Token and New Line Token are implemented using nn.Parameter for learnable embeddings and subsequently filled into the input embeddings
github.com/deepseek-ai/DeepSeek-VL2@6036493d83/deepseek_vl2/models/modeling_deepseek_vl_v2.py (L263)github.com/deepseek-ai/DeepSeek-VL2@6036493d83/deepseek_vl2/models/modeling_deepseek_vl_v2.py (L422)@chenin-wang commented on GitHub (Dec 18, 2024):
Multi-head Latent Attention (MLA)
github.com/deepseek-ai/DeepSeek-VL2@6036493d83/deepseek_vl2/models/modeling_deepseek.py (L862)