MiniCPM-V
MiniCPM-V copied to clipboard
[Fix] Trainer interface error when eval minicpm-v-2.6
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.