Instructions to use tokiers/potion-base-8M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use tokiers/potion-base-8M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("tokiers/potion-base-8M") 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-8M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tokiers/potion-base-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
Commit History
-
Regenerate tokenizer.tkz as format v13 (self-contained: added/special tokens stored in-file)
Verified signature7652cb4
-
Upload README.md with huggingface_hub
Verified signature0bfb7f8 -
Upload README.md with huggingface_hub
Verified signature43bb9e5 -
Upload tokie-banner.png with huggingface_hub
Verified signature3cce0cb -
Upload vocab.txt with huggingface_hub
Verified signature2119dab -
Upload tokenizer_config.json with huggingface_hub
Verified signature69fd25d -
Upload special_tokens_map.json with huggingface_hub
Verified signature09c7d4c -
Upload onnx/model.onnx with huggingface_hub
Verified signature52d684a -
Upload modules.json with huggingface_hub
Verified signature33479d5 -
Upload model.safetensors with huggingface_hub
Verified signaturec029bd7 -
Upload config.json with huggingface_hub
Verified signature836bb0a -
Upload tokenizer.json with huggingface_hub
Verified signature039f8c4 -
Upload tokenizer.tkz with huggingface_hub
Verified signatureae60f8a -
initial commit
Verified signature29296a8