Downloads · 30 days
3
6% of all-time downloads
DanielNRU/S7-relevance-rubert-20260823
S7-relevance-rubert-20260823 is a text classification model from DanielNRU. Use it when you need a label for a piece of text. It is set up for pytorch.
Бинарная классификация релевантности русскоязычных текстов для домена S7.
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
50
Public
Parameters
356M
2.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin1.4 GB · 50%
From the Hugging Face model README
Бинарная классификация релевантности русскоязычных текстов для домена S7.
ai-forever/ruRoBERTa-largeRuBERTBinaryClassifier0.9784170.9714290.9510490.9927010.55123.0:1from huggingface_hub import hf_hub_download
from transformers import AutoTokenizer
import torch
repo = "DanielNRU/S7-relevance-rubert-20260823"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = RuBERTBinaryClassifier("ai-forever/ruRoBERTa-large", hidden_size=512)
weights = hf_hub_download(repo_id=repo, filename="model.safetensors" if (output_dir / "model.safetensors").exists() else "pytorch_model.bin")
model.load_state_dict(torch.load(weights, map_location="cpu"))
model.eval()
Модель предназначена для S7-домена. При изменении распределения данных рекомендуется повторно проверить threshold и метрики.