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 12, 2025
1 parent 92807f5 commit eb222a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vllm/worker/hpu_enc_dec_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,10 @@ def create_dummy_seq_group_metadata(self,
if isinstance(image_data, Image.Image):
image_data = [image_data]
assert is_list_of(image_data, Image.Image)
text_prompt_len = input_len - 2 - len(image_data)
prompt_token_ids = [128000] + [128256] * len(image_data) + [
text_prompt_len = input_len - 1 - len(image_data)
# for prompt like '<|image|><|image|><|begin_of_text|>...', token
# ids will be '128256 128256 128000 ...'
prompt_token_ids = [128256] * len(image_data) + [
128000
] + [0] * text_prompt_len
output_token_ids = [1] * output_len
Expand Down

0 comments on commit eb222a8

Please sign in to comment.