You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. I have searched related issues but cannot get the expected help.
2. The bug has not been fixed in the latest version.
3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
Describe the bug
When starting the webui server through gradio, it misidentified the local path as a URL and failed to start.
Fetching 10 files: 100%|███████████████████████████████████████████████████████████████████████| 10/10 [00:00<?, ?it/s]
Traceback (most recent call last):
File "D:\miniconda3\envs\lmdeploy\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\miniconda3\envs\lmdeploy\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\miniconda3\envs\lmdeploy\Scripts\lmdeploy.exe\__main__.py", line 7, in<module>sys.exit(run())
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\lmdeploy\cli\entrypoint.py", line 39, in run
args.run(args)
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\lmdeploy\cli\serve.py", line 247, in gradio
run(args.model_path_or_server,
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\lmdeploy\serve\gradio\app.py", line 42, in run
run_api_server(model_path_or_server, server_name, server_port, batch_size, share=share)
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\lmdeploy\serve\gradio\api_server_backend.py", line 132, in run_api_server
model_names = get_model_list(f'{api_server_url}/v1/models')
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\lmdeploy\serve\openai\api_client.py", line 12, in get_model_list
response = requests.get(api_url, headers=headers)
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\requests\sessions.py", line 697, in send
adapter = self.get_adapter(url=request.url)
File "D:\miniconda3\envs\lmdeploy\lib\site-packages\requests\sessions.py", line 792, in get_adapter
raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for'D:\\huggingface\\hub\\models--Qwen--Qwen2.5-0.5B-Instruct\\snapshots\\7ae557604adf67be50417f59c2c2f167def9a775/v1/models'
The text was updated successfully, but these errors were encountered:
This problem only occurs on Windows, the path of the model is D:\\huggingface\\hub\\models--Qwen--Qwen2.5-0.5B-Instruct\\snapshots\\7ae557604adf67be50417f59c2c2f167def9a775/v1/models.
At line 40 of app.py:
Checklist
Describe the bug
When starting the webui server through gradio, it misidentified the local path as a URL and failed to start.
Reproduction
lmdeploy serve gradio Qwen/Qwen2.5-0.5B-Instruct
Environment
Error traceback
The text was updated successfully, but these errors were encountered: