Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
comaniac committed Dec 11, 2024
1 parent e1fb91e commit c5c5aa8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vllm/model_executor/models/llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@ def _get_dummy_mm_kwargs(
image_processor = hf_processor.image_processor # type: ignore
hf_inputs = image_processor.preprocess(data['image'],
return_tensors="pt")
if 'is_pixtral' not in hf_inputs:
hf_inputs['is_pixtral'] = isinstance(hf_processor,
PixtralProcessor)
is_pixtral = isinstance(hf_processor, PixtralProcessor)

return MultiModalKwargs(**hf_inputs)
return MultiModalKwargs(
**hf_inputs,
is_pixtral=torch.tensor(is_pixtral),
)


class LlavaLikeConfig(Protocol):
Expand Down

0 comments on commit c5c5aa8

Please sign in to comment.