Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
70fedd0f
Unverified
Commit
70fedd0f
authored
Mar 31, 2025
by
yihong
Committed by
GitHub
Mar 30, 2025
Browse files
fix: Comments to English for better dev experience (#15768)
Signed-off-by:
yihong0618
<
zouzou0208@gmail.com
>
parent
bb103b29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vllm/model_executor/models/deepseek_vl2.py
vllm/model_executor/models/deepseek_vl2.py
+1
-1
vllm/transformers_utils/processors/deepseek_vl2.py
vllm/transformers_utils/processors/deepseek_vl2.py
+1
-1
No files found.
vllm/model_executor/models/deepseek_vl2.py
View file @
70fedd0f
...
@@ -509,7 +509,7 @@ class DeepseekVLV2ForCausalLM(nn.Module, SupportsMultiModal, SupportsPP):
...
@@ -509,7 +509,7 @@ class DeepseekVLV2ForCausalLM(nn.Module, SupportsMultiModal, SupportsPP):
_
,
hw
,
n_dim
=
images_embeds
.
shape
_
,
hw
,
n_dim
=
images_embeds
.
shape
h
=
w
=
int
(
hw
**
0.5
)
h
=
w
=
int
(
hw
**
0.5
)
#
根据
self.tile_tag & self.global_view_pos
填充image token sequence
#
fill image token based on
self.tile_tag & self.global_view_pos
tile_index
=
0
tile_index
=
0
vision_embeddings
=
[]
vision_embeddings
=
[]
for
jdx
in
range
(
images_spatial_crop
.
size
(
0
)):
for
jdx
in
range
(
images_spatial_crop
.
size
(
0
)):
...
...
vllm/transformers_utils/processors/deepseek_vl2.py
View file @
70fedd0f
...
@@ -226,7 +226,7 @@ class DeepseekVLV2Processor(ProcessorMixin):
...
@@ -226,7 +226,7 @@ class DeepseekVLV2Processor(ProcessorMixin):
input_ids
[
input_ids
<
0
]
=
self
.
pad_id
input_ids
[
input_ids
<
0
]
=
self
.
pad_id
if
inference_mode
:
if
inference_mode
:
#
去掉结尾的
eos token
#
Remove the ending
eos token
assert
input_ids
[
-
1
]
==
self
.
eos_id
assert
input_ids
[
-
1
]
==
self
.
eos_id
input_ids
=
input_ids
[:
-
1
]
input_ids
=
input_ids
[:
-
1
]
target_ids
=
target_ids
[:
-
1
]
target_ids
=
target_ids
[:
-
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment