MiniCPM-V icon indicating copy to clipboard operation
MiniCPM-V copied to clipboard

Inference after lora finetuning

Open tristan279 opened this issue 1 year ago • 1 comments

i finetuned miniCPM-v-2_6 with this dataset format:

"id":str(i), "image":{"<image_upper>":f"path_upper","<image_lower>":f"path_lower"}, "conversations": [{"role": "user", "content": f"<image_upper><image_lower>{prompt}"},{"role":"assistant","content":text}]

how do i invoke the model with the exact same prompt, using transformers library? prompt format was not given in the finetuning example

tristan279 avatar Sep 04 '24 07:09 tristan279

https://modelbest.feishu.cn/wiki/HvfLwYzlIihqzXkmeCdczs6onmd?from=from_copylink,please check this blog

LDLINGLINGLING avatar Sep 04 '24 08:09 LDLINGLINGLING