Sentence Similarity
sentence-transformers
PyTorch
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use IR-Cocktail/bert-small-mean-v3-msmarco with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use IR-Cocktail/bert-small-mean-v3-msmarco with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("IR-Cocktail/bert-small-mean-v3-msmarco") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use IR-Cocktail/bert-small-mean-v3-msmarco with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("IR-Cocktail/bert-small-mean-v3-msmarco") model = AutoModel.from_pretrained("IR-Cocktail/bert-small-mean-v3-msmarco", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 8cd185ad6f4ac3ce846f1aded3f2de26457677f29f626eae6c391cfdf3d4b4fc
- Size of remote file:
- 115 MB
- SHA256:
- 832317f5dd5400250eea0b50119120ef722cb92b4e4d8ead42b3c8115a800800
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.