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.75k stars 893 forks source link

微调中断后如何继续训练 #670

Open wanghaolan123 opened 1 week ago

wanghaolan123 commented 1 week ago

在使用官方提供的finetune_lora.sh对MiniCPM-V-2.6进行微调的时候中断了,请问如何从已保存的checkpoint进行继续训练?

LDLINGLINGLING commented 1 week ago

训练的finetune脚本中的trainer.train()括号中增加resume_from_checkpoint='/path/to/checkpoint'