Downloads · 30 days
19
8% of all-time downloads
kawinduwijewardhane/nllb-sinhala-english
nllb-sinhala-english is a translation model from kawinduwijewardhane. Use it when you need text moved from one language to another. The card lists the license as cc-by-nc-4.0.
A fine-tuned version of facebook/nllb-200-distilled-600M for bidirectional Sinhala ↔ English machine translation, optimized for short-form UI, application, and conversational text.
Downloads · 30 days
19
8% of all-time downloads
All-time downloads
233
Public
Parameters
615M
2.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
A fine-tuned version of facebook/nllb-200-distilled-600M for bidirectional Sinhala ↔ English machine translation, optimized for short-form UI, application, and conversational text.
This model is based on Meta's NLLB-200 Distilled 600M checkpoint and has been fine-tuned on a custom parallel corpus of Sinhala-English sentence pairs. It supports translation in both directions:
sin_Sinh) → English (eng_Latn)eng_Latn) → Sinhala (sin_Sinh)The model is designed specifically for short text commonly found in user interfaces, applications, games, and everyday conversations.
This model is suitable for:
This model is not intended for:
Additional limitations:
The model was trained on a custom Sinhala-English parallel dataset collected from UI, application, and game-related text.
Dataset preparation included:
facebook/nllb-200-distilled-600MThe model was evaluated on a held-out test set consisting of 1,721 sentence pairs covering both translation directions.
Evaluation metrics:
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained(
"kawinduwijewardhane/nllb-sinhala-english"
)
model = AutoModelForSeq2SeqLM.from_pretrained(
"kawinduwijewardhane/nllb-sinhala-english"
)
tokenizer.src_lang = "sin_Sinh"
inputs = tokenizer(
"ඔබට කොහොමද",
return_tensors="pt"
)
generated = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids("eng_Latn"),
max_length=64,
)
print(tokenizer.batch_decode(generated, skip_special_tokens=True))
An INT8-quantized CTranslate2 version is also available for efficient CPU deployment:
https://huggingface.co/kawinduwijewardhane/nllb-sinhala-english-ct2
This model inherits the license of its base model (facebook/nllb-200-distilled-600M) and is released under CC BY-NC 4.0.
Commercial use is not permitted under this license. Please review the original NLLB license before using this model in commercial applications.
If you use or reference the underlying NLLB model, please cite:
NLLB Team et al. (2022).
No Language Left Behind: Scaling Human-Centered Machine Translation.