Instructions to use optimum/all-MiniLM-L6-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use optimum/all-MiniLM-L6-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("optimum/all-MiniLM-L6-v2") 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] - Notebooks
- Google Colab
- Kaggle
Commit History
-
Create README.md
1024484 -
Upload tokenizer.json
b55c93a -
Upload special_tokens_map.json
8bd0678 -
Upload config.json
2b38b08 -
Upload tokenizer_config.json
1a81b05 -
Upload model.onnx with git-lfs
4db8c58 -
Upload vocab.txt
577832e -
initial commit
d7b0132