#51 · Primary category: NLP Tools & Text Processing

model2vec

ai embeddings machine-learning model2vec nlp python sentence-transformers word-embeddings

Fast State-of-the-Art Static Embeddings

Project last updated:08/29/26

GitHub Stars

2.2K

Forks

124

Contributors

12

License

MIT

Why we included this project

Model2Vec distills an existing sentence transformer into a compact static embedding model that runs in pure Python without a GPU. Anyone who has served embeddings at scale knows how quickly transformer encoders eat into latency and memory budgets; this library shrinks an encoder by up to 50x and makes it up to 500x faster, at the cost of a modest accuracy dip. You can pull prebuilt distilled models from the HuggingFace hub in one line, or distill your own transformer with the provided API. It also includes a trainable classifier wrapper and supports both sequence-level and token-level embeddings, which covers semantic search, RAG pipelines, and text classification without a separate setup for each. For teams running text embeddings on commodity hardware, that is a practical shortcut that stays competitive with much larger models.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category