model2vec logo

model2vec

MinishLab/model2vec

Fast State-of-the-Art Static Embeddings

GraphCanon updated 3d · GitHub synced 3d

2.2k stars123 forksLast push 5d Python MIT

Decision brief

model2vec is a Python tool for generating static embeddings with an emphasis on efficiency and state-of-the-art performance.

Good fit when

  • When you need to create fast and efficient static embeddings for natural language processing (NLP) tasks.
  • Ideal if your project requires state-of-the-art static embeddings without the overhead of more complex models or frameworks.

Avoid when

  • Avoid using model2vec if dynamic embeddings are required, as it specializes in static embedding generation.
  • Not recommended for scenarios where you need a framework that supports real-time learning or continuous updates to embeddings as new data becomes available.

Observed Jul 12, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (1d since push)
As of 3d
Provenance
Not a fork · Organization account
As of 3d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install model2vec
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Provides a toolset for generating static embeddings efficiently.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Aug 22, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 22, 2026)

```python from model2vec import StaticModel
Source link

Tags

README


Fast State-of-the-Art Static Embeddings

Model2Vec is a technique to turn any sentence transformer into a small, fast static embedding model. Model2Vec reduces model size by a factor up to 50 and makes models up to 500 times faster, with a small drop in performance. Our best model is the most performant static embedding model in the world. See our results, read our docs, or dive in to see how it works.

QuickstartUpdates & AnnouncementsMain FeaturesModel List

Quickstart

Install the lightweight base package with:

pip install model2vec

You can start using Model2Vec by loading one of our flagship models from the HuggingFace hub. These models are pre-trained and ready to use. The following code snippet shows how to load a model and make embeddings, which you can use for any task, such as text classification, retrieval, clustering, or building a RAG system:

from model2vec import StaticModel

# Load a model from the HuggingFace hub (in this case the potion-base-32M model)
model = StaticModel.from_pretrained("minishlab/potion-base-32M")

# Make embeddings
embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."])

# Make sequences of token embeddings
token_embeddings = model.encode_as_sequence(["It's dangerous to go alone!", "It's a secret to everybody."])

For advanced usage, see our inference docs. Instead of using one of our models, you can also distill your own Model2Vec model from a Sentence Transformer model. First, install the distillation extras with:

pip install model2vec[distill]

Then, you can distill a model in ~30 seconds on a CPU with the following code snippet:

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_

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.