Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
Signed-off-by: yan ma <[email protected]>
  • Loading branch information
yma11 committed Feb 11, 2025
1 parent 0da3871 commit 84a55b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vllm/worker/hpu_enc_dec_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ def create_dummy_seq_group_metadata(self,
image_data = [image_data]
assert is_list_of(image_data, Image.Image)
text_prompt_len = input_len - 2 - len(image_data)
# for prompt like '<|image|><|image|><|begin_of_text|>...', token
# ids will be '128000 128256 128256 128000 ...'
prompt_token_ids = [128000] + [128256] * len(image_data) + [
128000
] + [0] * text_prompt_len
Expand Down

0 comments on commit 84a55b7

Please sign in to comment.