mobtranslate.com / docs › Mi'gmaq source: migmaq-model-training.md

Mi'gmaq Translation Model v1: Training Record and Operator Handoff

Program: MobTranslate Mi'gmaq translation research
Started: 2026-07-12
Current phase: run complete; frozen test, artifact verification, and local serving checks complete
Deployment status: guarded noncommercial research preview only; unrestricted promotion blocked
Intended direction for v1: English to Mi'gmaq (eng_Latn -> custom mic_Latn)
Research root: /mnt/donto-data/donto-resources/research/translation-training/migmaq-runpod-2026-07-12/

1. Purpose and non-claims

This program builds a reproducible first neural translation candidate from the sentence examples in the Mi'gmaq/Mi'kmaq Online Talking Dictionary. The candidate is a research instrument. It is not a speaker, authority, normative orthography, or replacement for review by Mi'gmaq language experts.

The first candidate will be trained and evaluated on attested dictionary example pairs. The public interface must label generated text as model output and must not imply community endorsement. A model is not promoted merely because its training loss decreases.

2. Source, rights, dialect, and orthography

Field Frozen ruling
Source Mi'gmaq/Mi'kmaq Online Talking Dictionary
Collection URL https://mikmaqonline.org/
Entry index https://mikmaqonline.org/all-words.html
Local source archive /mnt/donto-data/donto-resources/research/migmaq-online-talking-dictionary-2026-07-12/
License Creative Commons Attribution-NonCommercial 4.0 International
Commercial use Not permitted by the source license
Required attribution Mi'gmaq/Mi'kmaq Online Talking Dictionary (mikmaqonline.org), CC BY-NC 4.0
Orthographic scope Contemporary Listuguj spellings in the source collection
Speaker scope All entries have Listuguj recordings; some source records also contain Unama'ki recordings

The source site says the project began in Listuguj and that its entries use Listuguj spellings. That statement defines the written-data scope of this run. Source-supplied speaker codes are retained as opaque provenance only. They are not expanded into identities, dialect labels, or consent claims.

The NLLB base model is also noncommercially licensed. Every dataset, adapter, merged checkpoint, model card, download page, and endpoint created by this program must therefore remain research-only and noncommercial unless the relevant rights holders grant broader permission.

3. Frozen source inventory

The source snapshot contains:

Headword translations are lexical records, not sentence translations. They will be exported as a separate auxiliary dataset and will not be mixed into the sentence test score. The sentence candidate will initially use only complete, source-attested example pairs.

3.1 Frozen dataset release

Field Value
Release ID migmaq-online-example-parallel-v1.0.0-20260712
Source manifest SHA-256 1859ce4541130c6604550210f511aad378171ed2d79868e1f64e3cf3b5a57dfc
Complete source examples 7,234
Unique normalized sentence pairs 7,226
Train 5,798
Validation 686
Frozen test 742
Lexical auxiliary rows 6,733
Leakage violations 0 across 6 audited dimensions
Download complete TAR.GZ
Archive SHA-256 805c225aeebf0596fa4f892d89cf930a23a395e2b58c1c059cb47a7092f86368
Direct manifest manifest.json
File checksums SHA256SUMS

Two independent disposable builds produced the same archive digest before the canonical release was written. The release builder refuses to overwrite this version.

One example at entries/u/utanmji'jmuowa/utanmji'jmuowa.html#example-0 has no English translation and is excluded with a structural-rejection record. Eight repeated bilingual instances collapse to their unique pairs while retaining every contributing source record. One U+0092 C1 control inherited from the source HTML is deterministically interpreted as its Windows-1252 punctuation value and recorded in the quality audit. No lexical content is silently corrected.

4. Corpus construction contract

The dataset builder must:

  1. read the immutable manifests/entries.jsonl source snapshot;
  2. validate every input record against a typed schema;
  3. preserve Unicode, capitalization, punctuation, apostrophes, source URLs, entry IDs, example indexes, source checksums, and recording provenance;
  4. reject only structurally unusable rows, while reporting suspicious rows for review instead of silently rewriting them;
  5. normalize to Unicode NFC and collapse transport whitespace without lowercasing or stripping diacritics;
  6. deduplicate exact normalized bilingual pairs while retaining every contributing source reference;
  7. construct connected leakage groups for entries sharing a normalized headword, Mi'gmaq sentence, English sentence, or bilingual pair;
  8. assign whole connected groups deterministically to train, validation, or test;
  9. assert that no grouped entry, normalized source sentence, normalized target sentence, or normalized bilingual pair crosses a split;
  10. publish JSONL data, manifests, rights records, leakage reports, checksums, and a reproducibility README.

