Fix the chat template for llava-v1.6-34b & format code (#177)
This commit is contained in:
@@ -366,7 +366,8 @@ def generate_chat_conv(
|
||||
if content.type == "text":
|
||||
real_content += content.text
|
||||
elif content.type == "image_url":
|
||||
real_content += "<image>"
|
||||
# NOTE: Only works for llava
|
||||
real_content += "<image>\n"
|
||||
conv.append_image(content.image_url.url)
|
||||
conv.append_message(conv.roles[0], real_content)
|
||||
elif msg_role == "assistant":
|
||||
|
||||
Reference in New Issue
Block a user