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") 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-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
Commit History
-
Regenerate tokenizer.tkz as format v13 (self-contained: added/special tokens stored in-file)
Verified signaturef3b6d6d
-
Upload README.md with huggingface_hub
Verified signaturecd6bc37 -
Upload README.md with huggingface_hub
Verified signaturea0e52a3 -
Upload tokie-banner.png with huggingface_hub
Verified signature4636299 -
Upload vocab.txt with huggingface_hub
Verified signature113d852 -
Upload tokenizer_config.json with huggingface_hub
Verified signaturebbb6755 -
Upload special_tokens_map.json with huggingface_hub
Verified signaturecd9b60a -
Upload onnx/model.onnx with huggingface_hub
Verified signature3daca74 -
Upload modules.json with huggingface_hub
Verified signature09a0cd9 -
Upload model.safetensors with huggingface_hub
Verified signature7702d29 -
Upload config.json with huggingface_hub
Verified signature2aff3cd -
Upload tokenizer.json with huggingface_hub
Verified signaturead5cb04 -
Upload tokenizer.tkz with huggingface_hub
Verified signature5d69adb -
initial commit
Verified signaturea5aacbe