The held-out test set is frozen before model selection. It must not be used to choose epoch count, learning rate, token initialization, decoding settings, or architecture. Selection uses training diagnostics and the validation split only. The test set is read once for the final candidate report.

5. Model design

The first conservative candidate reuses the proven MobTranslate NLLB-LoRA pipeline:

Mi'gmaq is not one of NLLB-200's built-in language tokens. Any existing token used to initialize mic_Latn is only a numerical starting point. It is not a claim of genealogical relationship, dialect identity, or linguistic equivalence. The choice and its validation evidence must be recorded.

6. Mandatory gates

6.1 Data gates

6.2 Plumbing gate

Before the full run, a small training-only subset must demonstrate that:

6.3 Candidate gates

The final report must include, at minimum:

Automatic metrics alone cannot establish grammatical or cultural adequacy. Public promotion requires review by qualified Mi'gmaq speakers or language workers. Until that review exists, the model remains visibly labelled as a research candidate.

7. RunPod operating procedure

  1. Create a versioned local run contract and checksum it.
  2. Select a 48 GB GPU when custom-token embedding training requires it.
  3. Create an on-demand pod with sufficient local workspace.
  4. Bootstrap the exact Python environment and record package, CUDA, driver, and GPU versions.
  5. Upload only the checksummed code bundle and frozen dataset bundle.
  6. Verify remote checksums before execution.
  7. Run the plumbing gate and inspect real GPU utilization, memory, loss movement, and artifact creation.
  8. Stop if the plumbing gate fails; do not spend the full run budget on a broken path.
  9. Run the full candidate with resource monitoring and persistent logs.
  10. Evaluate and merge on the pod, then create hashes for every artifact.
  11. Pull model, tokenizer, adapter, predictions, metrics, logs, environment lock, and run metadata.
  12. Compare remote and local hashes.
  13. Confirm all required artifacts open and the merged model performs inference locally or in a clean verification environment.
  14. Delete the pod so billing stops.

No pod is considered working merely because it exists. Progress must be verified from changing step counts/loss, nonzero GPU utilization, bounded memory, and growing output/log files.

8. Artifact map

Path Purpose
datasets/ Frozen versioned data releases and package archives
runpod/ Run contracts, upload bundles, remote checksums, pod metadata
logs/ Builder, audit, training, resource, transfer, and deployment logs
reports/ Leakage, quality, evaluation, comparison, and promotion reports
model-artifacts/ Pulled adapters, merged checkpoints, tokenizers, model cards, hashes
docs/ This living handoff and later model/dataset cards

Operational code lives in the MobTranslate repository under apps/web/scripts/ and training/translation/. Research outputs stay on the mounted data disk.

9. Recovery and reproducibility

A later operator must be able to reproduce the exact dataset and determine whether a checkpoint came from it without querying production state. Therefore every run records:

If a model is later superseded, its files and evaluation remain immutable. Registry state changes by adding a new version and marking the former version superseded; artifacts are not overwritten.

10. Progress ledger

2026-07-12T09:00Z - program opened

2026-07-12T09:16Z - dataset v1 frozen and published

2026-07-12T09:25Z - RunPod A40 provisioned

2026-07-12T09:40Z - plumbing gate v1 failed; full run remained blocked

2026-07-12T10:00Z - PEFT/NLLB merge defect isolated and fixed

2026-07-12T10:14Z - plumbing gate v2 passed

2026-07-12T10:18Z - full candidate run started

2026-07-12T10:52Z - training and clean merged reload completed

2026-07-12T11:06Z - validation-only decoding selection frozen

2026-07-12T11:11Z - one-shot frozen test completed

2026-07-12T11:36Z - complete artifact pull independently verified

2026-07-12T11:39Z - local CPU serving gate passed

2026-07-12T11:41Z - RunPod deleted

2026-07-12T12:12Z - guarded research preview deployed

2026-07-12T12:57Z - dictionary browse duplicates consolidated without deletion

11. Current status

Training, one-shot frozen evaluation, artifact transfer, independent checksum verification, local CPU serving, public deployment, dictionary browse consolidation, and pod deletion are complete. The guarded preview is live at mobtranslate.com/labs/migmaq, with the canonical 7,062-entry dictionary and complete downloads linked beside it. The candidate remains research-only: frozen-test chrF++ is 21.43, exact match is 0/742, and material lexical/content failures remain. Unrestricted routing remains blocked pending qualified Mi'gmaq review and materially stronger evidence.