This
Model2Vec
model is a distilled version of the ibm-granite/granite-embedding-30m-english(
https://huggingface.co/ibm-granite/granite-embedding-30m-english
) 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. Model2Vec models are the smallest, fastest, and most performant static embedders available. The distilled models are up to 50 times smaller and 500 times faster than traditional Sentence Transformers.
Installation
Install model2vec using pip:
pip install model2vec
Usage
Using Model2Vec
The
Model2Vec library
is the fastest and most lightweight way to run Model2Vec models.
Load this model using the
from_pretrained
method:
from model2vec import StaticModel
# Load a pretrained Model2Vec model
model = StaticModel.from_pretrained("cnmoro/granite-30m-distilled")
# Compute text embeddings
embeddings = model.encode(["Example sentence"])
from sentence_transformers import SentenceTransformer
# Load a pretrained Sentence Transformer model
model = SentenceTransformer("cnmoro/granite-30m-distilled")
# Compute text embeddings
embeddings = model.encode(["Example sentence"])
Runs of cnmoro granite-30m-distilled on huggingface.co
11
Total runs
1
24-hour runs
1
3-day runs
1
7-day runs
4
30-day runs
More Information About granite-30m-distilled huggingface.co Model
granite-30m-distilled huggingface.co is an AI model on huggingface.co that provides granite-30m-distilled's model effect (), which can be used instantly with this cnmoro granite-30m-distilled model. huggingface.co supports a free trial of the granite-30m-distilled model, and also provides paid use of the granite-30m-distilled. Support call granite-30m-distilled model through api, including Node.js, Python, http.
granite-30m-distilled huggingface.co is an online trial and call api platform, which integrates granite-30m-distilled's modeling effects, including api services, and provides a free online trial of granite-30m-distilled, you can try granite-30m-distilled online for free by clicking the link below.
cnmoro granite-30m-distilled online free url in huggingface.co:
granite-30m-distilled is an open source model from GitHub that offers a free installation service, and any user can find granite-30m-distilled on GitHub to install. At the same time, huggingface.co provides the effect of granite-30m-distilled install, users can directly use granite-30m-distilled installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
granite-30m-distilled install url in huggingface.co: