Instructions to use minishlab/potion-base-4M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use minishlab/potion-base-4M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("minishlab/potion-base-4M") - sentence-transformers
How to use minishlab/potion-base-4M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("minishlab/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
Download model.safetensors from minishlab/potion-base-4M: direct link, hf CLI and curl.
- Browser
- Download file 15.1 MB
-
https://huggingface.co/minishlab/potion-base-4M/resolve/main/model.safetensors
- Command line
-
hf download hf://minishlab/potion-base-4M/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/minishlab/potion-base-4M/resolve/main/model.safetensors
15.1 MB
- Xet hash:
- 581455fac83987f3e0579f0f5ff948bb1aff3f8394eb7ea83ab8424b3a9db7c1
- Size of remote file:
- 15.1 MB
- SHA256:
- 8a7140edd17ffab30ddcff1135eda127df57abfae856203dbd7b3d061295c31a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.