大模型笔记之-llava(多模态大语言模型)

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档


前言

LLaVA:大型语言和视觉助手
针对具有 GPT-4 级功能的大型语言和视觉模型进行视觉教学调整。

一、安装

git clone https://github.com/haotian-liu/LLaVA.git
cd LLaVA
#必须升级pip 至24.0版本否则在构建时会报错
#ERROR: Project file:///home/user/netdisk/data/llava/LLaVA-main has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.

pip install --upgrade pip   # enable PEP 660 support
pip install -e .

二、启动

python3 -m llava.serve.controller --host 0.0.0.0 --port 4006

python3 -m llava.serve.gradio_web_server --controller http://localhost:4006 --model-list-mode reload --share

python3 -m llava.serve.model_worker --host 0.0.0.0 --controller http://localhost:4006 --port 8000 --worker http://localhost:8000 --model-path ./models/llava-v1.5-7b

启动报错

2024-03-19 13:29:27 | ERROR | stderr | installation page of its repo: https://github.com/protocolbuffers/protobuf/tree/master/python#installation and follow the ones
2024-03-19 13:29:27 | ERROR | stderr | that match your environment. Please note that you may need to restart your runtime after installation.
2024-03-19 13:29:27 | ERROR | stderr | 

解决

pip install protobuf

再次启动 默认页面

在这里插入图片描述

写在最后

欢迎移步我的Github仓库,https://github.com/Jun-Howie/erniebot-openai-api
本仓库使用飞桨星河社区接入ernie-4.0联网功能,如果你需要可以Fork我的仓库,还请给个Star让我知道

  • 9
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Harvey-J

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值