ReadTimeoutError when loading model

I am trying to load a model with langchain-huggingface using the following

from langchain_huggingface.embeddings.huggingface import HuggingFaceEmbeddings
model = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")

I get the following error

ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='cdn-lfs.hf.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: e8e18c49-82ab-4c61-8d6e-d478f16e6136)')

I have also tried to load the model with other packages but I still get the same error.

Does anyone have an idea why this happens and how I can resolve this ?
Thanks

1 Like

hi @thib00
I just tried for langchain and HF, and it works for both now. It might be a temporary glitch.


I have similar problems

1 Like

the reference repo runwayml/stable-diffusion-v1-5 doesn’t exist anymore.

In your case, the situation is a little different from his, and the very repo you’re trying to load has disappeared.
Try this stable-diffusion-v1-5/stable-diffusion-v1-5

Thanks for the answer, but it still does not work on my side.

Yours appears to be a network, mainly SSL issue.

1 Like