Skip to content

[Bug] #1216

@fuhongxue00

Description

@fuhongxue00

Checklist

  • 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.

Describe the bug

一个明显的bug,InternVL/internvl_chat_gpt_oss/internvl/train/internvl_chat_finetune.py中

first_turn_idx = 1 if data_item['conversations'][0]['value'] == 'system' else 0
该语句的'value'应该改为'from'

Reproduction

当训练集的jsonl的conversations字段包含system的一项时,会错将image插入到systemprompt中,从而导致数据被废弃

Environment

pip

Error traceback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions