Open JYC-JYC-Users opened 1 month ago
直接执行 python d:\ai\llm\swift\swift\swift\cli\web_ui.py 试试
(swift_venv) D:\AI\LLM\SWIFT\swift\swift\cli>python web_ui.py
2024-06-10 15:05:42,849 - modelscope - INFO - PyTorch version 2.3.1+cu121 Found.
2024-06-10 15:05:42,853 - modelscope - INFO - Loading ast index from C:\Users\JYC.cache\modelscope\ast_indexer
2024-06-10 15:05:43,155 - modelscope - INFO - Loading done! Current index file version is 1.15.0, with md5 23e3242406c50ae3699433273a08497f and a total number of 980 components indexed
[INFO:swift] Successfully registered d:\ai\llm\swift\swift\swift\llm\data\dataset_info.json
Running on local URL: http://127.0.0.1:7860
Traceback (most recent call last):
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpx_transports\default.py", line 69, in map_httpcore_exceptions
yield
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpx_transports\default.py", line 233, in handle_request
resp = self._pool.handle_request(req)
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_sync\connection_pool.py", line 216, in handle_request
raise exc from None
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_sync\connection_pool.py", line 196, in handle_request
response = connection.handle_request(
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_sync\http_proxy.py", line 207, in handle_request
return self._connection.handle_request(proxy_request)
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_sync\connection.py", line 99, in handle_request
raise exc
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_sync\connection.py", line 76, in handle_request
stream = self._connect(request)
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_sync\connection.py", line 122, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_backends\sync.py", line 205, in connect_tcp
with map_exceptions(exc_map):
File "c:\program files\python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "D:\AI\LLM\SWIFT\swift_venv\lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\AI\LLM\SWIFT\swift\swift\cli\web_ui.py", line 5, in
这回报这个错
同问,我也有连接的问题
[INFO:swift] Successfully registered /data/cuiyajie/swift-main/swift/llm/data/dataset_info.json
Running on local URL: http://127.0.0.1:7860
Traceback (most recent call last):
File "/data/cuiyajie/anaconda3/envs/swift/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/data/cuiyajie/anaconda3/envs/swift/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_r equest
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/data/cuiyajie/anaconda3/envs/swift/lib/python3.10/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/data/cuiyajie/anaconda3/envs/swift/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen retries = retries.increment( File "/data/cuiyajie/anaconda3/envs/swift/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.167.32.133', port=8080): Max retries exceeded with url: htt p://127.0.0.1:7860/startup-events (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/cuiyajie/swift-main/swift/cli/web_ui.py", line 5, in
使用swift web-ui时发生错误 (swift_venv) D:\AI\LLM\SWIFT\swift>swift web-ui run sh:
from swift.ui.app import run_ui
ModuleNotFoundError: No module named 'swift'
python d:\ai\llm\swift\swift\swift\cli\web_ui.py
Traceback (most recent call last): File "d:\ai\llm\swift\swift\swift\cli\web_ui.py", line 2, in使用文档里的第二种方法装的swift