部署教程很多,但是感觉不够直接,小白的我就是拿来就用的,所以写个最最最直接的。
下载:
下载模型权重:
git clone https://huggingface.co/openbmb/MiniCPM-V-2_6
git clone https://www.modelscope.cn/models/openbmb/minicpm-v-2_6
下载MiniCPM方便直接运行py用
git clone https://github.com/OpenBMB/MiniCPM-V.git
安装环境
conda create -n MiniCPMV python=3.10 -y
conda activate MiniCPMV
#进入刚下载的文件夹
cd MiniCPM-V
pip install -r requirements.txt
修改模型文件地址:
Mini CPM-V文件夹下的web_demo_2.6.py
运行
# 对于 NVIDIA GPU,请运行:
python web_demo_2.6.py --device cuda
提问回答:
它说自己是OpenAI的 晕