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
cdba4c74
Unverified
Commit
cdba4c74
authored
Jan 15, 2026
by
Cyrus Leung
Committed by
GitHub
Jan 15, 2026
Browse files
[Model] Avoid token selection in SigLIP pooling head (#32389)
Signed-off-by:
DarkLight1337
<
tlleungac@connect.ust.hk
>
parent
a52d1396
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/model_executor/models/siglip.py
vllm/model_executor/models/siglip.py
+3
-3
No files found.
vllm/model_executor/models/siglip.py
View file @
cdba4c74
...
@@ -690,9 +690,9 @@ class SiglipMultiheadAttentionPoolingHead(nn.Module):
...
@@ -690,9 +690,9 @@ class SiglipMultiheadAttentionPoolingHead(nn.Module):
hidden_state
=
self
.
mlp
(
hidden_state
)
hidden_state
=
self
.
mlp
(
hidden_state
)
hidden_state
+=
residual
hidden_state
+=
residual
pooled
=
hidden_state
[:,
0
]
# Handled by resolve_visual_encoder_outputs
# return hidden_state[:, 0]
return
pooled
.
unsqueeze
(
1
)
return
hidden_state
class
SiglipVisionTransformer
(
nn
.
Module
):
class
SiglipVisionTransformer
(
nn
.
Module
):
...
...
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