Run this model with HF Jobs

Run Veduschy/ntughari-v2.0 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Veduschy/ntughari-v2.0. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Veduschy/ntughari-v2.0 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Ntụgharị v2.0 — Bidirectional English ↔ Standard Igbo Neural Translator

Author: Udokwu T. Ugochukwu (Veduschy) · Licence: CC-BY-SA-4.0

Ntụgharị v2.0 (ntughari-v2.0-sft) is an open-weights, compact, from-scratch 56.95M-parameter Transformer encoder–decoder neural machine translation model for English ↔ Standard Igbo (Igbo Izugbe), developed by Udokwu T. Ugochukwu at Veduschy without relying on external pretrained multilingual checkpoints (such as NLLB).

  • Weights Licence: CC-BY-SA-4.0 (open for research, offline/edge apps, and commercial use with attribution and share-alike on derivative weights; Veduschy's internal curated corpora and future CPO/v3/science-specialized models remain private).
  • Files included: Standard FP32 model.safetensors (~218 MB), config.json, generation_config.json, ntughari_sp24k.model (24k shared SentencePiece tokenizer), optional CPU-ready model_int8.pt (103.22 MB), and our frozen 30-sentence science baseline (science_prompts.jsonl, science_baseline_v2_sft.jsonl).

Quick Start (transformers + sentencepiece)

pip install torch transformers sentencepiece safetensors
import sentencepiece as spm
import torch
from huggingface_hub import hf_hub_download
from transformers import MarianMTModel

REPO_ID = "Veduschy/ntughari-v2.0"  # or local path to downloaded folder

model = MarianMTModel.from_pretrained(REPO_ID).eval()
sp = spm.SentencePieceProcessor(
    model_file=hf_hub_download(REPO_ID, "ntughari_sp24k.model")
)

def translate(text: str, to: str = "ig", beams: int = 5) -> str:
    tag = "<2ig>" if to == "ig" else "<2en>"
    ids = [sp.piece_to_id(tag)] + sp.encode(text)[:254] + [sp.eos_id()]
    src = torch.tensor([ids], dtype=torch.long)
    with torch.no_grad():
        gen = model.generate(
            input_ids=src,
            attention_mask=src.ne(0),
            num_beams=beams,
            max_new_tokens=min(256, int(len(ids) * 2.5) + 10),
            decoder_start_token_id=0,
            eos_token_id=sp.eos_id(),
            pad_token_id=0,
        )
    toks = [t for t in gen[0].tolist() if t not in (0, sp.eos_id())]
    return sp.decode(toks)

print(translate("I would like to travel to Owerri for Christmas.", to="ig"))
print(translate("Ọ ga-amasị m ịga Owere maka ekeresimesi.", to="en"))

Glossary-Constrained Translation (<t0>..<t31>)

Ntụgharị v2.0 includes 32 reserved terminology placeholder tokens (<t0> through <t31>) trained during Stage 2 SFT. Wrap fixed domain terms before calling translate() and substitute the approved Igbo terms back into the output:

src = "Water is a <t0> <t1> made of <t2> and <t3>."
out = translate(src, to="ig", beams=5)
# Example output: "Mmiri bụ <t0> <t1> e ji <t2> na <t3> mee."
for tag, term in [("<t0>", "kemịkal"), ("<t1>", "kọmpaụndụ"), ("<t2>", "haịdrojịn"), ("<t3>", "ọksịjịn")]:
    out = out.replace(tag, term)
print(out)
# Mmiri bụ kemịkal kọmpaụndụ e ji haịdrojịn na ọksịjịn mee.

Model Overview

Key properties:

  • Compact & CPU-servable: 56.95M parameters (MarianMTModel layout, 6 encoder + 6 decoder layers, d_model=512), quantizable to 103.22 MB dynamic INT8 for low-resource CPU deployment.
  • High Standard Igbo orthographic compliance: 0.00% rule violations (0/997) on FLORES-200 dev en→ig and 0.07% (2/3,000) on held-out in-domain dev under Veduschy's automated Standard Igbo rules engine (36-letter Onwu alphabet, dot-only ị ọ ụ ṅ, zero tone marks in general prose, subject-pronoun and negative -ghi/-ghị vowel harmony, and standard word division/hyphenation).
  • Zero-dependency self-back-translation: Trained using iterative self-back-translation generated exclusively by Ntụgharị v1 (ig→en) with Caswell-style source tagging (<bt>), keeping all weights and synthetic data 100% independent of third-party translation models.
  • Constrained terminology support (<t0>..<t31>): 32 reserved glossary placeholder tokens trained during Stage 2 SFT for terminology-constrained translation of scientific and educational texts.

Architecture & Tokenizer

Component Specification
Architecture Transformer encoder–decoder (MarianMTModel layout)
Depth / Width 6 encoder layers, 6 decoder layers, 8 attention heads, d_model=512, d_ff=2048, ReLU
Embeddings Shared & weight-tied (encoder, decoder, output projection)
Parameters 56,950,784 (~57.0M)
Tokenizer 24,000-piece shared English+Igbo SentencePiece Unigram (nmt_nfkc, byte_fallback=True, split_digits=True)
Special symbols <2ig>, <2en> (direction tags), <bt> (tagged back-translation source marker), <t0>..<t31> (glossary placeholders)
Max sequence length 256 subword tokens
Released formats FP32 model.safetensors (~218 MB) + PyTorch dynamic INT8 model_int8.pt (103.22 MB)

Training Pipeline & Data Summary

Ntụgharị v2.0 was developed in three sequential stages on a single NVIDIA T4 GPU (Google Colab):

  1. v1 Baseline (52.85M params, 16k vocab): Trained from scratch on 553,160 rigorously cleaned human English–Igbo parallel pairs (after forensic removal of 143,420 corrupt, hallucinated, spam, duplicate, and test-leaking rows from raw public corpora).
  2. v2 Base — Tagged Self-Back-Translation (56.95M params, 24k vocab):
    • Decoded 467,849 deduplicated, dotted Standard Igbo monolingual sentences (Igbo Wikipedia, spam-cleaned Igbo news, literary prose, textbooks, and curated educational texts — strictly excluding all evaluation sets) using Ntụgharị v1 (ig→en, greedy decoding + no_repeat_ngram_size=4).
    • Retained 463,880 (99.15%) filtered pairs (463,293 after subword length/dedup filtering).
    • Trained from scratch on 1,779,879 bidirectional examples: 2× upsampled modern non-religious human bitext + 1× religious/general anchor + <bt> <2ig> tagged back-translated pairs in en→ig only (never ig→en, so target Igbo stays 100% real Standard Igbo).
  3. v2.0 Targeted SFT (3 epochs, cosine LR 5e-5 → 5e-6, dropout=0.2):
    • Fine-tuned from v2 base (best checkpoint step 29,000; SFT best step 900) on 508,734 clean, quote-normalized human examples (222,499 base human pairs — 50% modern non-religious, 20% JW300 anchor — plus 33,374 <t0>..<t31> placeholder-augmented pairs using Veduschy's scientific terminology bank and aligned entities).

All evaluation sets (FLORES-200, held-out Bible chapters, held-out news/textbook/story test splits) were strictly excluded from both parallel and monolingual training data.


Evaluation Results

All scores use sacrebleu with beam search (beams=5) on the exact same held-out FLORES-200 Standard Igbo (v8) test splits and identical 3,000-pair our_dev split across all versions.

Overall Progression (v1 → v2 → v2.0 SFT)

Benchmark Split Direction v1 (52.9M, 16k) v2 Base (57.0M, 24k+BT) v2.0 SFT (step 900) Gain vs v1
FLORES-200 dev (n=997) en → ig 38.46 (12.55) 39.78 (13.52) 40.00 (13.65) +1.54 chrF++
FLORES-200 devtest (n=1,012) en → ig 39.11 (13.75) 40.28 (14.79) 40.68 (14.89) +1.57 chrF++
FLORES-200 dev (n=997) ig → en 39.28 (15.96) 40.02 (15.92) 40.25 (15.86) +0.97 chrF++
FLORES-200 devtest (n=1,012) ig → en 39.95 (16.11) 40.62 (16.30) 40.90 (16.33) +0.95 chrF++
Held-out in-domain dev (n=3,000) en → ig 54.19 (35.72) 54.47 (35.92) 54.94 (36.37) +0.75 chrF++
Held-out in-domain dev (n=3,000) ig → en 52.68 (35.26) 52.39 (34.76) 53.09 (35.67) +0.41 chrF++

Values shown as chrF++ (BLEU). For reference, a 10.5× larger pretrained NLLB-600M baseline scored 41.4 chrF++ zero-shot on FLORES en→ig.

Domain-Sliced Held-Out Dev (v2.0 SFT)

Domain Slice n en → ig chrF++ (BLEU) ig → en chrF++ (BLEU)
Modern Igbo News (ntughari-ozi) 527 63.80 (40.61) 65.50 (46.82)
General / Religious Parallel (ntughari-ukwu) 2,258 53.34 (36.57) 50.13 (33.72)
Mixed Parallel (ntughari-nta) 67 52.76 (26.31) 50.98 (24.31)
Contemporary Bible (ntughari-akwukwo-nso) 148 48.88 (26.36) 48.97 (26.39)

Orthographic Hygiene, Placeholders & Quantized CPU Performance

Metric Value
Standard Igbo rule diffs (flores_dev en→ig, n=997) 0 / 997 (0.00%)
Standard Igbo rule diffs (flores_devtest en→ig, n=1,012) 5 / 1,012 (0.49%)
Standard Igbo rule diffs (our_dev en→ig, n=3,000) 2 / 3,000 (0.07%)
Spurious outer quote wrapping (flores_dev en→ig) 2 / 997 (0.20%)
<t0>..<t31> exact row preservation (placeholder_dev, n=500) 90.2% en→ig (92.22% tag recall) · 89.4% ig→en (92.65% tag recall)
Frozen 30-sentence science baseline (with <tK> glossary) 30/30 orthography clean · 25/29 (86.2%) exact multi-tag preservation
INT8 quantized size (model_int8.pt) 103.22 MB (vs. 218 MB FP32; +0.30 chrF++ on 30-sent FLORES CPU check)
CPU latency (2-core laptop, PyTorch INT8) 308 ms/sent (beams=1) · ~0.9–1.1 s/sent (beams=4) · ~960 MB peak RSS

Intended Use & Limitations

Intended Use

  • General-domain English ↔ Standard Igbo sentence translation (offline/edge apps, research baselines, and Veduschy's Amadiọha platform).
  • Drafting Igbo educational and scientific translations (paired with <t0>..<t31> glossary substitution) for human linguist review and post-editing on the STTAI workbench.
  • Fine-tuning starting point for African NLP researchers working on Standard Igbo NMT.

Known Limitations

  • Proposal, not final Igbo: Outputs are machine drafts requiring native-speaker review for publication-grade or textbook use.
  • Unseen technical/scientific prose: v2.0 has not yet been trained on parallel science textbooks; glossary <tK> substitution dramatically improves technical terminology accuracy, while dedicated science bitext training is planned for v3.
  • Occasional register & discourse-marker calques: Context-sensitive English connectives (e.g., however rendered as agbanyeghi na instead of mana) and niche English idioms (e.g., golf strokes vs. medical stroke) can still be translated literally; these are targeted by Stage 3 preference optimization (CPO/DPO) using linguist post-edits.
  • Sentence-level context: Translates up to 256 subword tokens per segment without cross-sentence document memory.
  • Standard Igbo focus: Trained strictly on dot-only Standard Igbo (Igbo Izugbe); dialectal variants and tone-marked orthographies are outside scope.

Data Credits & Licensing

Ntụgharị v2.0 weights are released by Veduschy under CC-BY-SA-4.0 (attribution required; derivative weights must be shared under the same licence). Veduschy's internal curated datasets remain private. We gratefully credit the following public sources used in training and evaluation:

  • Open Igbo Contemporary Bible 2020 (eBible.org, ibo, CC-BY-SA-4.0) aligned with the World English Bible (eBible.org, engwebp, Public Domain). (Modified copies carry no third-party trademark.)
  • Igbo Wikipedia (CC-BY-SA-4.0) — monolingual Igbo source for self-back-translation.
  • Tatoeba (CC-BY-2.0 FR) — English–Igbo sentence pairs.
  • FLORES-200 (Meta, CC-BY-SA-4.0) — held-out evaluation benchmark only (never used in training).
  • Additional public Igbo–English parallel and monolingual news corpora (ccibeekeoc42/english_to_igbo, iamwille/igbo_language_translation_dataset, iamwille/igbo-translation, and AfriBERTa Igbo) cleaned and deduplicated prior to training, alongside Veduschy's own curated Igbo prose, journalism, textbooks, and scientific terminology lists.

Citation

If you use Ntụgharị v2.0 weights or reference this technical report, please cite:

@techreport{udokwu2026ntughari,
  title       = {Ntụgharị v2.0: A Compact From-Scratch Bidirectional English–Standard Igbo Neural Translator via Forensic Corpus Cleaning, Tagged Self-Back-Translation, and Glossary-Aware Fine-Tuning},
  author      = {Udokwu, Temple Ugochukwu},
  institution = {Veduschy},
  year        = {2026},
  month       = {December},
  note        = {Open weights (CC-BY-SA-4.0), model version ntughari-v2.0-sft}
}
Downloads last month
19
Safetensors
Model size
56.5M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Evaluation results

  • chrF++ on FLORES-200 (Standard Igbo / Igbo Izugbe v8, devtest)
    self-reported
    40.680
  • BLEU on FLORES-200 (Standard Igbo / Igbo Izugbe v8, devtest)
    self-reported
    14.890
  • chrF++ on FLORES-200 (Standard Igbo / Igbo Izugbe v8, devtest)
    self-reported
    40.900
  • BLEU on FLORES-200 (Standard Igbo / Igbo Izugbe v8, devtest)
    self-reported
    16.330