Run this model with HF Jobs
Run ELEJOAI/Wren-Translate-270M-6L 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/ELEJOAI/Wren-Translate-270M-6L. 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/ELEJOAI/Wren-Translate-270M-6L 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.
Instructions to use ELEJOAI/Wren-Translate-270M-6L with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ELEJOAI/Wren-Translate-270M-6L 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="ELEJOAI/Wren-Translate-270M-6L")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ELEJOAI/Wren-Translate-270M-6L") model = AutoModelForMultimodalLM.from_pretrained("ELEJOAI/Wren-Translate-270M-6L", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Wren-Translate-270M-6L (M6 Clean Commercial)
70-Language On-Device Neural Machine Translation (186.9 MB Mobile INT8 Pack, 30 ms iPhone / 65 ms Android) with Zero-Extra-Weight Hallucination & Omission Self-Check (Wren-N1).
面向手机端离线实时翻译的 70 语种 270M 开源净版模型(186.9 MB 端侧动态 int8、iPhone 30 ms / 安卓单中档核 65 ms),内置 0 MB 额外权重的幻觉/漏译自检(Wren-N1)。
- Live Interactive Demo (HF Gradio Space, Unlimited CPU): https://huggingface.co/spaces/deansy/Wren-Translate-270M-Live
- Benchmark Showcase (ELEJOAI Space): https://huggingface.co/spaces/ELEJOAI/Wren-Translate-270M-Demo
- Technical Report (Zenodo DOI):
(https://doi.org/10.5281/zenodo.24740679)
- GitHub (Benchmarks, Whitepaper & Eval Suite): https://github.com/elejoai/wren-translate
- Organization: ELEJOAI (https://elejoai.com | Commercial Licensing:
x@elejoai.com)
Highlights / 核心亮点
- 100% Clean Commercial Data (
big70_v3_clean): Trained from scratch on 23.1M strictlycommercial_okparallel pairs across 70 languages (1,364 directions, 39.1% long paragraphs > 40 words) with zero private or non-commercial data, followed by multi-domain QE-RL GRPO (COMETKiwi-22 + LaBSE). - Google
WMT24++(16 Languages, 15,360 Segs): Achieves76.40COMET-22 (15-lang common mean76.60COMET-22 /44.87chrF++), beating 2.2× largerNLLB-200-distilled-600M(73.77) on 12/16 languages (+2.63COMET-22,+4.36chrF++), and outperforming 12× largerNLLB-200-3.3Bon 7/16 languages (en→zh +5.75,en→hi +3.47,en→is +2.77,en→ja +1.92,en→th +1.10,en→id +0.82,en→vi +0.29) as well as overall 15-lang chrF++ (+0.82). FLORES-200Usual-12 & Full 298 Directions: Achieves84.70COMET-22 /36.33chrF++ /25.68BLEU — beatingNLLB-600Mby+3.94COMET-22 and matching 6.7× largerHy-MT2-1.8B(84.76COMET-22, while beating it in chrF+++0.90& BLEU+0.10). On full 298 directions:X→zh(68 langs)28.67(+4.13over NLLB-600M),zh→X(68 langs)41.56(+2.54),NonHub-24direct46.13.- Zero-Extra-Weight
HalOmiSelf-Check (Wren-N1): Reusing the unmodified 18-layer encoder (0 MB extra weights, ~10 ms on iPhone) achieves0.9152Hallucination AUROC and0.8884Omission AUROC across 10 directions (1,537 human-annotated pairs), outperforming 1.2–2.2 GB external QE models (LaBSE,BLASER-2 QE,SONAR,COMET-QE). - True Mobile Efficiency: Decoupled 18L-encoder / 6L-merged-attention-decoder + single
mmapshared int8 embedding (186.94 MBtotal, 256 byte-fallback zero<unk>, standard opset 17 / IR 9 int8 for iOS, Android, and HarmonyOS). Verified on real hardware at 29.6–34.3 ms (iPhone 15 Pro, 1T) and 64–73 ms (Samsung Galaxy S23 Ultra, single mid-core Cortex-A715).
Model Family / 模型家族
| Model | Params | Architecture | Mobile INT8 Pack | WMT24++ (16L COMET-22) | FLORES-12 (COMET-22) | HalOmi N1 (Hall / Omit) | Status |
|---|---|---|---|---|---|---|---|
Wren-Translate-270M-6L |
270M | 18L Enc + 6L Dec | 186.94 MB | 76.40 | 84.70 | 0.9152 / 0.8884 | ✅ Released |
Wren-Translate-330M-12L |
~330M | 18L Enc + 12L Dec | ~220 MB | TBD (training) | TBD | TBD | ⏳ Training |
Quickstart / 快速开始
Download wren_infer.py (included in this repository) or copy the snippet below to translate across all 70 languages and run built-in zero-weight Wren-N1 verification:
from wren_infer import WrenTranslator
tr = WrenTranslator("ELEJOAI/Wren-Translate-270M-6L")
# Standard beam=4 translation + zero-extra-weight N1 self-check
res = tr.translate(
"On-device neural machine translation works offline with zero cloud latency.",
src_lang="en",
tgt_lang="zh",
num_beams=4,
verify=True,
)
print(res["translation"])
print(res["n1_self_check"])
# {'hall_prec': ..., 'omit_scan': ..., 'sent_cos': ...}
Direct transformers Usage (Without Wrapper)
Language tags are mapped to frozen Gemma spare tokens <unused100> .. <unused170> (see GEMMA_ORDER in wren_infer.py):
- Encoder input:
[lang_id[src_lang]] + tokenizer.encode(text, add_special_tokens=False) + [eos_token_id] - Decoder start:
[decoder_start_token_id, lang_id[tgt_lang]] - Recommended decoding:
num_beams=4, do_sample=False(for best quality) ornum_beams=1(for ultra-fast mobile greedy decoding).
Benchmark Evaluation / 完整评测成绩
1. Google WMT24++ (16 Core Languages, 15,360 Clean Segments, beam=4)
| Model | Params | 16-Lang COMET-22 | 15-Lang COMET-22 | 15-Lang chrF++ | 15-Lang BLEU |
|---|---|---|---|---|---|
NLLB-200-distilled-600M |
600M (2.2×) | 73.77 | 74.09 | 40.51 | 19.27 |
Wren-Translate-270M-6L (M6) |
270M | 76.40 (+2.63) |
76.60 (+2.51) |
44.87 (+4.36) |
21.73 (+2.46) |
NLLB-200-3.3B |
3.3B (12×) | 76.84 | 77.26 | 44.05 | 22.41 |
Hy-MT2-1.8B |
1.8B (6.7×) | N/A (no is) |
84.10 | 47.58 | 23.98 |
Hy-MT3-7B-FP8 |
7B (26×) | 84.05 | 84.27 | 50.91 | 28.50 |
Per-Language WMT24++ COMET-22 Breakdown (16 Languages, 960 segs each)
| Direction | Wren-270M-6L |
NLLB-600M |
Delta vs 600M | NLLB-3.3B |
Delta vs 3.3B |
|---|---|---|---|---|---|
en→th |
78.05 | 69.76 | +8.29 | 76.95 | +1.10 |
en→zh |
77.77 | 69.65 | +8.12 | 72.02 | +5.75 |
en→ja |
80.84 | 75.60 | +5.24 | 78.92 | +1.92 |
en→is |
73.35 | 68.90 | +4.45 | 70.58 | +2.77 |
en→ko |
80.97 | 77.22 | +3.75 | 81.52 | -0.55 |
en→hi |
69.29 | 65.55 | +3.74 | 65.82 | +3.47 |
en→vi |
78.04 | 75.27 | +2.77 | 77.75 | +0.29 |
en→id |
81.51 | 79.50 | +2.01 | 80.69 | +0.82 |
en→tr |
78.60 | 77.07 | +1.53 | 81.07 | -2.47 |
en→pt |
78.49 | 77.09 | +1.40 | 79.45 | -0.96 |
en→uk |
75.21 | 73.81 | +1.40 | 79.31 | -4.10 |
en→de |
74.13 | 73.89 | +0.24 | 77.42 | -3.29 |
en→ru |
72.99 | 73.03 | -0.04 | 77.17 | -4.18 |
en→fr |
73.78 | 73.87 | -0.09 | 76.33 | -2.55 |
en→ar |
72.36 | 72.55 | -0.19 | 74.79 | -2.43 |
en→es |
77.02 | 77.56 | -0.54 | 79.66 | -2.64 |
2. FLORES-200 Usual-12 (COMET-22) & Full 298 Directions (chrF++)
| Model | Params | FLORES-12 COMET-22 | FLORES-12 chrF++ | FLORES-12 BLEU | X→zh (68) |
zh→X (68) |
en→X (68) |
NonHub-24 |
|---|---|---|---|---|---|---|---|---|
NLLB-200-distilled-600M |
600M | 80.76 | 33.70 | 22.61 | 24.54 | 39.02 | 51.30 | — |
Wren-Translate-270M-6L |
270M | 84.70 | 36.33 | 25.68 | 28.67 | 41.56 | 51.12 | 46.13 |
Hy-MT2-1.8B |
1.8B | 84.76 | 35.43 | 25.58 | 37 langs | 37 langs | 37 langs | — |
Hy-MT2-7B |
7B | 87.03 | 38.45 | 27.30 | — | — | — | — |
3. HalOmi Zero-Retrain Hallucination & Omission Detection (10 Directions, 1,537 Rows)
| Method | Extra Weights | Hallucination AUROC | Omission AUROC |
|---|---|---|---|
COMET-QE |
~2.2 GB | 0.8696 | 0.6959 |
SONAR |
~1.2 GB | 0.8659 | 0.8607 |
BLASER-2 QE |
~1.5 GB | 0.8860 | 0.8382 |
LaBSE |
~1.8 GB | 0.8895 | 0.8239 |
Wren-N1 (Wren-270M-6L) |
0 MB | 0.9152 🏆 | 0.8884 🏆 |
All raw row-level prediction files (wmt24pp_b4.jsonl, flores12_b4.jsonl, halomi_wren_m6_b1_6l_scores.tsv) and metric JSONs are shipped inside eval_results/ for independent verification.
Supported Languages (70 Languages)
af, ar, az, be, bg, bn, bs, ca, ceb, cs, cy, da, de, el, en, es, et, eu, fa, fi, fr, gl, gu, he, hi, hr, hu, id, is, it, ja, ka, kk, km, ko, lo, lt, lv, mk, mn, mr, ms, mt, my, nb, ne, nl, pa, pl, pt, ro, ru, sk, sl, sq, sr, sv, sw, ta, te, th, tl, tr, ug, uk, ur, uz, vi, yue, zh.
Decontamination & Data Compliance Audit
Full normalized exact-match hash scan across all 23,096,781 training rows (eval_results/audit_big70_v3_clean.json):
| Audit Check | Scope | Result |
|---|---|---|
| License Compliance | All 23,096,781 rows (big70_v3_clean) |
100.00% commercial_ok (0 private, 0 research_only) |
Google WMT24++ Overlap |
958 unique sources / 15,240 unique targets (16 core langs) | 0 src matches / 0 tgt matches (0.0%) |
FLORES-200 devtest Overlap |
205,477 unique sentences (all 204 languages) | 0 src matches / 0 tgt matches (0.0%) |
Citation / 引用
@misc{zou2026wrentranslate270m,
author = {Zou, Dingyuan and Feng, Xianwei and Zhang, Xiao and Yang, Chao},
title = {Wren-Translate-270M: On-Device 70-Language Neural Machine Translation and Zero-Retrain Hallucination/Omission Self-Check},
year = {2026},
month = dec,
publisher = {Zenodo},
version = {v1.0.0-m6},
doi = {10.5281/zenodo.24740679},
url = {https://doi.org/10.5281/zenodo.24740679}
}
License & Commercial Inquiries / 许可协议与商业授权
- Academic Research, Benchmarking & Non-Commercial Evaluation: Free under
LICENSE(explicitly permits WMT, WMT24++, FLORES-200, HalOmi evaluation and reproducibility verification). - Commercial Use Requires a Commercial License: Any commercial product integration, mobile/desktop SDK embedding, paid API/SaaS service, or commercial redistribution requires a separate written commercial license from ELEJOAI (https://elejoai.com |
x@elejoai.com).- Commercial packages include our decoupled 186.9 MB mobile INT8 ONNX packs (iOS / Android / HarmonyOS) and C++ NEON SDOT inference SDK.
- Google Gemma Terms of Use Compliance: Wren-Translate is a modified Model Derivative of Google's T5Gemma 2. Gemma is provided under and subject to the Gemma Terms of Use (https://ai.google.dev/gemma/terms) and Gemma Prohibited Use Policy (https://ai.google.dev/gemma/prohibited_use_policy). See
LICENSE,NOTICE, andLICENSE_NOTICE.mdfor complete terms.
- Downloads last month
- 27
Model tree for ELEJOAI/Wren-Translate-270M-6L
Base model
google/t5gemma-2-270m-270m