AI大模型教程
一起来学习

服务器使用llama-factory 无法在本地打开webui问题处理

按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
给予权限

文章来源于互联网:服务器使用llama-factory 无法在本地打开webui问题处理

相关推荐: AIGC———AIGC如何突破传统写作的边界?

AIGC如何突破传统写作的边界 引言 随着人工智能技术的不断发展,AIGC(AI-Generated Content,人工智能生成内容)正在悄然改变传统写作的格局。从最初的辅助编辑到现在能够独立生成完整文章、剧本甚至小说,AIGC以令人惊叹的速度突破了传统写作…

赞(0)
未经允许不得转载:5bei.cn大模型教程网 » 服务器使用llama-factory 无法在本地打开webui问题处理
分享到: 更多 (0)

AI大模型,我们的未来

小欢软考联系我们