Open Snikch63200 opened 4 weeks ago
The error you're encountering indicates that the model name you're using, mxbai-embed-large-v1-f16
, is not found on the Hugging Face Hub, or it might be a private model that requires authentication.
Here are some steps to resolve this issue:
Verify Model Name: Double-check the model name to ensure it is correct and available on the Hugging Face Hub. You can search for the model on Hugging Face Models to confirm its existence.
Authentication for Private Models: If the model is private, you need to authenticate with the Hugging Face Hub. You can do this by logging in using the huggingface-cli login
command in your terminal, which will prompt you to enter your Hugging Face credentials. Alternatively, you can pass your Hugging Face token directly in your script:
from transformers import AutoConfig
config = AutoConfig.from_pretrained(
"sentence-transformers/mxbai-embed-large-v1-f16",
use_auth_token="your_huggingface_token"
)
Check API Key and Base URL: Ensure that the api_base
and api_key
parameters are correctly set if you are using a custom API. However, these parameters are not typically used for accessing models on the Hugging Face Hub, so you might not need them unless you have a specific setup.
Local Model Path: If you have the model downloaded locally, ensure that the path is correct and accessible. You can specify the local path directly in the name
parameter.
By following these steps, you should be able to resolve the issue and successfully load the model.
To continue talking to Dosu, mention @dosu.
Hello,
I'm trying to setting up a local SentenceTransformerEmbeddingModel :
I got this error :
Hox to fix this ?
Thanks.
@Dosu.