Skip to content

Commit

Permalink
fix default vl template
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Jan 16, 2025
1 parent 14e8664 commit 8c27772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmdeploy/vl/model/xcomposer2.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ def proc_messages(messages, chat_template, sequence_start, model_type):
if n_images == 1:
prefix_image_token, prompt = IMAGE_TOKEN, content[0]
else:
prompt = '; '.join([
f'Image{i+1} {IMAGE_TOKEN}'
prompt = ''.join([
f'Image{i+1} {IMAGE_TOKEN}; '
for i in range(n_images)
]) + content[0]
else:
Expand Down

0 comments on commit 8c27772

Please sign in to comment.