Feature Extraction
sentence-transformers
PyTorch
Safetensors
English
roberta
language
granite
embeddings
sparse-encoder
sparse
splade
text-embeddings-inference
Instructions to use ibm-granite/granite-embedding-30m-sparse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ibm-granite/granite-embedding-30m-sparse with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ibm-granite/granite-embedding-30m-sparse") 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] - Inference
- Notebooks
- Google Colab
- Kaggle
Fix errors in docs
#2
by mbayser - opened
The model's HF id had an an extra "/" at the end preventing it to be downloaded automatically. The pymilvus installation instruction was also incomplete, missing the installation of the "model" component.
Thanks for pointing out. Fixed.
pawasthy changed pull request status to closed