Downloads · 30 days
0
Aniemore/rubert-tiny2-russian-emotion-detection-quantized
rubert-tiny2-russian-emotion-detection-quantized is a text classification model from Aniemore. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Quantized builds of Aniemore/rubert-tiny2-russian-emotion-detection — multi-label emotion recognition for Russian text over seven classes: anger, disgust, enthusiasm, fear, happiness, neutral, sadness.
Downloads · 30 days
0
Access
Public
Updated Aug 3, 2026
Repo size
329 MB
Likes
0
Public
Click a slice to open those files.
.safetensors329 MB · 98%
From the Hugging Face model README
Quantized builds of Aniemore/rubert-tiny2-russian-emotion-detection — multi-label emotion recognition for Russian text over seven classes: anger, disgust, enthusiasm, fear, happiness, neutral, sadness.
The weights here are the published original, quantized. They were not retrained and they are not a different model.
| subfolder | scheme | weights | ROC AUC (macro) | macro-F1 | WA | UA |
|---|---|---|---|---|---|---|
| (original repo) | fp32 | 111 MiB | 0.8696 | 0.6015 | 0.7662 | 0.6050 |
int8 | W8A16 | 107 MiB | 0.8696 | 0.6013 | 0.7662 | 0.6050 |
fp8 | W8A16-float | 107 MiB | 0.8695 | 0.6014 | 0.7646 | 0.6028 |
int4 | W4A16_ASYM | 106 MiB | 0.8738 | 0.5981 | 0.7588 | 0.6041 |
ROC AUC is listed first because the head is multi-label: macro-F1 depends on the decision threshold, which is 0.5 here because that is what the head was trained under, while ROC AUC does not.
Only Linear layers are quantized. In a BERT classifier the embedding matrix is not one of them, and on the smaller models it is most of the checkpoint — so the saving here scales with the encoder rather than with the parameter count. The large model compresses well; rubert-tiny barely moves, and the table above says so rather than quoting a ratio from the layers that did shrink.
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
repo = "Aniemore/rubert-tiny2-russian-emotion-detection-quantized"
model = AutoModelForSequenceClassification.from_pretrained(
repo, subfolder="int8").eval() # or "fp8", "int4"
tok = AutoTokenizer.from_pretrained(repo, subfolder="int8")
x = tok("мне сегодня очень грустно", return_tensors="pt")
with torch.no_grad():
# multi-label: sigmoid per class, not softmax over classes
probs = model(**x).logits.sigmoid()[0]
print({model.config.id2label[i]: round(p.item(), 3) for i, p in enumerate(probs)})
cointegrated/rubert-tiny2; the licence follows the base model.