Skip to content

Commit

Permalink
Update vllm/multimodal/image.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com>
  • Loading branch information
zifeitong and DarkLight1337 authored Aug 21, 2024
1 parent b4a0bcc commit 7c8f82f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/multimodal/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ def repeat_and_pad_image_tokens(
prompt_parts = prompt.split(image_token_str,
maxsplit=len(repeat_count))
new_prompt = ""
for i in range(len(repeat_count)):
for repeat_count_item in repeat_count:
replacement_str = "".join(
repeat_and_pad_token(
image_token_str,
repeat_count=repeat_count[i],
repeat_count=repeat_count_item,
pad_token_left=pad_token_str_left,
pad_token_right=pad_token_str_right,
))
Expand Down

0 comments on commit 7c8f82f

Please sign in to comment.