Skip to content

Commit

Permalink
Fix side-effect to internvl (#2778)
Browse files Browse the repository at this point in the history
* qwen2-vl

* internvl

* qwen2

* get image_tokens_per_patch for internvl2

* deepseek-vl

* cogvlm

* glm4v

* update internvl

* internvl_llava

* llava

* glm4v

* upate internvl

* cogvlm

* deepseek

* llava_hf

* rollback llava, internvl-llava

* refactor qwen

* update internvl

* update llava_hf

* update qwen2-vl

* llava_next

* update llava_next

* update llava

* update llava

* update llava

* qwen2

* fix internvl
  • Loading branch information
lvhan028 authored Nov 20, 2024
1 parent 463b508 commit 9e18529
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 9e18529

Please sign in to comment.