No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english and revision 714eb0f (https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english).
Using a pipeline without specifying a model name and revision in production is not recommended.
'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by NewConnectionError("HTTPSConnection(host=\'huggingface.co\', port=443): Failed to establish a new connection: [Errno 111] Connection refused"))'), '(Request ID: 2d14839a-9dc4-4c81-8d07-fc5f4c1ef108)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json
Retrying in 1s [Retry 1/5].
'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f503c046bc0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: bdb4c316-30c8-4ea3-94a5-dda4335c1e41)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json
Retrying in 2s [Retry 2/5].
'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f503be80d90>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 4acd0582-bf3a-49ec-8620-12af8f9fe0e4)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json
Retrying in 4s [Retry 3/5].
'(MaxRetryError('HTTPSConnectionPool(host=\'huggingface.co\', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by NewConnectionError("HTTPSConnection(host=\'huggingface.co\', port=443): Failed to establish a new connection: [Errno 111] Connection refused"))'), '(Request ID: b696c277-2c9e-4479-9b51-c3c084a29619)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json
Retrying in 8s [Retry 4/5].
'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f503be80700>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 1a7d9d74-3554-42a5-ab11-b350185434c5)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json
Retrying in 8s [Retry 5/5].
'(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: c1a62a83-d3b1-48e9-a1d8-70e16bc9706d)')' thrown while requesting HEAD https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json
Traceback (most recent call last):
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connection.py", line 204, in _new_conn
sock = connection.create_connection(
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
response = self._make_request(
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 488, in _make_request
raise new_e
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 464, in _make_request
self._validate_conn(conn)
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1093, in _validate_conn
conn.connect()
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connection.py", line 759, in connect
self.sock = sock = self._new_conn()
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connection.py", line 213, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/python-transformers/lib/python3.10/site-packages/requests/adapters.py", line 644, in send
resp = conn.urlopen(
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/connectionpool.py", line 841, in urlopen
retries = retries.increment(
File "/root/python-transformers/lib/python3.10/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error
metadata = get_hf_file_metadata(
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata
r = _request_wrapper(
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper
response = _request_wrapper(
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 306, in _request_wrapper
response = http_backoff(method=method, url=url, **params)
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 325, in http_backoff
raise err
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 306, in http_backoff
response = session.request(method=method, url=url, **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 95, in send
return super().send(request, *args, **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/requests/adapters.py", line 665, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /distilbert/distilbert-base-uncased-finetuned-sst-2-english/resolve/714eb0f/config.json (Caused by ConnectTimeoutError(<HTTPSConnection(host='huggingface.co', port=443) at 0x7f502fd52ad0>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: c1a62a83-d3b1-48e9-a1d8-70e16bc9706d)')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/python-transformers/lib/python3.10/site-packages/transformers/utils/hub.py", line 479, in cached_files
hf_hub_download(
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download
return _hf_hub_download_to_cache_dir(
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1114, in _hf_hub_download_to_cache_dir
_raise_on_head_call_error(head_call_error, force_download, local_files_only)
File "/root/python-transformers/lib/python3.10/site-packages/huggingface_hub/file_download.py", line 1658, in _raise_on_head_call_error
raise LocalEntryNotFoundError(
huggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/root/python-transformers/lib/python3.10/site-packages/transformers/pipelines/__init__.py", line 981, in pipeline
config = AutoConfig.from_pretrained(model, _from_pipeline=task, **hub_kwargs, **model_kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1332, in from_pretrained
config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/transformers/configuration_utils.py", line 662, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/transformers/configuration_utils.py", line 721, in _get_config_dict
resolved_config_file = cached_file(
File "/root/python-transformers/lib/python3.10/site-packages/transformers/utils/hub.py", line 322, in cached_file
file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
File "/root/python-transformers/lib/python3.10/site-packages/transformers/utils/hub.py", line 553, in cached_files
raise OSError(
OSError: We couldn't connect to 'https://huggingface.co' to load the files, and couldn't find them in the cached files.
Check your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
最新发布