Downloads · 30 days
0
MihaiPopa-1/NLLB-200-Distilled-600M-Lojban
NLLB-200-Distilled-600M-Lojban is a translation model from MihaiPopa-1. Use it when you need text moved from one language to another. The card lists the license as cc-by-nc-4.0.
This is a LoRA (Low-Rank Adaptation) adapter for facebook/nllb-200-distilled-600M fine‑tuned to translate between English and Lojban (ISO code: jboLatn).
Downloads · 30 days
0
Access
Public
Updated Aug 26, 2026
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) adapter for facebook/nllb-200-distilled-600M fine‑tuned to translate between English and Lojban (ISO code: jbo_Latn).
| Property | Value |
|---|---|
| Base Model | facebook/nllb-200-distilled-600M |
| Language Pair | English ↔ Lojban |
| LoRA Rank | 16 |
| Training Epochs | 6 |
| Training Samples | 25200 (bidirectional) |
| Validation Samples | 1063 |
| Hardware | NVIDIA T4 (16GB VRAM) |
| Training Date | 2026-08-26 |
| Metric | Score |
|---|---|
| BLEU | 23.74 |
| chrF++ | 44.78 |
(Scores computed on a 100‑sample validation set.)
Parallel sentences from the Tatoeba project, extracted from the TSV dataset (source: English, target: jbo_Latn).
To use this adapter with the base NLLB‑200‑600M model:
from transformers import AutoModelForSeq2SeqLM, NllbTokenizer
from peft import PeftModel
model_id = "facebook/nllb-200-distilled-600M"
adapter_id = "MihaiPopa-1/NLLB-200-Distilled-600M-Lojban" # or local path
tokenizer = NllbTokenizer.from_pretrained(model_id)
# Add the custom language token (if needed)
if "jbo_Latn" not in tokenizer.additional_special_tokens:
tokenizer.add_special_tokens({"additional_special_tokens": ["jbo_Latn"]})
model = AutoModelForSeq2SeqLM.from_pretrained(model_id, torch_dtype=torch.float16)
model.resize_token_embeddings(len(tokenizer))
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()
# Translate English → Lojban
def translate(text, src_lang="eng_Latn", tgt_lang="jbo_Latn"):
tgt_token_id = tokenizer.convert_tokens_to_ids(tgt_lang)
tokenizer.src_lang = src_lang
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
with torch.no_grad():
outputs = model.generate(**inputs, forced_bos_token_id=tgt_token_id, max_new_tokens=128)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translate("Hello, world!"))
If you use this model, please cite the original NLLB paper and this adapter.
@article{{team2022nllb,
title={{No Language Left Behind}: Scaling Human-Centered Machine Translation},
author={{NLLB Team} and others},
journal={{arXiv preprint arXiv:2207.04672}},
year={{2022}}
}}
Trained using a Colab notebook inspired by Claude 4.6 Sonnet and DeepSeek 4 Flash.
Model card generated automatically on 2026-08-26.