在实例化 model = SentenceTransformer('moka-ai/m3e-base') 时,为什么显示 ConnectionError呢?

#25
by justYeah - opened

模型实例化时,显示 请求连接失败,有大佬可以帮忙看下这是为什么吗?
File /opt/anaconda3/lib/python3.9/site-packages/huggingface_hub/utils/_http.py:63, in UniqueRequestIdAdapter.send(self, request, *args, **kwargs)
61 """Catch any RequestException to append request id to the error message for debugging."""
62 try:
---> 63 return super().send(request, *args, **kwargs)
64 except requests.RequestException as e:
65 request_id = request.headers.get(X_AMZN_TRACE_ID)

File /opt/anaconda3/lib/python3.9/site-packages/requests/adapters.py:501, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
498 raise
500 except (ProtocolError, socket.error) as err:
--> 501 raise ConnectionError(err, request=request)
503 except MaxRetryError as e:
504 if isinstance(e.reason, ConnectTimeoutError):
505 # TODO: Remove this in 3.0.0: see #2811

ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')), '(Request ID: ddd4ac08-2e62-424c-9563-9cb91e9d1379)')

网络问题,打开科学上网试试。

Sign up or log in to comment