Sentence Similarity demo not working

I am trying to see how “flax-sentence-embeddings/all_datasets_v3_distilroberta-base” works with my own examples but it is giving me an error on the huggingface website itself. [Errno 2] No such file or directory: ‘/data/sbert.net_models_flax-sentence-embeddings_all_datasets_v3_distilroberta-base/sentence_xlnet_config.json’

Any suggestions and/or fixes?

Doing this works fine (which is exactly the same as done in the Inference API). @Narsil this seems like an issue in the deployed image (?). Is there any chance an old version was deployed by accident?

!pip install -e git+https://github.com/UKPLab/sentence-transformers@v2_dev#egg=sentence-transformers
from sentence_transformers import SentenceTransformer, util

model = SentenceTransformer("flax-sentence-embeddings/all_datasets_v3_distilroberta-base")
1 Like

It’s fixed.

It was linked to some file corruption.
Looking into how it happened, but it’s fixed now.

Cheers,
Nicolas

2 Likes

I was also faced with the same error : [Errno 2] No such file or directory: ‘/data/syubraj_sentence_similarity_nepali/1_Pooling/config.json’ , while trying the example sentences on the hugingface website itself. All the files neede for the model are present on the repo itself.
Any suggestions?
Thank you