Downloads · 30 days
54
20% of all-time downloads
kubataba/ru-kbd-opus
ru-kbd-opus is a translation model from kubataba. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
Fine-tuned MarianMT model for Russian to Kabardian (East Circassian) translation.
Downloads · 30 days
54
20% of all-time downloads
All-time downloads
267
Public
Parameters
73.8M
1.2 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors295 MB · 98%
From the Hugging Face model README
Fine-tuned MarianMT model for Russian to Kabardian (East Circassian) translation.
This model translates from Russian to Kabardian, an endangered Northwest Caucasian language with approximately 500,000 speakers. Kabardian features complex polysynthetic morphology with 50+ consonants and ergative-absolutive alignment.
Primary uses:
Limitations:
Dataset: adiga-ai/circassian-parallel-corpus
ru_kbd (Russian → Kabardian)base_model: Helsinki-NLP/opus-mt-ru-uk
training_examples: 200,000
epochs: 7
batch_size: 32
learning_rate: 3e-4
optimizer: AdamW
max_sequence_length: 128
warmup_steps: 500
weight_decay: 0.01
framework: transformers 4.36.0
The model uses a special character mapping for training:
This ensures better tokenization compatibility with the MarianMT tokenizer.
Tested on 1,000 examples from adiga-ai/circassian-parallel-corpus:
| Metric | Score |
|---|---|
| BLEU | 18.65 |
| chrF | 52.66 |
| TER | 67.57 |
| Exact Match | 4.2% |
| Speed | 6.9 examples/sec |
| Avg Time | 74ms/example |
Test Configuration:
| Russian (Input) | Kabardian (Output) |
|---|---|
| "Затем он счастлив." | "ИтӀанэ ар насыпыфӀэщ" |
| Старых друзей отца не покидай, старых дорог отца не оставляй. | Адэм и ныбжьэгъужьыр умыбгынэж, и адэжь гъуэгужьхэр къыумыгъанэ. |
| придаточное предложение цели | мурадым и псалъэухъа къызэрыгуэкӏ |
| внушать детям уважение к старшим | сабийхэм нэхъыжьхэм пщӏэ хуащӏын |
| "Для того, кто не знает обычаев, почетное место становится проходным двором." | "Хабзэ зымыщӀэм дежкӀэ жьантӀэр пхыкӀыпӀэ мэхъу" |
Note: The model handles morphologically complex Kabardian words and preserves the special palochka character (Ӏ).
pip install transformers torch sentencepiece
from transformers import MarianMTModel, MarianTokenizer
# Load model and tokenizer
model_name = "kubataba/ru-kbd-opus"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
# Translation function
def translate_ru_to_kbd(text):
inputs = tokenizer(text, return_tensors="pt", padding=True)
outputs = model.generate(**inputs, max_length=128, num_beams=4)
translation = tokenizer.decode(outputs[0], skip_special_tokens=True)
# Restore Kabardian palochka
return translation.replace('I', 'Ӏ')
# Example
russian_text = "Здравствуйте!"
kabardian_text = translate_ru_to_kbd(russian_text)
print(f"RU: {russian_text}")
print(f"KBD: {kabardian_text}")
texts = [
"Добрый день!",
"Как вас зовут?",
"Спасибо за помощь"
]
inputs = tokenizer(texts, return_tensors="pt", padding=True, truncation=True)
outputs = model.generate(**inputs, max_length=128, num_beams=4)
translations = [
tokenizer.decode(out, skip_special_tokens=True).replace('I', 'Ӏ')
for out in outputs
]
for src, tgt in zip(texts, translations):
print(f"RU: {src} → KBD: {tgt}")
This model supports preservation of Kabardian, an endangered language classified by UNESCO.
Responsible use:
Kabardian (Adyghe-Kabardian, East Circassian) is a Northwest Caucasian language spoken by approximately 500,000 people, primarily in:
Linguistic features:
If you use this model in your research, please cite:
@misc{emkuzhev2025rukbd,
author = {Eduard Emkuzhev},
title = {Russian-Kabardian Neural Machine Translation Model},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/kubataba/ru-kbd-opus}}
}
Please also cite the base model and dataset:
@misc{helsinki-nlp-opus-ru-uk,
author = {Language Technology Research Group at the University of Helsinki},
title = {OPUS-MT Russian-Ukrainian Translation Model},
year = {2020},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/Helsinki-NLP/opus-mt-ru-uk}}
}
@dataset{qunash2025circassian,
author = {Anzor Qunash},
title = {Circassian-Russian Parallel Text Corpus v1.0},
year = {2025},
publisher = {adiga.ai},
url = {https://huggingface.co/datasets/adiga-ai/circassian-parallel-corpus}
}
For commercial licensing inquiries, please contact via email.
Model Card Authors: Eduard Emkuzhev
Last Updated: December 2025
Version: 1.0.1