Instructions to use Quakeer444/Kasya-embed-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Quakeer444/Kasya-embed-150M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Quakeer444/Kasya-embed-150M") sentences = [ "Это счастливый человек", "Это счастливая собака", "Это очень счастливый человек", "Сегодня солнечный день" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Kasya-embed-150M
Kasya-embed-150M is a Russian text embedding model with 150M parameters. It is built on
deepvk/RuModernBERT-base, distilled from
ai-sage/Giga-Embeddings-instruct-10B-A1.8B-0826
and then fine-tuned contrastively.
Highlights
- First on ruMTEB among models under 1B parameters. 73.37 on
MTEB(rus, v1.1)(23 tasks) against 71.03 for the next model, all scored on one stack (November 2026). - Best retrieval under 1B. 77.44 on the three retrieval tasks, above FRIDA (77.12, 823M parameters). First in five of the seven task types among the models compared below: classification, clustering, multi-label classification, reranking and retrieval.
- 34% zero-shot. Eight of the 23 tasks were not used in training or model selection of this model: no split of their datasets was used.
- Small and fast. 150M parameters, 768-dimensional vectors, inputs up to 2048 tokens; about 5x faster than FRIDA on a CPU.
| Parameters | 150M |
| Embedding dimension | 768 |
| Maximum input | 2048 tokens |
| Pooling | mean, L2-normalized output |
| Languages | Russian; English and code as secondary |
| Instructions | required for queries, none for documents |
| License | Apache-2.0 |
Usage
The model is instruction-based. A query, or a text of a symmetric task (similarity, classification, clustering), is
encoded with an instruction in the form Instruct: {instruction}\nQuery: {text}. Retrieval documents are encoded
without any prompt. The prompts below are stored in the model's config, so prompt_name is enough.
Sentence Transformers
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("Quakeer444/Kasya-embed-150M")
queries = ["Как приучить котёнка к лотку?"]
documents = [
"Поставьте лоток в тихое место и сажайте туда котёнка после сна и еды: через несколько дней он привыкнет.",
"Прогноз погоды на выходные: в Москве ожидается дождь.",
]
query_embeddings = model.encode(queries, prompt_name="query")
document_embeddings = model.encode(documents) # documents take no prompt
print(model.similarity(query_embeddings, document_embeddings))
Symmetric tasks use the same prompt on both sides:
embeddings = model.encode(
["Кошка весь день спала на подоконнике",
"Весь день кошка проспала на окне"],
prompt_name="STS",
)
A task of your own gets a one-sentence instruction in the same format:
embeddings = model.encode(texts, prompt="Instruct: Classify the topic of a support ticket\nQuery: ")
Prompts
prompt_name |
Instruction | Use for |
|---|---|---|
query |
Given a query, retrieve relevant passages | search queries |
document |
(empty) | documents and passages |
STS |
Retrieve semantically similar text | similarity, paraphrase, deduplication |
PairClassification |
Retrieve semantically similar text | pair classification |
Classification |
Classify user passages. | classification features |
MultilabelClassification |
Classify user passages. | multi-label classification features |
Clustering |
Identify categories in user passages. | clustering |
The config also holds a prompt for each of the 23 ruMTEB tasks under the task's name (for example
RuBQRetrieval-query, KinopoiskClassification); mteb picks them up by itself.
Evaluation
MTEB(rus, v1.1), all models scored by us on one stack (mteb 2.26.33), each with its own prompts.
| Kasya-embed-150M | FRIDA | Giga-Embeddings-instruct-480M | komaru_embeddings | BERTA | |
|---|---|---|---|---|---|
| Parameters | 150M | 823M | 484M | 128M | 128M |
| Mean (Task) | 73.37 | 71.03 | 70.97 | 70.92 | 69.02 |
| Mean (TaskType) | 70.38 | 68.95 | 68.44 | 69.08 | 67.31 |
| Classification (9) | 77.96 | 73.71 | 75.15 | 74.29 | 71.22 |
| Clustering (3) | 69.96 | 67.37 | 63.36 | 66.89 | 64.67 |
| MultilabelClassification (2) | 56.61 | 52.26 | 54.79 | 54.65 | 52.14 |
| PairClassification (1) | 64.92 | 66.37 | 65.08 | 70.16 | 65.74 |
| Reranking (2) | 71.64 | 71.50 | 70.78 | 70.27 | 69.71 |
| Retrieval (3) | 77.44 | 77.12 | 76.08 | 73.26 | 73.96 |
| STS (3) | 74.10 | 74.33 | 73.81 | 74.07 | 73.72 |
BERTA is scored with search_document: on retrieval documents; with its shipped config it scores 68.45. The
leaderboard's numbers for these models, obtained with other mteb versions: FRIDA 70.95,
Giga-Embeddings-instruct-480M 70.96, komaru_embeddings 70.92, BERTA 69.39.
Per task (✓ marks a zero-shot task):
| Task | Type | Score | Zero-shot |
|---|---|---|---|
| GeoreviewClassification | Classification | 62.00 | |
| HeadlineClassification | Classification | 83.33 | ✓ |
| InappropriatenessClassification | Classification | 85.48 | |
| KinopoiskClassification | Classification | 73.40 | |
| MassiveIntentClassification | Classification | 87.75 | |
| MassiveScenarioClassification | Classification | 91.61 | |
| RuReviewsClassification | Classification | 78.75 | |
| RuSciBenchGRNTIClassification | Classification | 76.00 | |
| RuSciBenchOECDClassification | Classification | 63.32 | |
| GeoreviewClusteringP2P | Clustering | 79.08 | |
| RuSciBenchGRNTIClusteringP2P | Clustering | 71.53 | |
| RuSciBenchOECDClusteringP2P | Clustering | 59.26 | |
| CEDRClassification | MultilabelClassification | 64.94 | ✓ |
| SensitiveTopicsClassification | MultilabelClassification | 48.28 | |
| TERRa | PairClassification | 64.92 | ✓ |
| MIRACLReranking | Reranking | 66.53 | |
| RuBQReranking | Reranking | 76.74 | ✓ |
| MIRACLRetrievalHardNegatives.v2 | Retrieval | 72.53 | |
| RiaNewsRetrievalHardNegatives.v2 | Retrieval | 85.09 | ✓ |
| RuBQRetrieval | Retrieval | 74.71 | ✓ |
| RUParaPhraserSTS | STS | 77.00 | |
| STS22 | STS | 65.82 | ✓ |
| RuSTSBenchmarkSTS | STS | 79.47 | ✓ |
Speed on a CPU
Ryzen 9 9950X3D, fp32, measured on the previous checkpoint of the same architecture:
| Kasya-embed-150M | BERTA | FRIDA | |
|---|---|---|---|
| One query | 18 ms | 15 ms | 93 ms |
| One 128-token passage | 44 ms | 34 ms | 215 ms |
| 128-token passages per second | 28 | 39 | 5 |
| Memory | 1.6 GB | 1.3 GB | 4.1 GB |
Zero-shot tasks
Eight tasks are zero-shot by mteb's definition (no split of the dataset a task is derived from is used):
RiaNewsRetrievalHardNegatives.v2, STS22, RuBQRetrieval, RuBQReranking, TERRa, RuSTSBenchmarkSTS, CEDRClassification
and HeadlineClassification. For these tasks:
- no split was used as distillation text, fine-tuning row, candidate or negative;
- no split was used for model selection, prompt choice or any quality gate;
- exact copies of their texts and texts that share long fragments with them were removed from every other source (the RuBQ and RIA corpora and English STS-B with its Russian translation included; ParaPhraser Plus headlines were removed from every source but the official RUParaPhraserSTS train split);
- their test splits were evaluated once, on the final model.
The filter matches long word sequences, so another revision of the same Wikipedia paragraph can pass it: for 489 of the 56,826 RuBQ corpus passages (0.86%) some training text holds at least half of the passage, and none holds a whole one.
For the other 15 tasks the official train splits are used as published, as in the models above, and no scored split is read for training. These datasets repeat texts between splits and between sibling tasks, so about 3,200 train rows equal a test text: RuReviews train and test 763, Inappropriateness test in SensitiveTopics train 639 and the reverse 237, RuSciBench OECD test in GRNTI train 548 and the reverse 510, GeoreviewClusteringP2P test in GeoreviewClassification train 231, MASSIVE 227, RUParaPhraserSTS 27.
The teacher was trained by its authors; its papers name MS MARCO, NQ, SQuAD, MIRACL and Mr.TyDi and describe the rest of its data as non-public. The 34% counts our own training data and those named sets.
Training
- Distillation. The student learns to reproduce the teacher's vectors for texts encoded with the same instructions the benchmark uses: two epochs over 4.68M texts and a third over 7.41M texts.
- Contrastive fine-tuning. Three runs of 8,000, 3,000 and 4,500 steps at batch 256: InfoNCE (temperature 0.02) with hard negatives mined on the teacher's vectors, plus a KL term to the teacher's scores. Checkpoints are averaged between runs.
- Release build. The 768 → 1536 projection used in training is folded into an equivalent 768 → 768 layer, so the published vectors have 768 dimensions; cosine similarities change by at most 0.0012.
Every choice (checkpoint, averaging weight, prompt) was made on a held-out validation set that holds no scored benchmark text and no split of the zero-shot tasks.
Training data
All data is used for training only and is not redistributed. Every source but the official train splits was filtered
against the scored splits of all 23 tasks, and every source against every split of the eight zero-shot tasks.
Licenses to note: ai-forever/inappropriateness-classification and ai-forever/sensitive-topics-classification are
CC BY-NC-SA 4.0, and zloelias/lenta-ru states no license.
Distillation texts (no labels, the teacher's vectors as targets):
| Source | Content |
|---|---|
epfml/FineWeb2-HQ (rus_Cyrl), deepvk/cultura_ru_edu |
Russian web texts |
wikimedia/wikipedia (20231101.ru) |
Russian Wikipedia paragraphs |
hotchpotch/wikipedia-multilingual-synthetic-ir-query (ru-short_doc) |
questions with their Wikipedia paragraphs |
| miracl/miracl, castorini/mr-tydi | Russian train questions and passages |
| zloelias/lenta-ru | news titles and articles |
| d0rj/geo-reviews-dataset-2023, blinoff/kinopoisk | reviews |
| mlsa-iai-msu-lab/ru_sci_bench | paper titles and abstracts, Russian and English |
| NiGuLa/Russian_Inappropriate_Messages | short messages |
its5Q/yandex-q, webfaq_rus of codefuse-ai/F2LLM-v2 |
questions and answers |
| deepvk/ru-WANLI (train) | premises and hypotheses |
| HuggingFaceFW/fineweb-edu, ParaCrawl en-ru, CodeSearchNet and CoSQA of codefuse-ai/F2LLM-v2 | English texts, English-Russian pairs, code |
| Train splits of the 15 non-zero-shot ruMTEB tasks | texts of the label and pair tasks |
| About 460K LLM-written Russian texts (generators: deepseek-flash, glm-5.3-flash, gpt-6-luna) | distillation inputs only; not published |
Fine-tuning rows (first run; the later runs use the same sources):
| Source | Rows | Used as |
|---|---|---|
Wikipedia questions (hotchpotch, consistency-filtered, hard negatives) |
1,163,785 | retrieval |
| Lenta title → topic | 115,121 | classification |
| ru-WANLI train | 99,775 | pairs |
| geo-reviews review → rubric | 85,508 | classification |
| WebFAQ ru | 67,626 | retrieval |
| yandex-q | 45,607 | retrieval |
| GeoreviewClassification train / validation | 44,642 / 4,437 | classification |
| RuReviewsClassification train / validation | 38,826 / 12,971 | classification |
| InappropriatenessClassification train / validation | 35,633 / 3,565 | classification |
| SensitiveTopicsClassification train | 25,168 | classification |
| RuSciBench GRNTI train (classification and clustering) | 25,035 | classification |
| RuSciBench OECD train (classification and clustering) | 24,485 | classification |
| Lenta title → article | 23,720 | retrieval |
| MassiveIntent / MassiveScenario train | 9,776 / 9,776 | classification |
| KinopoiskClassification train / validation | 9,448 / 1,328 | classification |
| RUParaPhraserSTS train | 4,925 | pairs |
| MIRACL ru train (judged negatives) | 2,854 | retrieval |
The validation splits listed above are not scored by the benchmark (those tasks are scored on test).
Limitations
- Russian is the target language; English and code are secondary. Other languages were not trained.
- Queries need an instruction; a text encoded without one gives weaker vectors. Documents take none.
- Eight tasks are evaluated zero-shot. On three of them (HeadlineClassification, CEDRClassification, RuSTSBenchmarkSTS) models that train on the task's own train split score higher.
- Inputs are truncated at 2048 tokens, the length used in training and evaluation.
- Scores were obtained with
transformers4.53.3 andsentence-transformers4.1.0. Withtransformers5.24.0 andsentence-transformers6.3.0 the model gives the same vectors (mean cosine 0.999997, minimum 0.9977 on our check).
License and credits
The model is released under Apache-2.0. It is a fine-tune of
deepvk/RuModernBERT-base (Apache-2.0, revision 797f7ff). The
distillation teacher is
ai-sage/Giga-Embeddings-instruct-10B-A1.8B-0826
(MIT, revision 025be2d).
Author: Aleksandr Smirnov (Quakeer444). Kasya is the author's cat.
Citation
@misc{kasya_embed_150m,
title = {Kasya-embed-150M: a Russian text embedding model},
author = {Aleksandr Smirnov (Quakeer444)},
year = {2026},
url = {https://huggingface.co/Quakeer444/Kasya-embed-150M}
}
- Downloads last month
- 22
Model tree for Quakeer444/Kasya-embed-150M
Base model
deepvk/RuModernBERT-base