mirror of
https://github.com/vllm-project/vllm.git
synced 2025-10-20 14:53:52 +08:00
Allow torchao quantization in SiglipMLP (#15575)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user