deepvk / GeRaCl-USER2-base

huggingface.co
Total runs: 397
24-hour runs: 0
7-day runs: 129
30-day runs: -90
Model's Last Updated: June 11 2025
zero-shot-classification

Introduction of GeRaCl-USER2-base

Model Details of GeRaCl-USER2-base

GeRaCl-USER2-base

GeRaCl is a Ge neral Ra pid Cl assifer designed to perform zero-shot classification tasks primarily on Russian texts.

This is a model with 155M parameters that is build on top of the USER2-base sentence encoder (149M) and is fine-tuned for zero-shot classification task.

What is Zero‑Shot Classification?

Zero‑shot text classification lets a model assign user‑supplied labels to a text without seeing any training examples for those labels. At inference you simply provide the candidate labels as strings, and the model chooses the most appropriate one.

Performance

To evaluate the model, we measure quality on multiclass classification tasks from the MTEB-rus benchmark.

MTEB-rus

Model Size Type Mean(task) Kinopoisk (3 classes) Headliness (6 classes) GRNTI (28 classes) OECD (29 classes) Inappropriateness (3 classes)
GeRaCl-USER2-base 155 M GeRaCl 0.65 0.61 0.80 0.63 0.48 0.71
USER2-base 149 M Encoder 0.52 0.50 0.65 0.56 0.39 0.51
USER-bge-m3 359 M Encoder 0.53 0.60 0.73 0.43 0.28 0.62
multilingual-e5-large-instruct 560 M Encoder 0.63 0.56 0.83 0.62 0.46 0.67
mDeBERTa-v3-base-mnli-xnli 279 M NLI-encoder 0.45 0.54 0.53 0.34 0.23 0.62
bge-m3-zeroshot-v2.0 568 M NLI-encoder 0.60 0.65 0.72 0.53 0.41 0.67
Qwen2.5-1.5B-Instruct 1.5 B LLM 0.56 0.62 0.55 0.51 0.41 0.71
Qwen2.5-3B-Instruct 3 B LLM 0.63 0.63 0.74 0.60 0.43 0.75

How comparison was performed

  1. NLI‑Encoders were used via 🤗 pipeline("zero-shot-classification")

Models such as mDeBERTa-v3-base-mnli-xnli and bge-m3-zeroshot-v2.0 are pre‑trained on Natural Language Inference corpora.The Hugging Face pipeline converts classification into NLI hypotheses like:

Premise: text

Hypothesis: "This text is about {label}."

The model scores each (premise, hypothesis) pair independently; the label with the highest entailment probability wins.

  1. LLMs prompted for classification

Large‑language models such as Qwen2.5‑1.5B and Qwen2.5‑3B are queried with a simple classification prompt:

PROMPT = """Ниже указан текст. Ты должен присвоить ему один из перечисленных ниже классов.

Текст:
{}

Классы:
{}.

Твой ответ должен состоять только из выбранного класса, ничего другого.
"""
  1. GeRaCl architecture. Detailed information about this architecture is located in Training Detais section.
Installation

Clone and install directly from GitHub:

git clone https://github.com/deepvk/geracl
cd geracl

pip install -r requirements.txt

Verify your installation:

import geracl
print(geracl.__version__)
Usage
Single classification scenario
from transformers import AutoTokenizer
from geracl import GeraclHF, ZeroShotClassificationPipeline

model = GeraclHF.from_pretrained('deepvk/GeRaCl-USER2-base').to('cuda').eval()
tokenizer  = AutoTokenizer.from_pretrained('deepvk/GeRaCl-USER2-base')

pipe = ZeroShotClassificationPipeline(model, tokenizer, device="cuda")

text = "Утилизация катализаторов: как неплохо заработать"
labels = ["экономика", "происшествия", "политика", "культура", "наука", "спорт"]
result = pipe(text, labels, batch_size=1)[0]

print(labels[result])
Multiple classification scenarios
from transformers import AutoTokenizer
from geracl import GeraclHF, ZeroShotClassificationPipeline

model = GeraclHF.from_pretrained('deepvk/GeRaCl-USER2-base').to('cuda').eval()
tokenizer  = AutoTokenizer.from_pretrained('deepvk/GeRaCl-USER2-base')

pipe = ZeroShotClassificationPipeline(model, tokenizer, device="cuda")

