Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requests.exceptions.ReadTimeout #142

Open
imxintian opened this issue Nov 21, 2023 · 0 comments
Open

requests.exceptions.ReadTimeout #142

imxintian opened this issue Nov 21, 2023 · 0 comments

Comments

@imxintian
Copy link

大家有没有遇到超时问题的,怎么解决

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/neo/github/LaWGPT/webui.py", line 211, in <module>
    fire.Fire(main)
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/Users/neo/github/LaWGPT/webui.py", line 57, in main
    model = LlamaForCausalLM.from_pretrained(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/transformers/modeling_utils.py", line 3161, in from_pretrained
    resolved_archive_file, sharded_metadata = get_checkpoint_shard_files(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/transformers/utils/hub.py", line 1056, in get_checkpoint_shard_files
    cached_filename = cached_file(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/transformers/utils/hub.py", line 431, in cached_file
    resolved_file = hf_hub_download(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 1461, in hf_hub_download
    http_get(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 558, in http_get
    return http_get(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 468, in http_get
    r = _request_wrapper(
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/huggingface_hub/file_download.py", line 425, in _request_wrapper
    response = get_session().request(method=method, url=url, **params)
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/huggingface_hub/utils/_http.py", line 63, in send
    return super().send(request, *args, **kwargs)
  File "/Users/neo/github/LaWGPT/venv/lib/python3.9/site-packages/requests/adapters.py", line 532, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='cdn-lfs.huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: 2ca8c6e2-512d-46a5-b0e8-becbbebc6fa1)')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant