Downloads · 30 days
0
welyjesch/nllb-lora-en-hil
nllb-lora-en-hil is a translation model from welyjesch. Use it when you need text moved from one language to another. It is set up for peft. The card lists the license as mit.
This model is a fine-tuned version of facebook/nllb-200-distilled-600M optimized for translating English (engLatn) to Hiligaynon (hilLatn).
Downloads · 30 days
0
Access
Public
Updated Jun 7, 2026
Parameters
615M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 94%
From the Hugging Face model README
This model is a fine-tuned version of facebook/nllb-200-distilled-600M optimized for translating English (eng_Latn) to Hiligaynon (hil_Latn).
It was trained using LoRA (Low-Rank Adaptation) to capture the specific lexical and grammatical nuances of the Hiligaynon (Ilonggo) language, with a heavy focus on removing Tagalog and English pollution from the training data.
Hiligaynon is often under-represented or misclassified as Tagalog in large-scale multilingual models. This fine-tuning project specifically targets the "Tagalog pollution" problem common in scraped datasets.
The model was trained on the welyjesch/bombo_hil_eng_raw_translations dataset.
A critical phase of this model's development was the Strict Cleanup Pipeline. Using lingua-language-detector, the dataset was filtered to remove:
This ensures that the model learns actual Hiligaynon (e.g., using "gid", "sang", "amon") rather than defaulting to Tagalog structures.
q_proj, v_proj, k_proj, out_proj, fc1, fc2You can use this model directly with the transformers library. Note that you must load the base NLLB model and the LoRA adapters.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
from peft import PeftModel
import torch
model_id = "facebook/nllb-200-distilled-600M"
adapter_id = "YOUR_USERNAME/YOUR_REPO_NAME" # or local path
tokenizer = AutoTokenizer.from_pretrained(model_id)
base_model = AutoModelForSeq2SeqLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
model = PeftModel.from_pretrained(base_model, adapter_id)
model = model.merge_and_unload()
def translate(text):
inputs = tokenizer(text, return_tensors="pt").to("cuda")
outputs = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids("hil_Latn"),
max_length=128
)
return tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
print(translate("Good morning! How are you today?"))
The training data is sourced from Bombo Radyo translations. Special thanks to the researchers and contributors of the Hiligaynon NLP community.