mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-19 13:24:34 +08:00
[Model] Fix a check for None but the return value was empty list in Gemma3 MM vision_embeddings (#21479)
Signed-off-by: Hongmin Fan <fanhongmin@google.com>
This commit is contained in:
parent
b38bc652ac
commit
fde60ee775
@ -627,7 +627,7 @@ class Gemma3ForConditionalGeneration(nn.Module, SupportsMultiModal, SupportsPP,
|
||||
|
||||
inputs_embeds = self.get_input_embeddings(input_ids,
|
||||
vision_embeddings)
|
||||
if vision_embeddings is not None:
|
||||
if (vision_embeddings is not None) and len(vision_embeddings) != 0:
|
||||
kwargs = self.prepare_attn_masks(
|
||||
input_ids,
|
||||
positions,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user