Skip to content

Fix LLaVA model output issues by using official conversation templates#1424

Open
cdllI wants to merge 2 commits intoopen-compass:mainfrom
cdllI:main
Open

Fix LLaVA model output issues by using official conversation templates#1424
cdllI wants to merge 2 commits intoopen-compass:mainfrom
cdllI:main

Conversation

@cdllI
Copy link
Copy Markdown

@cdllI cdllI commented Feb 2, 2026

使用 conv_templates[conv_mode] 替代 self.system_prompt + "USER: " + content + " ASSISTANT: "
添加正确的图像标记处理(DEFAULT_IM_START_TOKEN, DEFAULT_IM_END_TOKEN)
Related to #817 #1029 #523

)

message = [dict(type="image", value=s) for s in tgt_path]
message = [dict(type="image", value=s) forin tgt_path]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the typo

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was an accidental typo. I've fixed it.

else "\nAnswer the question directly."
)
message = [dict(type="image", value=s) for s in tgt_path]
message = [dict(type="image", value=s) forin tgt_path]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants