Skip to content

Commit

Permalink
Fix mantis
Browse files Browse the repository at this point in the history
Signed-off-by: DarkLight1337 <[email protected]>
  • Loading branch information
DarkLight1337 committed Jan 2, 2025
1 parent 9bfbc82 commit ce0a7dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vllm/model_executor/models/llava.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,11 @@ def apply(
hf_config = self.ctx.get_hf_config(LlavaConfig)
image_token_id = hf_config.image_token_index

num_image_tokens = self._get_num_image_tokens()
# Assume that it doesn't depend on the image size
num_image_tokens = self._get_num_image_tokens(
image_width=-1,
image_height=-1,
)

result = super().apply(prompt_text, mm_data, hf_processor_mm_kwargs)

Expand Down

0 comments on commit ce0a7dc

Please sign in to comment.