I guess there is today a problem in the Hugging Face hub as I even can not edit a model or a datasets card in my profile. @julien-c can you help us? Thank you.
I’m also facing the issue for a different model, both in production code and as well as the hosted API. Cannot GET /sentence-transformers/multi-qa-MiniLM-L6-cos-v1/resolve/1de23253abdbc620a58070d408055cc9a8439375
For now, I copied the model and loaded it from the local path. I would like to know why it errored out as well.
Having the same issue with ‘sentence-transformers/all-mpnet-base-v2’. I saw there was an earlier thread on this too
Weirdly, I’m only getting it when trying to run batch on sagemaker
where I do it locally it works fine eg
model = AutoModel.from_pretrained(‘sentence-transformers/paraphrase-distilroberta-base-v2’)
and
model = AutoModel.from_pretrained(‘sentence-transformers/all-mpnet-base-v2’)
Checking the cloud log
This is an experimental beta features, which allows downloading model from the Hugging Face Hub on start up. It loads the model defined in the env var HF_MODEL_ID
@giovanni94s I was able to find the cached model located at:
~/.cache/torch/sentence_transformers.
I then copied the model directory to ./models and used:
model = SentenceTransformer('./models/sentence-transformers_multi-qa-MiniLM-L6-cos-v1') to load it from the local path. I believe it should be possible to download the model if it isn’t available in the cache directory.