Instructions to use nvidia/NV-Embed-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nvidia/NV-Embed-v1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nvidia/NV-Embed-v1", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Access to model nvidia/NV-Embed-v1 is restricted. You must be authenticated to access it
Access to model nvidia/NV-Embed-v1 is restricted. You must be authenticated to access it.I cannot run the code template and I think I already get the access,but still error happened
I had the same issue.
Fixed by running huggingface-cli login first.
I am also having trouble accesing the model, even when logging in via cli.
@alcocerjj Did you accept "the conditions to access its files and content" from the top of model card?
Hi i have the same problem and i do the same with the command login
Access to model nvidia/NV-Embed-v1 is restricted. You must be authenticated to access it.I cannot run the code template and I think I already get the access,but still error happened
After using huggingface cli login in ,it fixed now