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
dcf2a590
Unverified
Commit
dcf2a590
authored
Mar 26, 2025
by
Jerry Zhang
Committed by
GitHub
Mar 26, 2025
Browse files
Allow torchao quantization in SiglipMLP (#15575)
parent
54aa6194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vllm/model_executor/models/siglip.py
vllm/model_executor/models/siglip.py
+4
-2
No files found.
vllm/model_executor/models/siglip.py
View file @
dcf2a590
...
...
@@ -208,8 +208,10 @@ class SiglipMLP(nn.Module):
self
.
config
=
config
self
.
activation_fn
=
get_act_fn
(
config
.
hidden_act
)
# Special handling for BNB quantization
if
quant_config
and
quant_config
.
get_name
()
==
"bitsandbytes"
:
# Special handling for BNB and torchao quantization
if
quant_config
and
quant_config
.
get_name
()
in
[
"bitsandbytes"
,
"torchao"
]:
quantizable
=
True
else
:
# For other quantization, we require the hidden size to be a
...
...
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