You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. I have searched related issues but cannot get the expected help.
2. The bug has not been fixed in the latest version.
3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
Checklist
Describe the bug
在在
InternVLChatModel.chat()
中,可以通过model.system_message
覆盖template.system_message
:InternVL/internvl_chat/internvl/model/internvl_chat/modeling_internvl_chat.py
Lines 316 to 317 in 6a230b3
而在
InternVLChatModel.batch_chat()
中缺少这一部分:InternVL/internvl_chat/internvl/model/internvl_chat/modeling_internvl_chat.py
Lines 277 to 280 in 6a230b3
这使得对
model.system_message
和model.conv_template.system_message
的修改在batch_chat的推理中实际上不生效,进而导致在包含system_message的sft数据上微调后的模型在chat和batch_chat时表现出比较明显的差异,而在batch_chat中手动添加template.system_message = self.system_message
后,chat和batch_chat重新保持一致。这一问题在https://github.com/OpenGVLab/InternVL/blob/main/internvl_chat/internvl/model/internvl_chat/modeling_internvl_chat.py 以及HF上的
modeling_internvl_chat.py
中都存在,望修复。Reproduction
Environment
Error traceback
No response
The text was updated successfully, but these errors were encountered: