Downloads · 30 days
13
9% of all-time downloads
flt7007/mbart-mizo-merged
mbart-mizo-merged is a translation model from flt7007. 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.
Author: flt007 Base: facebook/nllb-200-distilled-600M
Downloads · 30 days
13
9% of all-time downloads
All-time downloads
140
Public
Parameters
615M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors879 MB · 96%
How the weights are stored.
I8352M · 57%
From the Hugging Face model README
Author: flt007 Base: facebook/nllb-200-distilled-600M
Low-resource English ↔ Mizo translation model fine-tuned with QLoRA.
A lightweight NLLB derivative trained on bilingual Mizo–English text to
improve coverage for the under-represented Mizo language (lus_Latn).
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model = AutoModelForSeq2SeqLM.from_pretrained('flt007/mbart-mizo-merged')
tok = AutoTokenizer.from_pretrained('flt007/mbart-mizo-merged')
text = 'We must protect our forests.'
inp = tok(text, return_tensors='pt')
out = model.generate(
**inp,
forced_bos_token_id=tok.convert_tokens_to_ids('lus_Latn'),
max_new_tokens=50
)
print(tok.decode(out[0], skip_special_tokens=True))
Released under CC-BY-NC 4.0