Skip to content

Commit e74d681

Browse files
committed
xxx
Signed-off-by: Vensenmu <vensenmu@gmail.com>
1 parent 15cc68e commit e74d681

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

vllm/model_executor/models/gemma3_mm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ class Gemma3ForConditionalGeneration(nn.Module, SupportsMultiModal, SupportsPP,
479479
"model.vision_tower.": "vision_tower.",
480480
"model.multi_modal_projector.": "multi_modal_projector.",
481481
"lm_head.": "language_model.lm_head.",
482+
"vision_tower.vision_model.": "vision_model.",
482483
})
483484

484485
def __init__(self, *, vllm_config: VllmConfig, prefix: str = ""):

vllm/model_executor/models/siglip.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -516,16 +516,6 @@ def load_weights(self, weights: Iterable[tuple[str,
516516
weight_loader(param, loaded_weight, shard_id)
517517
break
518518
else:
519-
# Hotfix for quantized models to handle a weight name mismatch.
520-
# The vLLM Siglip model expects a double `vision_model.` prefix.
521-
# This remaps the standard artifact name to the expected name.
522-
if name not in params_dict:
523-
potential_name = f"vision_model.{name}"
524-
if potential_name in params_dict:
525-
name = potential_name
526-
else:
527-
loaded_params.add(name)
528-
continue
529519
param = params_dict[name]
530520
weight_loader = getattr(param, "weight_loader",
531521
default_weight_loader)

0 commit comments

Comments
 (0)