Downloads · 30 days
558
4% of all-time downloads
minishlab/potion-science-32M
potion-science-32M is a machine learning model from minishlab. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for model2vec. The card lists the license as mit.
<div align="center" <img width="35%" alt="Model2Vec logo" src="https://raw.githubusercontent.com/MinishLab/model2vec/main/assets/images/logov2.png" </div
Downloads · 30 days
558
4% of all-time downloads
All-time downloads
12.5K
Public
Parameters
31.9M
255 MB on disk
Likes
2
Public
Click a slice to open those files.
.onnx127 MB · 49%
From the Hugging Face model README
This Model2Vec model is pre-trained using Tokenlearn. It is a distilled version of the baai/bge-base-en-v1.5 Sentence Transformer. It uses static embeddings, allowing text embeddings to be computed orders of magnitude faster on both GPU and CPU. It is designed for applications where computational resources are limited or where real-time performance is critical. This model is pre-trained on the scientific_papers dataset consisting of scientific papers from Arxiv and Pubmed. It uses a larger vocabulary size than the potion-science-8M model which can be beneficial for tasks that require a larger (specialized) vocabulary.
Install model2vec using pip:
pip install model2vec
Load this model using the from_pretrained method:
from model2vec import StaticModel
# Load a pretrained Model2Vec model
model = StaticModel.from_pretrained("minishlab/potion-science-32M")
# Compute text embeddings
embeddings = model.encode(["Example sentence"])
Model2vec creates a small, static model that outperforms other static embedding models by a large margin on all tasks on MTEB. This model is pre-trained using Tokenlearn. It's created using the following steps:
The results for this model can be found on the Model2Vec results page.
Model2Vec was developed by the Minish Lab team consisting of Stephan Tulkens and Thomas van Dongen.
Please cite the Model2Vec repository if you use this model in your work.
@software{minishlab2024model2vec,
authors = {Stephan Tulkens, Thomas van Dongen},
title = {Model2Vec: Turn any Sentence Transformer into a Small Fast Model},
year = {2024},
url = {https://github.com/MinishLab/model2vec},
}