translation · 106.02 MB WASM q8 · German → English · MarianMT · Apache-2.0

Opus-MT DE→EN — On-Device German → English Neural Translator

Helsinki-NLP/opus-mt-de-en (ONNX export Xenova/opus-mt-de-en, Apache-2.0) is a dedicated 6-layer MarianMT encoder-decoder (~74M params, 49.37 MB encoder + 56.65 MB merged KV-cached decoder = 106.02 MB q8) built specifically for German → English translation — handling compound nouns, verb-final subordinate clauses, and ß/ä/ö/ü umlauts entirely inside a local Web Worker.

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

1. Live German → English Neural Translator

Private bilingual engine: Loads encoder_model_quantized.onnx (49.37 MB) + decoder_model_merged_quantized.onnx (56.65 MB) via shared Transformers.js 3.7.5 inside a dedicated Web Worker. No German text or uploaded file leaves your browser.

Pick a curated German register preset, type your own German text, or upload a local .txt / .srt / .md document:

Adjust beam width (1 = fast greedy, 2–4 = beam search) or max tokens, then press Translate to English.
Latency–
Decode speed–
In / Out tokens–
Beam width1 (greedy)
NaN check–
Backend / dtypeWASM · q8

German Input

Select a preset or enter German text above.

English Translation (Live MarianMT)

Download or initialise Opus-MT DE→EN above to translate locally.

2. Sentence-by-Sentence Alignment

When Sentence alignment is enabled, German paragraphs are split cleanly (preserving abbreviations like Dr. and German ordinal dates) and each sentence is translated with per-sentence token counts and measured latency.

Sentence-by-sentence German to English alignment with token counts and latency
# German Source Sentence English Translation Tokens (In → Out) Latency
Run a translation above to inspect sentence alignment.

3. Live SentencePiece Subword Breakdown

Opus-MT uses a shared 58,101-piece SentencePiece model. Word starts carry the leading ▁ marker; long German compounds break into reusable continuation subwords (+) so unseen compound words never become <unk>.

Word start (▁) Compound / subword piece (+) Special token (</s>)

Fertility ratio (pieces per German word) will appear after translation.

Translate above to inspect SentencePiece tokenization.

4. Inside MarianMT DE→EN & Source Code

Trained by the Language Technology Research Group at the University of Helsinki (Helsinki-NLP/opus-mt-de-en, Apache-2.0) on OPUS German–English parallel corpora and converted to quantized ONNX by Xenova (Xenova/opus-mt-de-en).

Show the code · worker.js — runSingleTranslation() (MarianMT WASM q8 pipeline)
Show the code · worker.js — translate() (epoch-safe sentence-aligned translation)