Skip to content

Commit

Permalink
Merge branch 'refactor-vl' into refactor-multimodal
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Nov 20, 2024
2 parents 4124c56 + 9e18529 commit a2bbec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdeploy/vl/model/internvl.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def proc_messages(cls, messages, chat_template, sequence_start):
prompt = f'<img>{IMAGE_TOKEN * n_images}</img>\n' + prompt
else:
pass
prompt_messages.append(dict(role='user', content=content))
prompt_messages.append(dict(role='user', content=prompt))
prompt = chat_template.messages2prompt(prompt_messages, sequence_start)
return prompt, IMAGE_TOKEN

Expand Down

0 comments on commit a2bbec5

Please sign in to comment.