Instructions to use minishlab/potion-science-8M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use minishlab/potion-science-8M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("minishlab/potion-science-8M") - sentence-transformers
How to use minishlab/potion-science-8M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("minishlab/potion-science-8M") 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
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,6 +5,7 @@ model_name: potion-science-8M
|
|
| 5 |
tags:
|
| 6 |
- embeddings
|
| 7 |
- static-embeddings
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# potion-science-8M Model Card
|
|
|
|
| 5 |
tags:
|
| 6 |
- embeddings
|
| 7 |
- static-embeddings
|
| 8 |
+
- sentence-transformers
|
| 9 |
---
|
| 10 |
|
| 11 |
# potion-science-8M Model Card
|