403 Client Error: Forbidden for url:

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

Then immediately followed by the 403 error

1 Like