Instructions to use tokiers/potion-base-4M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use tokiers/potion-base-4M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("tokiers/potion-base-4M") - sentence-transformers
How to use tokiers/potion-base-4M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tokiers/potion-base-4M") 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
Upload special_tokens_map.json with huggingface_hub
Browse files- special_tokens_map.json +7 -0
special_tokens_map.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"sep_token": "[SEP]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"unk_token": "[UNK]",
|
| 6 |
+
"mask_token": "[MASK]"
|
| 7 |
+
}
|