Instructions to use malavar/potion-multilingual-128M-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use malavar/potion-multilingual-128M-int8 with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("malavar/potion-multilingual-128M-int8") - sentence-transformers
How to use malavar/potion-multilingual-128M-int8 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("malavar/potion-multilingual-128M-int8") 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
| { | |
| "model_type": "model2vec", | |
| "architectures": [ | |
| "StaticModel" | |
| ], | |
| "tokenizer_name": "BAAI/bge-m3", | |
| "apply_pca": null, | |
| "apply_zipf": null, | |
| "sif_coefficient": null, | |
| "hidden_dim": 256, | |
| "seq_length": 1000000, | |
| "normalize": true, | |
| "embedding_dtype": "int8" | |
| } |