Timeout error when downloading sentence-transformers/all-MiniLM-L6-v2
Hi there, I’m encountering this error when I try to use the all-MiniLM-L6-v2 model. Basically keep getting a timeout error. Any ideas?File "c:\Users\dalin\Dropbox\PatentLandscaping\ingest.py", line 23, in <module>
    create_vector_db()
  File "c:\Users\dalin\Dropbox\PatentLandscaping\ingest.py", line 17, in create_vector_db
    embeddings = HuggingFaceEmbeddings(model_name = 'sentence-transformers/all-MiniLM-L6-v2', model_kwargs = {'device':'cpu'})
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\langchain\embeddings\huggingface.py", line 66, in __init__
    self.client = sentence_transformers.SentenceTransformer(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\sentence_transformers\SentenceTransformer.py", line 87, in __init__
    snapshot_download(model_name_or_path,
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\sentence_transformers\util.py", line 491, in snapshot_download
    path = cached_download(**cached_download_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\huggingface_hub\utils\_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\huggingface_hub\file_download.py", line 808, in cached_download
    http_get(
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\huggingface_hub\file_download.py", line 515, in http_get
    r = _request_wrapper(
        ^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\huggingface_hub\file_download.py", line 452, in _request_wrapper
    return http_backoff(
           ^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\huggingface_hub\utils\_http.py", line 274, in http_backoff
    raise err
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\huggingface_hub\utils\_http.py", line 258, in http_backoff
    response = session.request(method=method, url=url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\requests\sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\requests\sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\huggingface_hub\utils\_http.py", line 63, in send
    return super().send(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\dalin\Dropbox\PatentLandscaping\.venv\Lib\site-packages\requests\adapters.py", line 532, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='huggingface.co', port=443): Read timed out. (read timeout=10.0)"), '(Request 
ID: cde2c277-36a3-4901-8462-92ed3ac17d32)')
2024-03-06T05:30:23Z
I am also getting the same error, please help
2024-07-19T23:42:47Z
I’m also getting the timeout error - has anyone found the reason yet?