translation · MarianMT English→German · q8 · WASM · 106.02 MB ONNX · CC-BY-4.0

OPUS-MT EN→DE — English-to-German MarianMT Studio

University of Helsinki's 6+6 MarianMT encoder-decoder (Helsinki-NLP/opus-mt-en-de, quantized to 106.02 MB ONNX weights / 111.52 MB incl. tokenizer in Xenova/opus-mt-en-de) translates English documentation, legal clauses, UI copy, and technical manuals into German entirely inside a local Web Worker — inspecting SentencePiece fertility, compound nouns (Komposita), umlauts/ß, and length penalty on-device.

Runs in browser · WASM translation 106.02 MB q8 ONNX (111.52 MB total) CC-BY-4.0 MarianMT · 58,101 SentencePiece

1 · On-device model (106.02 MB q8 ONNX · encoder 49.37 MB + decoder 56.65 MB)

2 · Live English → German Translator

Pick a domain preset, type or paste English text (Ctrl/Cmd+V anywhere on the page), or drop/upload a .txt, .md, .srt, or .csv file. Inference runs off the main thread in a dedicated module Web Worker.

Curated English domain presets
Drop a .txt, .md, .srt, or .csv file here, paste via clipboard, or choose a file:
0 chars

German translation (Live MarianMT)

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

Prepare OPUS-MT EN→DE above to translate English locally in CPU WebAssembly.

Latency—
Throughput—
In → Out tokens—
Source fertility—
DE compounds / diacritics—
NaN count—

3 · See Inside: SentencePiece Fertility, Compound Nouns & German Orthography

Inspect how MarianMT's shared 58,101-piece SentencePiece vocabulary segments English phrases, how German output expands (char expansion %), and whether German output forms long compound nouns (Komposita ≥ 14 chars), umlauts (ä, ö, ü), Eszett (ß), or trailing separable verb particles.

German compound-noun and orthography diagnostics appear after translation.

# English segment German translation Tokens (in→out) Latency
Run a translation above to inspect sentence-by-sentence alignment.

German Output Per-Word SentencePiece Fertility (58,101 vocab)

Run a translation to inspect German word fertility.

English Source SentencePiece Token Sequence

Run a translation to inspect real MarianTokenizer SentencePiece subwords.

4 · Why It Matters & At a Glance

Private local English→German translation enables zero-egress DACH software localization, GDPR-sensitive document drafting, offline subtitle creation, and instant bilingual QA workflows without cloud translation API keys.

Upstream model Helsinki-NLP/opus-mt-en-de
Browser ONNX repo Xenova/opus-mt-en-de (encoder_model_quantized.onnx 49.37 MB + decoder_model_merged_quantized.onnx 56.65 MB = 106.02 MB q8; 111.52 MB incl. tokenizer.json 5.50 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=58101)
Special tokens pad=<pad> (58100), eos=</s> (0), unk=<unk> · decoder_start_token_id=58100 · config default num_beams=4
Upstream benchmarks Tatoeba EN→DE: 47.3 BLEU (0.664 chr-F) · newstest2018: 45.2 BLEU (0.690 chr-F) · newstest2019: 40.9 BLEU
License CC-BY-4.0 (University of Helsinki)
Show the code — Off-thread MarianMT translation & TextStreamer
Show the code — English sentence splitter preserving abbreviations & decimals
Show the code — German compound-noun, umlaut/ß & Sie/du register analyzer