Can't load the configuration of 'sentence-transformers/all-MiniLM-L6-v2'

#55
by stleandro - opened

I built a RAG application embedding with all-MiniLM-L6-v2. It was running until today that I started facing following issues:

  • No sentence-transformers model found with name sentence-transformers/all-MiniLM-L6-v2. Creating a new one with MEAN pooling;
  • 'RecentlyUsedContainer' object has no attribute 'ContainerCls';
  • module 'requests' has no attribute 'exceptions';
  • Can't load the configuration of 'sentence-transformers/all-MiniLM-L6-v2'. If you were trying to load it from 'https://huggingface.co./models', make sure you don't have a local directory with the same name. Otherwise, make sure 'sentence-transformers/all-MiniLM-L6-v2' is the correct path to a directory containing a config.json file;

Someone can help me in solving issue?

Sentence Transformers org

Hello!

The first issue is quite odd. It is indicative that the model failed to load the https://huggingface.co./sentence-transformers/all-MiniLM-L6-v2/blob/main/modules.json file, even though it certainly does exist. Perhaps there was an internet outage on either side.

As for the 2nd issue: I have no idea what that's in reference to. I've never seen those classes before.
The third one is also odd, I don't see any use of requests.exceptions in Sentence Transformers.

The fourth issue is indicative of transformers failing to load the base model because https://huggingface.co./sentence-transformers/all-MiniLM-L6-v2/blob/main/config.json was not accessible.

It seems quite likely that there was some outage somewhere that resulted in this issue. I think it should go away by itself, and otherwise you are recommended to remove the cache (under ~/.cache/huggingface/hub/models--sentence-transformers--all-MiniLM-L6-v2 or .cache/torch/sentence_transformers/models--sentence-transformers--all-MiniLM-L6-v2 if you're using an older version of Sentence Transformers)

  • Tom Aarsen

Sign up or log in to comment