Downloads · 30 days
22
8% of all-time downloads
floxoris/harmony-v0
harmony-v0 is a machine learning model from floxoris. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Floxoris Harmony v0 is a lightweight binary toxic moderation model for Russian and Ukrainian text. It is designed for fast, low-cost inference in production environments such as Telegram bots, AI assistants, chat filt…
Downloads · 30 days
22
8% of all-time downloads
All-time downloads
275
Public
Parameters
4.4M
17.5 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors17.5 MB · 96%
From the Hugging Face model README
Floxoris Harmony v0 is a lightweight binary toxic moderation model for Russian and Ukrainian text. It is designed for fast, low-cost inference in production environments such as Telegram bots, AI assistants, chat filters, and message pre-moderation pipelines.
Built on top of gravitee-io/bert-tiny-toxicity, the model focuses on practical toxicity detection with a very small footprint of roughly 40-50 MB, making it suitable for lightweight deployment scenarios.
gravitee-io/bert-tiny-toxicitynot_toxic, toxicThe model returns one of two classes:
0 = not_toxic1 = toxicThe model was fine-tuned for binary toxicity classification on a merged multilingual moderation dataset built from:
ru.parquetuk.parquetbig-ru.parquetIn big-ru.parquet, labels were originally inverted:
0 = toxic1 = safeThis issue was corrected before final training.
After label correction, the datasets were merged, cleaned, and balanced.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
model_name = "floxoris/harmony-v0"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
id2label = {
0: "not_toxic",
1: "toxic",
}
texts = [
"дарова, как день?",
"ты дибил?",
]
inputs = tokenizer(texts, padding=True, truncation=True, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1)
preds = torch.argmax(probs, dim=-1)
for text, pred, prob in zip(texts, preds, probs):
label = id2label[pred.item()]
confidence = prob[pred.item()].item()
print(f"{text} -> {label} ({confidence:.4f})")
Example model behavior on simple test inputs:
"дарова, как день?"
-> not_toxic (~0.91)
"ты дибил?"
-> toxic (~0.80)
These examples are illustrative and should not be treated as a full benchmark.
Floxoris Harmony v0 is intended for fast and lightweight toxic moderation in:
Typical use cases include:
This model is released under the Apache License 2.0.
Planned directions for future releases:
Floxoris Harmony v0 is a compact toxic moderation model optimized for practical deployment where speed, cost, and simplicity matter. It is best suited as a lightweight first-stage moderation component for Russian and Ukrainian text pipelines.