Introduction of multilingual-e5-small-distilled-16m
Model Details of multilingual-e5-small-distilled-16m
multilingual-e5-small-distill Model Card
This
Model2Vec
model is a distilled version of the
intfloat/multilingual-e5-small
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.
Installation
Install model2vec using pip:
pip install model2vec
Usage
Load this model using the
from_pretrained
method:
from model2vec import StaticModel
# Load a pretrained Model2Vec model
model = StaticModel.from_pretrained("cnmoro/multilingual-e5-small-distilled-16m")
# Compute text embeddings
embeddings = model.encode(["Example sentence"])
How it works
Model2vec creates a small, fast, and powerful model that outperforms other static embedding models by a large margin on all tasks we could find, while being much faster to create than traditional static embedding models such as GloVe. Best of all, you don't need any data to distill a model using Model2Vec.
It works by passing a vocabulary through a sentence transformer model, then reducing the dimensionality of the resulting embeddings using PCA, and finally weighting the embeddings using zipf weighting. During inference, we simply take the mean of all token embeddings occurring in a sentence.
@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},
}
Runs of cnmoro multilingual-e5-small-distilled-16m on huggingface.co
74
Total runs
2
24-hour runs
27
3-day runs
30
7-day runs
54
30-day runs
More Information About multilingual-e5-small-distilled-16m huggingface.co Model
More multilingual-e5-small-distilled-16m license Visit here:
multilingual-e5-small-distilled-16m huggingface.co is an AI model on huggingface.co that provides multilingual-e5-small-distilled-16m's model effect (), which can be used instantly with this cnmoro multilingual-e5-small-distilled-16m model. huggingface.co supports a free trial of the multilingual-e5-small-distilled-16m model, and also provides paid use of the multilingual-e5-small-distilled-16m. Support call multilingual-e5-small-distilled-16m model through api, including Node.js, Python, http.
multilingual-e5-small-distilled-16m huggingface.co is an online trial and call api platform, which integrates multilingual-e5-small-distilled-16m's modeling effects, including api services, and provides a free online trial of multilingual-e5-small-distilled-16m, you can try multilingual-e5-small-distilled-16m online for free by clicking the link below.
cnmoro multilingual-e5-small-distilled-16m online free url in huggingface.co:
multilingual-e5-small-distilled-16m is an open source model from GitHub that offers a free installation service, and any user can find multilingual-e5-small-distilled-16m on GitHub to install. At the same time, huggingface.co provides the effect of multilingual-e5-small-distilled-16m install, users can directly use multilingual-e5-small-distilled-16m installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
multilingual-e5-small-distilled-16m install url in huggingface.co: