Instructions to use tokiers/potion-base-2M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use tokiers/potion-base-2M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("tokiers/potion-base-2M") embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."]) print(embeddings.shape) - sentence-transformers
How to use tokiers/potion-base-2M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tokiers/potion-base-2M") 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
Commit History
-
Regenerate tokenizer.tkz as format v13 (self-contained: added/special tokens stored in-file)
Verified signatured919663
-
Upload README.md with huggingface_hub
Verified signaturea011a80 -
Upload README.md with huggingface_hub
Verified signature9289494 -
Upload tokie-banner.png with huggingface_hub
Verified signaturecbb7532 -
Upload vocab.txt with huggingface_hub
Verified signature29543f7 -
Upload tokenizer_config.json with huggingface_hub
Verified signature9ac2a4a -
Upload special_tokens_map.json with huggingface_hub
Verified signature301792b -
Upload onnx/model.onnx with huggingface_hub
Verified signature38b714f -
Upload modules.json with huggingface_hub
Verified signaturee4f3345 -
Upload model.safetensors with huggingface_hub
Verified signaturec889c04 -
Upload config.json with huggingface_hub
Verified signature5a1e1d9 -
Upload tokenizer.json with huggingface_hub
Verified signature60768c6 -
Upload tokenizer.tkz with huggingface_hub
Verified signature368c628 -
initial commit
Verified signatureb32263c