Downloads · 30 days
78
24% of all-time downloads
777Radik/potion-multilingual-128M-int8
potion-multilingual-128M-int8 is a sentence similarity model from 777Radik. Use it when you need a score for how close two texts are. It is set up for model2vec. The card lists the license as mit.
A compact, in-browser-ready quantization of minishlab/potion-multilingual-128M: int8 + PCA (256 → 128), ~64 MB. Static Model2Vec embeddings — no GPU, no neural-net inference, just a token → vector lookup + mean-pool.
Downloads · 30 days
78
24% of all-time downloads
All-time downloads
325
Public
Parameters
64M
82.7 MB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors64 MB · 77%
From the Hugging Face model README
A compact, in-browser-ready quantization of
minishlab/potion-multilingual-128M:
int8 + PCA (256 → 128), ~64 MB. Static Model2Vec
embeddings — no GPU, no neural-net inference, just a token → vector lookup + mean-pool.
101 languages, full vocabulary incl. Cyrillic. Token-free public download (CORS-enabled), so a
web page can fetch() it directly.
Try what it powers: the heavy (semantic) engine of AI-Chat Compressor — a Chrome extension that compresses AI-chat context locally by keeping only the sentences relevant to your question. → Chrome Web Store
Try it on a real conversation. This shared ChatGPT thread is a long discussion about the characters of The Great Gatsby. Open it with the extension and raise the compression strength to watch what survives: the heavy engine selects by meaning with this model, the light one by wording with BM25.

model2vec (Python), model2vec-rs (Rust), and the browser via WASM
(StaticModel::from_bytes).from model2vec import StaticModel
m = StaticModel.from_pretrained("777Radik/potion-multilingual-128M-int8")
# Cross-lingual by design: these two sentences mean the same thing and land
# close together, although they share no words and use different scripts.
emb = m.encode(["как развернуть сервис в кластере", "deploy a service to a cluster"])
Rank by cosine similarity for semantic search / retrieval / reranking. Near-lossless vs the fp32 source on semantic tasks (int8 quantization).
A head-to-head against BM25 for query-focused sentence selection under a fixed byte budget, on three public QA datasets with human-annotated evidence — code and exact commands at github.com/rnrn/ai-context:
| dataset | budget | BM25 | this model |
|---|---|---|---|
| HotpotQA — supporting-fact recall | 25% | 72.1% | 57.4% |
| MuSiQue — answer kept | 25% | 48.0% | 50.0% |
| QASPER — answer span kept | 25% | 74.4% | 81.8% |
| QASPER — answer span kept | 5% | 44.6% | 43.8% |
Neither ranker wins everywhere: lexical matching is ahead where the question repeats the wording of the passage (HotpotQA), the embeddings are ahead where it does not (QASPER). Both are far above truncating the context to the same size.
Produced with scripts/quantize-potion.py --dim 128 (model2vec int8 quantization).
Base model & method by MinishLab. License: MIT.