Error2 reports
Fix RepositoryNotFoundError
in sentence-transformers
✅ Solution
RepositoryNotFoundError usually arises when the specified model name in `SentenceTransformer()` is incorrect, or when the model requires authentication (e.g., a private model). Double-check the model name for typos and ensure it exists on the Hugging Face Hub. If the model is private, you must pass your Hugging Face API token to `SentenceTransformer(model_name_or_path, use_auth_token="YOUR_HUGGINGFACE_API_TOKEN")` or set it as an environment variable.
Related Issues
Real GitHub issues where developers encountered this error:
Timeline
First reported:Jan 31, 2025
Last reported:Feb 4, 2025
Need More Help?
View the full changelog and migration guides for sentence-transformers
View sentence-transformers Changelog