服务器使用llama-factory 无法在本地打开webui问题处置惩罚 ...

打印 上一主题 下一主题

主题 1044|帖子 1044|积分 3132

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
按redeme中 运行llamafactory-cli webui后在欣赏器打开0.0.0.0:7862结果如下:

办理方案:
找到你存放llamafactory的路径下的/LLaMA-Factory/src/llamafactory/webui/interface.py文件,修改run_web_ui()下的 gradio_share = True 使gradio天生公共链接
这里大概会遇到报错如下:
Could not create share link. Missing file: /mnt/user/.local/lib/python3.10/site-packages/gradio/frpc_linux_amd64_v0.2. Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps:
1. Download this file: https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
2. Rename the downloaded file to: frpc_linux_amd64_v0.2
3. Move the file to this location: /mnt/user/.local/lib/python3.10/site-packages/gradio
按照它的提示下载链接里的文件,改名成frpc_linux_amd64_v0.2,然后mv去它提示的地址就好
但是大概还会遇到报错如下:
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
这里需要cd 进刚刚的位置  然后输入命令
chmod +x frpc_linux_amd64_v0.2
给予权限

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

我可以不吃啊

论坛元老
这个人很懒什么都没写!
快速回复 返回顶部 返回列表