translation · Many-to-One Romance→English · q8 · WASM · 113.11 MB ONNX · Apache-2.0

OPUS-MT Romance→EN — Many-to-One Romance MarianMT Studio

University of Helsinki's 6+6 MarianMT encoder-decoder (Helsinki-NLP/opus-mt-ROMANCE-en, quantized to 113.11 MB ONNX weights / 119.23 MB incl. tokenizer in Xenova/opus-mt-ROMANCE-en) translates 48 Romance languages and regional varieties (French, Spanish, Italian, Portuguese, Romanian, Catalan, Galician, Occitan, and more) directly into English inside a local Web Worker — with zero >>lang<< prefix tokens needed.

Runs in browser · WASM translation 113.11 MB q8 ONNX (119.23 MB total) Apache-2.0 MarianMT · 65,001 SentencePiece · 48 Romance sources

1 · On-device model (113.11 MB q8 ONNX · encoder 52.90 MB + decoder 60.21 MB)

2 · Live Multi-Romance → English Translator (FR · ES · IT · PT · RO · CA · GL)

Pick a preset across 7 Romance languages, paste text anywhere on the page (Ctrl/Cmd+V), or drop/upload a .txt, .md, .srt, or .csv file. Because vocab.json has 0 target-tag tokens, raw Romance text goes straight into the encoder.

7 Romance language presets
Drop a .txt, .md, .srt, or .csv file here, paste via clipboard, or choose a file:
FR · auto

English translation (Live MarianMT)

Waiting for run
Prepare OPUS-MT Romance→EN above and click Translate to run real on-device MarianMT inference.

Prepare OPUS-MT Romance→EN above to translate 48 Romance languages into English in CPU WebAssembly.

Latency—
Throughput—
In → Out tokens–
Source fertility—
Detected / num parity—
NaN count—

3 · See Inside: SentencePiece Subwords, Cross-Romance Fertility & Segments

Inspect how MarianMT's shared 65,001-piece SentencePiece vocabulary segments accents and clitics across Romance languages without any >>lang<< prefix token, and compare per-sentence language guesses and latencies.

Sentence-by-sentence Romance → English alignment and detected script/lexical guess
# Detected Romance segment English translation Tokens (in→out) Latency
Run a translation above to inspect sentence-by-sentence alignment.

Romance Source Per-Word SentencePiece Fertility (65,001 vocab)

Run a translation to inspect Romance word fertility.

Romance Source SentencePiece Token Sequence

Run a translation to inspect real MarianTokenizer SentencePiece subwords.

4 · Why It Matters & At a Glance

One cached 113.11 MB model handles customer support tickets, multilingual subtitles, and cross-border European & Latin American documents without knowing the source language ahead of time or shipping separate FR→EN, ES→EN, IT→EN, PT→EN, and RO→EN checkpoints.

Upstream model Helsinki-NLP/opus-mt-ROMANCE-en
Browser ONNX repo Xenova/opus-mt-ROMANCE-en (encoder_model_quantized.onnx 52.90 MB + decoder_model_merged_quantized.onnx 60.21 MB = 113.11 MB q8; 119.23 MB incl. tokenizer.json 6.12 MB + configs)
Pipeline task & runtime translation · shared @huggingface/transformers@3.7.5 via lib/webai.js · CPU wasm
Architecture MarianMTModel (6 encoder + 6 decoder layers, d_model=512, 8 attention heads, Swish FFN=2048, max_length=512, vocab_size=65001)
Special tokens pad=<pad> (65000), eos=</s> (0), unk=<unk> · decoder_start_token_id=65000 · 0 >>lang<< prefix tokens · config default num_beams=4
Upstream benchmarks Tatoeba fr-en: 62.2 BLEU (0.750 chr-F) · 48 Romance source codes (fr/es/pt/it/ro/ca/gl/oc/la + regional variants)
License Apache-2.0 (Helsinki-NLP)
Show the code — Off-thread MarianMT translation & TextStreamer
Show the code — Multi-Romance script/diacritic & function-word language guesser
Show the code — Romance sentence splitter preserving ¿…? / ¡…! and abbreviations