cnmoro / static-jina-code-embeddings

huggingface.co
Total runs: 76
24-hour runs: 0
7-day runs: 76
30-day runs: 76
Model's Last Updated: March 06 2026

Introduction of static-jina-code-embeddings

Model Details of static-jina-code-embeddings

static-jina-code-embeddings Model Card

This Model2Vec model is a distilled version of the jinaai/jina-embeddings-v2-base-code( https://huggingface.co/jinaai/jina-embeddings-v2-base-code ) 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/static-jina-code-embeddings")

# Compute text embeddings
embeddings = model.encode(["Example sentence"])
Using Sentence Transformers

You can also use the Sentence Transformers library to load and use the model:

from sentence_transformers import SentenceTransformer

# Load a pretrained Sentence Transformer model
model = SentenceTransformer("cnmoro/static-jina-code-embeddings")

# Compute text embeddings
embeddings = model.encode(["Example sentence"])
Distilling a Model2Vec model

You can distill a Model2Vec model from a Sentence Transformer model using the distill method. First, install the distill extra with pip install model2vec[distill] . Then, run the following code:

from model2vec.distill import distill

# Distill a Sentence Transformer model, in this case the BAAI/bge-base-en-v1.5 model
m2v_model = distill(model_name="BAAI/bge-base-en-v1.5", pca_dims=256)

# Save the model
m2v_model.save_pretrained("m2v_model")
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 SIF weighting . During inference, we simply take the mean of all token embeddings occurring in a sentence.

Additional Resources
Library Authors

Model2Vec was developed by the Minish Lab team consisting of Stephan Tulkens and Thomas van Dongen .

Citation

Please cite the Model2Vec repository if you use this model in your work.

@article{minishlab2024model2vec,
  author = {Tulkens, Stephan and {van Dongen}, Thomas},
  title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
  year = {2024},
  url = {https://github.com/MinishLab/model2vec}
}

Runs of cnmoro static-jina-code-embeddings on huggingface.co

76
Total runs
0
24-hour runs
47
3-day runs
76
7-day runs
76
30-day runs

More Information About static-jina-code-embeddings huggingface.co Model

More static-jina-code-embeddings license Visit here:

https://choosealicense.com/licenses/mit

static-jina-code-embeddings huggingface.co

static-jina-code-embeddings huggingface.co is an AI model on huggingface.co that provides static-jina-code-embeddings's model effect (), which can be used instantly with this cnmoro static-jina-code-embeddings model. huggingface.co supports a free trial of the static-jina-code-embeddings model, and also provides paid use of the static-jina-code-embeddings. Support call static-jina-code-embeddings model through api, including Node.js, Python, http.

static-jina-code-embeddings huggingface.co Url

https://huggingface.co/cnmoro/static-jina-code-embeddings

cnmoro static-jina-code-embeddings online free

static-jina-code-embeddings huggingface.co is an online trial and call api platform, which integrates static-jina-code-embeddings's modeling effects, including api services, and provides a free online trial of static-jina-code-embeddings, you can try static-jina-code-embeddings online for free by clicking the link below.

cnmoro static-jina-code-embeddings online free url in huggingface.co:

https://huggingface.co/cnmoro/static-jina-code-embeddings

static-jina-code-embeddings install

static-jina-code-embeddings is an open source model from GitHub that offers a free installation service, and any user can find static-jina-code-embeddings on GitHub to install. At the same time, huggingface.co provides the effect of static-jina-code-embeddings install, users can directly use static-jina-code-embeddings installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

static-jina-code-embeddings install url in huggingface.co:

https://huggingface.co/cnmoro/static-jina-code-embeddings

Url of static-jina-code-embeddings

static-jina-code-embeddings huggingface.co Url

Provider of static-jina-code-embeddings huggingface.co

cnmoro
ORGANIZATIONS

Other API from cnmoro

huggingface.co

Total runs: 41
Run Growth: 10
Growth Rate: 24.39%
Updated:April 09 2026
huggingface.co

Total runs: 4
Run Growth: -3
Growth Rate: -75.00%
Updated:January 14 2025