InternVL icon indicating copy to clipboard operation
InternVL copied to clipboard

检索微调样本

Open wonder-dan opened this issue 1 year ago • 0 comments

Checklist

  • [X] 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

请问 对比损失中,负文本添加'summarize:'字符串目的是什么

summarize_model_inputs = self.tokenizer( 'summarize:' + caption, max_length=self.data_args.max_seq_length, padding='max_length' if self.data_args.pad_to_max_length else False, truncation=True, return_tensors='pt', )

Reproduction

summarize_model_inputs = self.tokenizer( 'summarize:' + caption, max_length=self.data_args.max_seq_length, padding='max_length' if self.data_args.pad_to_max_length else False, truncation=True, return_tensors='pt', )

Environment

Error traceback

No response

wonder-dan avatar Sep 25 '24 11:09 wonder-dan