Downloads · 30 days
22
21% of all-time downloads
panagoa/nllb-200-1.3b-kbd-v0.1
nllb-200-1.3b-kbd-v0.1 is a translation model from panagoa. Use it when you need text moved from one language to another. The card lists the license as cc-by-nc-4.0.
- Model Name: nllb-200-1.3b-kbd-v0.1 - Base Model: NLLB-200 1.3B - Model Type: Translation - Language(s): Kabardian and others from NLLB-200 (200 languages) - License: CC-BY-NC (inherited from base model) - Developer:…
Downloads · 30 days
22
21% of all-time downloads
All-time downloads
104
Public
Parameters
1.4B
5.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.5 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version (v0.1) of the NLLB-200 (No Language Left Behind) 1.3B parameter model, specifically optimized for Kabardian language translation. It builds upon the pre-trained variant (panagoa/nllb-200-1.3b-kbd-pretrain) with further fine-tuning to enhance translation quality and accuracy for the Kabardian language. The model represents an early release in panagoa's series of Kabardian language translation models.
This model has been fine-tuned on specialized Kabardian language datasets, building upon the original NLLB-200 model which used parallel multilingual data from various sources. The fine-tuning process likely focused on improving translation quality specifically for Kabardian language pairs.
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = "panagoa/nllb-200-1.3b-kbd-v0.1"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
# Example: Translating to Kabardian
src_lang = "eng_Latn" # English
tgt_lang = "kbd_Cyrl" # Kabardian in Cyrillic script
text = "Hello, how are you?"
inputs = tokenizer(f"{src_lang}: {text}", return_tensors="pt")
translated_tokens = model.generate(
**inputs,
forced_bos_token_id=tokenizer.lang_code_to_id[tgt_lang],
max_length=30
)
translation = tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0]
print(translation)
# Example: Translating from Kabardian
kbd_text = "Сэлам, дауэ ущыт?"
inputs = tokenizer(f"{tgt_lang}: {kbd_text}", return_tensors="pt")
translated_tokens = model.generate(
**inputs,
forced_bos_token_id=tokenizer.lang_code_to_id[src_lang],
max_length=30
)
translation = tokenizer.batch_decode(translated_tokens, skip_special_tokens=True)[0]
print(translation)
As noted for the base NLLB-200 model:
This model is part of a collection of NLLB models fine-tuned for Kabardian language translation developed by panagoa. For optimal performance, compare results with other models in the collection, particularly more recent versions.