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
c6c22f16
Unverified
Commit
c6c22f16
authored
Jul 08, 2025
by
viravera
Committed by
GitHub
Jul 08, 2025
Browse files
Revert invalid spellchecker fix on deepseek_vl2 (#20618)
parent
dd382e0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vllm/model_executor/models/deepseek_vl2.py
vllm/model_executor/models/deepseek_vl2.py
+4
-4
No files found.
vllm/model_executor/models/deepseek_vl2.py
View file @
c6c22f16
...
@@ -351,11 +351,11 @@ class DeepseekVLV2ForCausalLM(nn.Module, SupportsMultiModal, SupportsPP):
...
@@ -351,11 +351,11 @@ class DeepseekVLV2ForCausalLM(nn.Module, SupportsMultiModal, SupportsPP):
embed_std
=
1
/
torch
.
sqrt
(
embed_std
=
1
/
torch
.
sqrt
(
torch
.
tensor
(
self
.
projector_config
.
n_embed
,
dtype
=
torch
.
float32
))
torch
.
tensor
(
self
.
projector_config
.
n_embed
,
dtype
=
torch
.
float32
))
if
self
.
tile_tag
==
"2D"
:
if
self
.
tile_tag
==
"2D"
:
# <|view_sep
a
rator|>, <|\n|>
# <|view_sep
e
rator|>, <|\n|>
self
.
image_newline
=
nn
.
Parameter
(
self
.
image_newline
=
nn
.
Parameter
(
torch
.
randn
(
self
.
projector_config
.
n_embed
)
*
embed_std
)
torch
.
randn
(
self
.
projector_config
.
n_embed
)
*
embed_std
)
# This is a typo in original implementation
# This is a typo in original implementation
self
.
view_sep
a
rator
=
nn
.
Parameter
(
self
.
view_sep
e
rator
=
nn
.
Parameter
(
torch
.
randn
(
self
.
projector_config
.
n_embed
)
*
embed_std
)
torch
.
randn
(
self
.
projector_config
.
n_embed
)
*
embed_std
)
else
:
else
:
raise
ValueError
(
raise
ValueError
(
...
@@ -560,13 +560,13 @@ class DeepseekVLV2ForCausalLM(nn.Module, SupportsMultiModal, SupportsPP):
...
@@ -560,13 +560,13 @@ class DeepseekVLV2ForCausalLM(nn.Module, SupportsMultiModal, SupportsPP):
if
self
.
global_view_pos
==
"head"
:
if
self
.
global_view_pos
==
"head"
:
global_local_features
=
torch
.
cat
([
global_local_features
=
torch
.
cat
([
global_features
,
global_features
,
self
.
view_sep
a
rator
[
None
,
:],
self
.
view_sep
e
rator
[
None
,
:],
local_features
,
local_features
,
])
])
else
:
else
:
global_local_features
=
torch
.
cat
([
global_local_features
=
torch
.
cat
([
local_features
,
local_features
,
self
.
view_sep
a
rator
[
None
,
:],
self
.
view_sep
e
rator
[
None
,
:],
global_features
,
global_features
,
])
])
...
...
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