Downloads · 30 days
6
4% of all-time downloads
harshbheem/kreol-bhojpuri-translator
kreol-bhojpuri-translator is a translation model from harshbheem. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a fine-tuned multilingual sequence-to-sequence translation model built using Hugging Face Transformers. It translates Kreol Morisien (Latin script) to Bhojpuri Morisien (romanized, Latin script).
Downloads · 30 days
6
4% of all-time downloads
All-time downloads
158
Public
Parameters
615M
5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
This repository contains a fine-tuned multilingual sequence-to-sequence translation model built using Hugging Face Transformers. It translates Kreol Morisien (Latin script) to Bhojpuri Morisien (romanized, Latin script).
mfe_Latnbho_LatnAll evaluations and demos use the same decoding configuration:
num_beams = 6no_repeat_ngram_size = 3length_penalty = 1.0max_length = 96early_stopping = TrueLanguage forcing:
tokenizer.src_lang = "mfe_Latn"tokenizer.tgt_lang = "bho_Latn"forced_bos_token_id = tokenizer.convert_tokens_to_ids("bho_Latn")Metrics computed using sacrebleu on a fixed test split:
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
repo_id = "harshbheem/kreol-bhojpuri-translator"
tokenizer = AutoTokenizer.from_pretrained(repo_id, use_fast=False)
model = AutoModelForSeq2SeqLM.from_pretrained(repo_id)
tokenizer.src_lang = "mfe_Latn"
tokenizer.tgt_lang = "bho_Latn"
tgt_id = tokenizer.convert_tokens_to_ids("bho_Latn")
decode_kwargs = dict(
num_beams=6,
no_repeat_ngram_size=3,
length_penalty=1.0,
max_length=96,
early_stopping=True,
forced_bos_token_id=tgt_id,
)
text = "mo pe al lekol"
inputs = tokenizer(text, return_tensors="pt")
with torch.inference_mode():
output = model.generate(**inputs, **decode_kwargs)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Harsh Bheem. (2026). Kreol Morisien → Bhojpuri Morisien Neural Machine Translation (Undergraduate dissertation project).