Unable to load sentence transformer ( was previously working)
getting error : "WARNING:sentence_transformers.SentenceTransformer:No sentence-transformers model found with name sentence-transformers/all-MiniLM-L6-v2. Creating a new one with mean pooling.
HTTPError Traceback (most recent call last)
/usr/local/lib/python3.11/dist-packages/huggingface_hub/utils/_http.py in hf_raise_for_status(response, endpoint_name)
405 try:
--> 406 response.raise_for_status()
407 except HTTPError as e:
" on code # Load an open-source embedding model
embedding_model = SentenceTransformer('all-MiniLM-L6-v2')
Hello!
I think there was a connection issue between you and Hugging Face, when it tried to check for a new version.
If it still doesn't work, then I would browse to ~/.cache/huggingface
and try and find this model. I reckon it'll be under models/sentence-transformers__all-MiniLM-L6-v2
, but I'm not 100% sure. Once you've found it, delete the folder to remove it from your cache, and then try to load the model again.
- Tom Aarsen