ChatGLM-6B
ChatGLM-6B copied to clipboard
[BUG] 无法生成分享链接
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
我这边,运行web_demo.py 修改下面的share参数为True,如下:
demo.queue().launch(share=True, inbrowser=True)
但是报错:
Explicitly passing a revision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a revision
is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision.
Explicitly passing a revision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision.
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:15<00:00, 1.90s/it]
Running on local URL: http://127.0.0.1:7860
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
自己curl https://status.gradio.app 是有结果的,没问题的
Expected Behavior
Running on local URL: http://127.0.0.1:7860
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
Steps To Reproduce
Running on local URL: http://127.0.0.1:7860
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
Environment
- OS:linux centos
- Python:3.7.9
- Transformers:4.27.1
- PyTorch:1.13.1
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : True
Anything else?
no
我也遇到一样的问题,有人知道怎么解决么?
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
我这边,运行web_demo.py 修改下面的share参数为True,如下:
demo.queue().launch(share=True, inbrowser=True)
但是报错: Explicitly passing a
revision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing arevision
is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing arevision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:15<00:00, 1.90s/it] Running on local URL: http://127.0.0.1:7860Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
自己curl https://status.gradio.app 是有结果的,没问题的
Expected Behavior
Running on local URL: http://127.0.0.1:7860
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
Steps To Reproduce
Running on local URL: http://127.0.0.1:7860
Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
Environment
- OS:linux centos - Python:3.7.9 - Transformers:4.27.1 - PyTorch:1.13.1 - CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : True
Anything else?
no
如果是公网,你需要去gradio升级用户权限(给money) 如果是局域网内分享,在demo.queue().launch(server_name='0.0.0.0',server_port = xxxx), 端口也可以是使用默认的7860. 其他用户就能通过访问你的IP:Port访问gradio
是局域网分享,不管端口号设定成什么样,都是无法生成分享的,ip:port无法分享的
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
我这边,运行web_demo.py 修改下面的share参数为True,如下:
demo.queue().launch(share=True, inbrowser=True)
但是报错: Explicitly passing a
revision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing arevision
is encouraged when loading a configuration with custom code to ensure no malicious code has been contributed in a newer revision. Explicitly passing arevision
is encouraged when loading a model with custom code to ensure no malicious code has been contributed in a newer revision. Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:15<00:00, 1.90s/it] Running on local URL: http://127.0.0.1:7860 Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server. 自己curl https://status.gradio.app 是有结果的,没问题的Expected Behavior
Running on local URL: http://127.0.0.1:7860 Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
Steps To Reproduce
Running on local URL: http://127.0.0.1:7860 Could not create share link. Please check your internet connection or our status page: https://status.gradio.app ^CKeyboard interruption in main thread... closing server.
Environment
- OS:linux centos - Python:3.7.9 - Transformers:4.27.1 - PyTorch:1.13.1 - CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) : True
Anything else?
no
如果是公网,你需要去gradio升级用户权限(给money) 如果是局域网内分享,在demo.queue().launch(server_name='0.0.0.0',server_port = xxxx), 端口也可以是使用默认的7860. 其他用户就能通过访问你的IP:Port访问gradio
赞一个,好使。
你们慢吗?用web感觉速度很慢啊,一个个字输出,一个句子要两分钟以上。
你们慢吗?用web感觉速度很慢啊,一个个字输出,一个句子要两分钟以上。
推理用了几张卡?什么卡?
我也遇到一样的问题,有人知道怎么解决么?
只要能访问外网,手动下载frpc工具就好了。比如这个: /root/miniconda3/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2 路径换成对应的,frpc_linux_amd64_v0.2是从/root/miniconda3/lib/python3.9/site-packages/gradio/tunneling.py文件可以 看出这个文件名。下载好后记得赋予文件执行权限,chmod +x frpc_linux_amd64_v0.2既可
我也遇到一样的问题,有人知道怎么解决么?
只要能访问外网,手动下载frpc工具就好了。比如这个: /root/miniconda3/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2 路径换成对应的,frpc_linux_amd64_v0.2是从/root/miniconda3/lib/python3.9/site-packages/gradio/tunneling.py文件可以 看出这个文件名。下载好后记得赋予文件执行权限,chmod +x frpc_linux_amd64_v0.2既可
这个文件下载提示有病毒啊,会不会在服务器上造成啥漏洞。。。公司可不敢乱试