texts = [
  "Утилизация катализаторов: как неплохо заработать",
  "Мне не понравился этот фильм"
]
labels = [
  ["экономика", "происшествия", "политика", "культура", "наука", "спорт"],
  ["нейтральный", "позитивный", "негативный"]
]
results = pipe(texts, labels, batch_size=2)

for i in range(len(labels)):
    print(labels[i][results[i]])
Training details

This is the base version with 155 million parameters, based on USER2-base sentence encoder. This model uses similar to GLiNER idea, but it has only one vector of similarity scores instead of a full matrix of similarities. Compared to the USER2-base model, there are two additional MLP layers. One is for the text embeddings and another is for the classes embeddings. You can see the detailed model's architecture on the picture below.

GeRaCl architecture

The training set is built entirely from splits of the deepvk/GeRaCl_synthethic_dataset dataset. It is a concatenation of three sub-datasets:

  • Synthetic classes part . For every training example we randomly chose one of the five class lists ( classes_0 classes_4 ) and paired it with the sample’s text. The validation and test splits were added unchanged.
  • RU-MTEB part . The entire ru_mteb_classes dataset was added to the mix.
  • RU-MTEB extended part . The entire ru_mteb_extended_classes dataset was added to the mix.
Citations
@misc{deepvk2025geracl,
    title={GeRaCl},
    author={Vyrodov, Mikhail and Spirin, Egor and Sokolov Andrey},
    url={https://huggingface.co/deepvk/GeRaCl-USER2-base},
    publisher={Hugging Face}
    year={2025},
}

Runs of deepvk GeRaCl-USER2-base on huggingface.co

397
Total runs
0
24-hour runs
97
3-day runs
129
7-day runs
-90
30-day runs

More Information About GeRaCl-USER2-base huggingface.co Model

More GeRaCl-USER2-base license Visit here:

https://choosealicense.com/licenses/apache-2.0

GeRaCl-USER2-base huggingface.co

GeRaCl-USER2-base huggingface.co is an AI model on huggingface.co that provides GeRaCl-USER2-base's model effect (), which can be used instantly with this deepvk GeRaCl-USER2-base model. huggingface.co supports a free trial of the GeRaCl-USER2-base model, and also provides paid use of the GeRaCl-USER2-base. Support call GeRaCl-USER2-base model through api, including Node.js, Python, http.

GeRaCl-USER2-base huggingface.co Url

https://huggingface.co/deepvk/GeRaCl-USER2-base

deepvk GeRaCl-USER2-base online free

GeRaCl-USER2-base huggingface.co is an online trial and call api platform, which integrates GeRaCl-USER2-base's modeling effects, including api services, and provides a free online trial of GeRaCl-USER2-base, you can try GeRaCl-USER2-base online for free by clicking the link below.

deepvk GeRaCl-USER2-base online free url in huggingface.co:

https://huggingface.co/deepvk/GeRaCl-USER2-base

GeRaCl-USER2-base install

GeRaCl-USER2-base is an open source model from GitHub that offers a free installation service, and any user can find GeRaCl-USER2-base on GitHub to install. At the same time, huggingface.co provides the effect of GeRaCl-USER2-base install, users can directly use GeRaCl-USER2-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

GeRaCl-USER2-base install url in huggingface.co:

https://huggingface.co/deepvk/GeRaCl-USER2-base

Url of GeRaCl-USER2-base

GeRaCl-USER2-base huggingface.co Url

Provider of GeRaCl-USER2-base huggingface.co

deepvk
ORGANIZATIONS

Other API from deepvk

huggingface.co

Total runs: 308.2K
Run Growth: -130.1K
Growth Rate: -42.77%
Updated:July 18 2024
huggingface.co

Total runs: 29.4K
Run Growth: -49.4K
Growth Rate: -168.23%
Updated:November 25 2024
huggingface.co

Total runs: 20.5K
Run Growth: 8.1K
Growth Rate: 39.23%
Updated:March 26 2026
huggingface.co

Total runs: 10.6K
Run Growth: 3.0K
Growth Rate: 28.66%
Updated:April 18 2025
huggingface.co

Total runs: 4.1K
Run Growth: 3.4K
Growth Rate: 82.32%
Updated:April 29 2026
huggingface.co

Total runs: 290
Run Growth: 0
Growth Rate: 0.00%
Updated:January 30 2025
huggingface.co

Total runs: 95
Run Growth: -161
Growth Rate: -169.47%
Updated:April 29 2026
huggingface.co

Total runs: 90
Run Growth: 5
Growth Rate: 5.56%
Updated:July 31 2023