Instructions to use kiselyovd/grnti-text-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kiselyovd/grnti-text-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kiselyovd/grnti-text-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kiselyovd/grnti-text-classifier") model = AutoModelForSequenceClassification.from_pretrained("kiselyovd/grnti-text-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Scientific-Text Classification
XLM-RoBERTa assigns Russian scientific titles/abstracts to 28 GRNTI subjects.
Classify your own abstract · Browse source subjects · Code & evaluation
Evaluation
Current artifact and evaluation
Native checkpoint replay on 2,772 pinned source test abstracts
| Metric | Value |
|---|---|
| Top-1 accuracy | 72.37% |
| Top-5 accuracy | 96.75% |
| Macro F1 | 72.30% |
Current pinned source test split. Original training dataset revision and membership were not recorded; held-out independence is not re-established by this replay.
Evaluation record · Pinned model
The replay stores logits, source IDs and targets. Original training membership is unrecorded. Historical ruBERT baseline values (72.9% top-1 / 95.9% top-5 / 72.8% macro F1) were not replayed here. Protocol and source checksums.
Use the native checkpoint
from transformers import pipeline
classifier = pipeline(
"text-classification", model="kiselyovd/grnti-text-classifier",
revision="24fbe75c27112612a464935c95465def6af788ef",
trust_remote_code=False, top_k=5,
)
print(classifier("Исследование квантовой электродинамики в кристаллах.",
truncation=True, max_length=256))
The training/inference recipe is 256 tokens, although the tokenizer capacity is 512. Scores are uncalibrated softmax values. Exact five- and six-digit checkpoint code strings are preserved; 680000 and 683500 share the same stored name and remain separate classes.
Numerical evidence
Scope and component terms
The model targets Russian scientific subject assignment. Domain shift, overlapping subjects and text truncation limit its use. Visitor examples are illustrations rather than benchmark labels.
Code and the author-declared weights are MIT. The source corpus and XLM-RoBERTa-base separately declare MIT; dependencies retain their terms. Component details and citation.
- Downloads last month
- 41
Model tree for kiselyovd/grnti-text-classifier
Base model
FacebookAI/xlm-roberta-baseDataset used to train kiselyovd/grnti-text-classifier
Space using kiselyovd/grnti-text-classifier 1
Collection including kiselyovd/grnti-text-classifier
Evaluation results
- Top-1 accuracy on ru-scibench-grnti-classification pinned source testself-reported0.724
- Top-5 accuracy on ru-scibench-grnti-classification pinned source testself-reported0.968
- Macro F1 on ru-scibench-grnti-classification pinned source testself-reported0.723

