Downloads · 30 days
25
26% of all-time downloads
panagoa/nllb-200-1.3b-kbd-pretrain
nllb-200-1.3b-kbd-pretrain 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-pretrain - 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) - Develo…
Downloads · 30 days
25
26% of all-time downloads
All-time downloads
98
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 pre-trained adaptation of the NLLB-200 (No Language Left Behind) 1.3B parameter model that has been specifically optimized to improve translation capabilities for the Kabardian language (kbd). The base NLLB-200 model was developed by Meta AI and supports 200 languages, with this variant specifically adjusted for Kabardian language translation tasks.
This model has been pre-trained building upon the original NLLB-200 model, which used parallel multilingual data from various sources and monolingual data constructed from Common Crawl. The specific additional pre-training for Kabardian likely involved specialized Kabardian language resources.
The original NLLB-200 model was evaluated using the Flores-200 dataset.
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model_name = "panagoa/nllb-200-1.3b-kbd-pretrain"
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)
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.