Instructions to use tokiers/potion-base-32M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use tokiers/potion-base-32M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("tokiers/potion-base-32M") 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-32M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tokiers/potion-base-32M") 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 signature27a6e3c
-
Upload README.md with huggingface_hub
Verified signature386b40e -
Upload README.md with huggingface_hub
Verified signatureda05ca9 -
Upload tokie-banner.png with huggingface_hub
Verified signatureeb8291f -
Upload vocab.txt with huggingface_hub
Verified signature217ae1f -
Upload tokenizer_config.json with huggingface_hub
Verified signaturec999d4d -
Upload special_tokens_map.json with huggingface_hub
Verified signature97f1c8c -
Upload onnx/model.onnx with huggingface_hub
Verified signature2ecfd97 -
Upload modules.json with huggingface_hub
Verified signature29f419f -
Upload model.safetensors with huggingface_hub
Verified signature5f69a7a -
Upload config.json with huggingface_hub
Verified signature8637f01 -
Upload tokenizer.json with huggingface_hub
Verified signaturef66bd8b -
Upload tokenizer.tkz with huggingface_hub
Verified signature46a48b0 -
initial commit
Verified signaturee4eda52