talira

potion-base-8M

Minish's small static English embedding model, distilled from bge-base-en-v1.5

open sourceMITself-hostablefree

potion-base-8M is a static embedding model from Minish: Model2Vec distilled it from bge-base-en-v1.5 and Tokenlearn trained it further, then it was re-weighted by token frequency, reduced with PCA and SIF-weighted. A sentence's embedding is the average of stored token vectors, with no neural network at inference, so it runs orders of magnitude faster than a transformer on CPU or GPU, at lower quality: Minish reports an average of 51.32 across its benchmark (MTEB tasks plus PEARL and WordSim), 92% of all-MiniLM-L6-v2's 55.80. It has about 7.5M parameters and 256-dimensional vectors, loads in Model2Vec, model2vec-rs and sentence-transformers, and the weights are MIT-licensed.

Problems it solves

  • embed text thousands of times faster than a transformer, on a plain CPU
  • an embedding model of a few tens of megabytes that loads instantly in a CLI or serverless function
  • embed millions of short texts for deduplication or clustering in minutes without a GPU
  • semantic similarity in a browser or WebAssembly build where a neural network is too heavy
  • good-enough sentence vectors when speed matters far more than top retrieval quality
  • features for a fast text classifier that runs on cheap hardware
  • an embedding model with no attention layers at all, just a token lookup and an average

Features

  • static embeddings: a token lookup and mean, no neural network at inference
  • about 7.5M parameters, 256-dimensional vectors
  • distilled from bge-base-en-v1.5 with Model2Vec and trained with Tokenlearn
  • average score 51.32 (MTEB 51.08), about 92% of all-MiniLM-L6-v2's (Minish's figures)
  • loads in Model2Vec (Python), model2vec-rs (Rust) and sentence-transformers
  • MIT licence

Limitations

  • Doesn't match transformer models on retrieval quality: Minish reports an MTEB retrieval score of 31.11, against 42.92 for all-MiniLM-L6-v21

Alternatives

The same job

These do what potion-base-8M does.

  1. bge-small-en-v1.5 BAAI's small English general embedding model, version 1.5
  2. potion-retrieval-32M Minish's static embedding model optimised for retrieval
  3. all-MiniLM-L6-v2 Sentence Transformers model that maps sentences and paragraphs to a 384-dimensional vector space
  4. snowflake-arctic-embed-xs Snowflake's tiny Arctic Embed retrieval model: 22M parameters, 384 dimensions
  5. bge-base-en-v1.5 BAAI's English general embedding model, version 1.5
  6. text-embedding-3-large OpenAI's most capable embedding model, 3,072 dimensions that can be shortened

Compare potion-base-8M with the top 3