Skip to content

Commit 1e7cc4f

Browse files
viraverahuydhn
authored andcommitted
Revert invalid spellchecker fix on deepseek_vl2 (#20618)
1 parent fab6544 commit 1e7cc4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vllm/model_executor/models/deepseek_vl2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ def __init__(self, *, vllm_config: VllmConfig, prefix: str = ""):
351351
embed_std = 1 / torch.sqrt(
352352
torch.tensor(self.projector_config.n_embed, dtype=torch.float32))
353353
if self.tile_tag == "2D":
354-
# <|view_separator|>, <|\n|>
354+
# <|view_seperator|>, <|\n|>
355355
self.image_newline = nn.Parameter(
356356
torch.randn(self.projector_config.n_embed) * embed_std)
357357
# This is a typo in original implementation
358-
self.view_separator = nn.Parameter(
358+
self.view_seperator = nn.Parameter(
359359
torch.randn(self.projector_config.n_embed) * embed_std)
360360
else:
361361
raise ValueError(
@@ -560,13 +560,13 @@ def _pixel_values_to_embedding(
560560
if self.global_view_pos == "head":
561561
global_local_features = torch.cat([
562562
global_features,
563-
self.view_separator[None, :],
563+
self.view_seperator[None, :],
564564
local_features,
565565
])
566566
else:
567567
global_local_features = torch.cat([
568568
local_features,
569-
self.view_separator[None, :],
569+
self.view_seperator[None, :],
570570
global_features,
571571
])
572572

0 commit comments

Comments
 (0)