translation · MarianMT Polish→English · q8 · WASM · 111.50 MB ONNX · Apache-2.0

OPUS-MT PL→EN — Polish-to-English MarianMT Studio

University of Helsinki's 6+6 MarianMT encoder-decoder (Helsinki-NLP/opus-mt-pl-en, quantized to 111.50 MB ONNX weights / 117.62 MB first visit incl. tokenizer in Xenova/opus-mt-pl-en) translates Polish prose, legal/GDPR notices, support tickets with zł amounts, and inflected forms into English entirely inside a local Web Worker — inspecting SentencePiece fertility, all 9 Polish diacritics (ą ć ę ł ń ó ś ź ż), consonant clusters, and length penalty on-device.

Runs in browser · WASM translation 111.50 MB q8 ONNX (117.62 MB first visit) Apache-2.0 MarianMT · 63,430 SentencePiece

1 · On-device model (111.50 MB q8 ONNX · encoder 52.10 MB + decoder 59.40 MB)

2 · Live Polish → English Translator

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

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

English translation (Live MarianMT)

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

Prepare OPUS-MT PL→EN above to translate Polish locally in CPU WebAssembly.

Latency—
Throughput—
In → Out tokens—
Source fertility—
PL ąćęłńóśźż / morph—
NaN count—

3 · See Inside: SentencePiece Fertility, Consonant Clusters & ą ć ę ł ń ó ś ź ż

Inspect how MarianMT's shared 63,430-piece SentencePiece vocabulary segments Polish consonant clusters (sz, cz, rz, dź), preserves all 9 Polish diacritics (ą ć ę ł ń ó ś ź ż) and 7-case inflections, and aligns each Polish sentence 1:1 with its English output.

Polish diacritic, consonant-cluster, and inflected-word diagnostics appear after translation.

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

Polish Source Per-Word SentencePiece Fertility (63,430 vocab)

Run a translation to inspect Polish word fertility.

Polish Source SentencePiece Token Sequence

Run a translation to inspect real MarianTokenizer SentencePiece subwords.

4 · Why It Matters & At a Glance

Private local Polish→English translation enables zero-egress EU/RODO legal review, offline film subtitling, technical support ticket localization, and confidential compliance translation directly inside the browser without sending sensitive Polish text to external servers.

Upstream model Helsinki-NLP/opus-mt-pl-en
Browser ONNX repo Xenova/opus-mt-pl-en (encoder_model_quantized.onnx 52.10 MB + decoder_model_merged_quantized.onnx 59.40 MB = 111.50 MB q8; 117.62 MB first visit 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=63430)
Special tokens pad=<pad> (63429), eos=</s> (0), unk=<unk> · decoder_start_token_id=63429 · config default num_beams=6
Upstream benchmarks Tatoeba PL→EN: 54.9 BLEU (0.701 chr-F)
License Apache-2.0 (University of Helsinki)
Show the code — Off-thread MarianMT translation & TextStreamer
Show the code — Polish sentence splitter preserving np., m.in., prof., dr. & ordinals
Show the code — Polish 9-diacritic, consonant-cluster & zł/PLN analyzer