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.77k stars 894 forks source link

OmniLMM-12B下载到本地无法运行 #67 #70

Closed rogermayo182 closed 7 months ago

rogermayo182 commented 7 months ago

1713856321333 1713856452853

pytorch version:2.1.2+cu121 报问题的代码: image

rogermayo182 commented 7 months ago

1,python chat.py文件已经可以运行,愿意是下载的模型文件夹更改了名字,没有含12B字样,而代码硬编码检查12B字样来选择路径; 2,web_demo.py还不能运行,报相同的问题,KeyError:'omnilmm'

iceflame89 commented 7 months ago

web_demo.py 只实现了调用MiniCPM-V 1.0/2.0模型, OmniLMM-12B可参考chat.py 中调用方式自行修改~

rogermayo182 commented 7 months ago

OK,已经讲chat.py引用过来了。