translation · 113.11 MB WASM q8 · English → 47 Romance Targets (1→Many) · MarianMT · Apache-2.0

OPUS-MT EN→Romance — 1→Many Neural Translator

Helsinki-NLP/opus-mt-en-ROMANCE (ONNX export Xenova/opus-mt-en-ROMANCE, Apache-2.0) packs a single 6+6 MarianMT encoder-decoder (52.90 MB encoder + 60.21 MB merged KV-cached decoder = 113.11 MB q8) that fans out one English source into French, Spanish, Italian, Portuguese, and Romanian (plus 42 regional/related tags) steered solely by inline >>lang<< SentencePiece control tokens.

Loaded ONNX ID Xenova/opus-mt-en-ROMANCE
Upstream Card Helsinki-NLP/opus-mt-en-ROMANCE
Pipeline Task translation
Weights & Quant 113.11 MB · WASM q8
Architecture 6+6 MarianMT · 65,001 SP
License Apache-2.0

1. Simultaneous 1→5 Romance Translator (FR · ES · IT · PT · RO)

One 113.11 MB model, five Romance outputs: Loads encoder_model_quantized.onnx (52.90 MB) + decoder_model_merged_quantized.onnx (60.21 MB) via shared Transformers.js 3.7.5 inside a dedicated Web Worker. Prepending >>fr<<, >>es<<, >>it<<, >>pt<<, or >>ro<< steers the shared decoder without loading extra checkpoints.

Pick an English preset, enter custom English text, or upload a local .txt / .md / .srt file:

Select one or all five Romance targets below, then press Translate Selected Targets.
Target tags:
Total fan-out latency–
Mean decode speed–
Targets run–
Total In / Out tokens–
NaN check–
Backend / dtypeWASM · q8

Awaiting local inference

Download or initialise OPUS-MT EN→Romance above to translate simultaneously into FR, ES, IT, PT, and RO.

2. Target-Tag Diagnostics & SentencePiece Inspector

Every translation prepends an inline control token (>>fr<< = ID 14, >>es<< = ID 16, >>it<< = ID 41, >>pt<< = ID 45, >>ro<< = ID 54) from the shared 65,001-piece SentencePiece vocabulary. Inspect the live control token ID, latency, and fertility (pieces per word) for each target language below.

Per-language target control token ID, token counts, fertility, and latency
Target Control Tag SP Token ID In → Out Tokens Target Fertility Decode Speed Latency
Run a translation above to inspect per-language diagnostics.
Control tag (>>lang<<) Word start (▁) Subword piece (+) Special (</s>)

Tagged prompt SentencePiece pieces will appear after translation.

Translate above to inspect SentencePiece control tokens.

3. Inside OPUS-MT EN→Romance & Source Code

Trained by the Language Technology Research Group at the University of Helsinki (Helsinki-NLP/opus-mt-en-ROMANCE, Apache-2.0) on OPUS parallel corpora across 47 Romance languages and varieties, converted to ONNX by Xenova (Xenova/opus-mt-en-ROMANCE).

Show the code — worker.js runTaggedTranslation() inline >>lang<< inference
Show the code — worker.js translateFanout() 1→many sequential target loop