Instructions to use anyantudre/moore-mt-tiny-82m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anyantudre/moore-mt-tiny-82m with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="anyantudre/moore-mt-tiny-82m")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("anyantudre/moore-mt-tiny-82m") model = AutoModelForSeq2SeqLM.from_pretrained("anyantudre/moore-mt-tiny-82m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Request access to moore-mt-tiny-82m
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
moore-mt-tiny-82m is a French-Mooré machine translation model. Machine translation makes mistakes, more so outside the Bible-heavy training data: have important texts checked by a fluent speaker, say that a text was machine-translated when you share it, and respect the license (CC BY-NC 4.0). Please read the card, its terms and licenses before requesting access, and make sure you understand them.
Log in or Sign Up to review the conditions and access this model content.
French ↔ Mooré translation, tiny 82M model
A compact Transformer trained from scratch for French ↔ Mooré translation. On French → Mooré it matches or exceeds a fine-tuned NLLB-600M at a seventh of its size and runs in real time on a laptop CPU; Mooré → French is weaker.
| Directions | French → Mooré and Mooré → French, one model |
| Parameters | 82M |
| Size on disk | 330 MB (fp32), 80 MB in CTranslate2 int8 |
| Dev chrF++, French → Mooré | 28.75 |
| Dev chrF++, Mooré → French | 28.61 |
| Test chrF++, French → Mooré | 27.32 |
| Test chrF++, Mooré → French | 28.25 |
Larger and more accurate: moore-mt-nllb-600m and moore-mt-nllb-1.3b.
Author: Wendyellé A. Alban NYANTUDRE (nyantudrealban@gmail.com)
Résumé en français. Modèle de traduction français ↔ mooré (82M paramètres), dans les deux sens avec un seul modèle. Sur le jeu dev de MooreMTBench, il obtient 28,75 chrF++ du français vers le mooré et 28,61 du mooré vers le français. Les données d'entraînement sont surtout bibliques : faites relire les textes importants par un locuteur. Usage non commercial (licence CC BY-NC 4.0).
Scores
chrF++ on the MooreMTBench v1.0 dev split, after moore-norm 1.0, beam 5 with no repeated 3-gram. MAFAND is news, FLORES is encyclopedic text, BOUQuET is everyday language (written in 2025). The last column is NLLB-200-distilled-600M fine-tuned on the original parallel data only, with the same decoding.
| Direction | MAFAND | FLORES | BOUQuET | All (2,993 sentences) | Fine-tuned NLLB-600M |
|---|---|---|---|---|---|
| French → Mooré | 30.80 | 25.38 | 30.20 | 28.75 | 28.06 |
| Mooré → French | 28.68 | 28.15 | 29.81 | 28.61 | 32.47 |
Mean of both directions: 28.68. COMET-22 (mos→fra only): 48.88.
On the MooreMTBench v1.0 test split (scored once, after every choice was made on dev), same normalisation and decoding:
| Direction | MAFAND | FLORES | BOUQuET | All (3,440 sentences) | Fine-tuned NLLB-600M | Mean ± sd, 3 training seeds |
|---|---|---|---|---|---|---|
| French → Mooré | 27.87 | 25.12 | 30.35 | 27.32 | 26.97 | 27.32 ± 0.01 |
| Mooré → French | 27.84 | 28.34 | 29.23 | 28.25 | 31.25 | 28.20 ± 0.14 |
COMET-22 (Mooré → French) on test: 49.84, against 58.11 for the fine-tuned NLLB-600M.
Speed: converted to CTranslate2 int8, the same architecture takes 80 MB and about 0.18 s per sentence on 4 threads of a laptop CPU (beam 5), or 84 sentences/s on an RTX 4070 Laptop GPU. int8 costs 0.2-0.3 chrF++ (measured on an earlier student with identical layers).
Architecture
Marian-style Transformer encoder–decoder with post-LayerNorm residual blocks (10 encoder and 10 decoder layers). A
target-language tag at the start of the source (>>mos<< or >>fra<<) selects the direction, so one model serves both.
A single 16k × 512 embedding matrix E is shared by the encoder input, the decoder input and the output projection.
Vector version: architecture.pdf.
| Component | Setting |
|---|---|
| Layers | 10 encoder + 10 decoder, post-LayerNorm |
| Model width / feed-forward | 512 / 2048, ReLU |
| Attention | 8 heads × 64 |
| Vocabulary | SentencePiece unigram, 16k tokens shared by French and Mooré |
| Embeddings | tied across encoder input, decoder input and output layer; scaled by √512; sinusoidal positions |
| Parameters | 82.3M |
Usage
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
repo = "anyantudre/moore-mt-tiny-82m"
tok = AutoTokenizer.from_pretrained(repo, token=True)
model = AutoModelForSeq2SeqLM.from_pretrained(repo, token=True).eval()
# the target language is a tag at the start of the source: ">>mos<<" (into Mooré) or ">>fra<<" (into French)
src = [">>mos<< Le marché ouvre demain matin."]
enc = tok(src, return_tensors="pt", padding=True)
out = model.generate(**enc, num_beams=5, no_repeat_ngram_size=3,
max_new_tokens=2 * enc.input_ids.shape[1] + 16)
print(tok.batch_decode(out, skip_special_tokens=True))
no_repeat_ngram_size=3 matters: without it, beam search sometimes loops on a phrase. Translate one sentence at a time
(training pairs are at most 200 tokens).
Training
Trained from scratch by sequence-level knowledge distillation: the targets are translations produced by a fine-tuned NLLB-600M teacher (31.48 dev chrF++). The training set combines:
- the 135,400 MooreFrenchParallel pairs (71 % Bible), used in both directions, each source paired with its human reference and with the teacher's translation;
- 82,204 monolingual Mooré sentences paired with the teacher's French translations (Mooré → French);
- 78,671 monolingual French sentences paired with the teacher's Mooré translations (French → Mooré).
Ablation: the same architecture distilled from a weaker teacher (fine-tuned NLLB-600M, 30.27 dev chrF++) and without the monolingual text scores 26.04 dev chrF++, against 28.68 here.
30 epochs (best checkpoint at epoch 29), AdamW, learning rate 5e-4 with 4,000 warm-up steps, about 24k tokens per update, dropout 0.3, attention and activation dropout 0.1, label smoothing 0.1. About 2 hours on one RTX 5090.
Limits
- The training data is mostly Bible text, and the output can lean towards that register. Encyclopedic text (FLORES) is the weakest domain.
- Nobody has rated the translations yet; all scores above are automatic.
Licence
CC BY-NC 4.0, for non-commercial use. The model was trained on translations produced by an NLLB-derived model, so it is released under the same terms as NLLB-200. For commercial use, write to nyantudrealban@gmail.com.
Citation
@misc{nyantudre2026mooremttiny82m,
author = {NYANTUDRE, Wendyell\'e A. Alban},
title = {French ↔ Mooré translation, tiny 82M model},
year = {2026},
howpublished = {\url{https://huggingface.co/anyantudre/moore-mt-tiny-82m}}
}
- Downloads last month
- 2