OpenBMB / MiniCPM-V

MiniCPM-V 2.6: A GPT-4V Level MLLM for Single Image, Multi Image and Video on Your Phone
Apache License 2.0
12.71k stars 891 forks source link

[Fix] Trainer interface error when eval minicpm-v-2.6 #642

Open moonmengmeng opened 1 month ago

moonmengmeng commented 1 month ago

The interface to minicpm v2.6 is data, **inputs can't reasonably get data, when the model.eval mode is turned on, there will be a problem of not finding the input data, after experimenting to pass the data in like the training process above.

def forward(self, data, **kwargs):

This interface is in modeling of minicpm v2.6, and the function in trainer does not align with it.