translation · MarianMT Cyrillic→English · q8 · WASM · 110.56 MB · CC-BY-4.0
Opus-MT Russian → English
University of Helsinki's dedicated 6+6 MarianMT encoder-decoder
(Helsinki-NLP/opus-mt-ru-en,
quantized to 110.56 MB INT8 ONNX in
Xenova/opus-mt-ru-en)
translates Cyrillic Russian into fluent English in ~164 ms on CPU WebAssembly —
handling 6 Russian grammatical cases, free word order, aspectual verb pairs, ё vs е
diacritic disambiguation, and Cyrillic→Latin transliteration completely offline.
1 · On-device model (110.56 MB q8 WASM · encoder 51.63 MB + decoder 58.93 MB)
2 · Live Cyrillic Russian → English Translator
Pick a curated Russian sample, type or paste Cyrillic text (even with 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.
.txt, .md, .srt, or .csv file here, paste via clipboard, or choose a file:
English translation
Waiting for runPrepare Opus-MT RU→EN above to translate Russian locally in CPU WebAssembly.
3 · See Inside MarianTokenizer: Cyrillic Subword Fertility & Sentence Alignment
MarianMT caps each pass at 512 tokens and encodes Cyrillic stems + grammatical case suffixes
using a 62,518-entry SentencePiece vocabulary. Subword fertility (source_tokens / source_words)
shows how Russian inflections split into pieces.
| # | Russian segment | English translation | Tokens (in→out) | Latency |
|---|---|---|---|---|
| Run a translation above to inspect sentence-by-sentence alignment. | ||||
Real SentencePiece Subword Pieces (MarianTokenizer · 62,518 vocab)
Run a translation to inspect real MarianTokenizer SentencePiece subwords.
4 · Why It Matters & At a Glance
Private local Russian→English translation unlocks zero-egress compliance for customer support queues, film/subtitle post-production, engineering logs, and research documents — no third-party translation API keys, no per-character billing, and instant offline execution once cached.
| Upstream model |
Helsinki-NLP/opus-mt-ru-en
|
|---|---|
| Browser ONNX repo |
Xenova/opus-mt-ru-en
(encoder_model_quantized.onnx 51.63 MB + decoder_model_merged_quantized.onnx 58.93 MB = 110.56 MB q8)
|
| 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, max_length=512, vocab_size=62518) |
| Special tokens | pad=<pad>, eos=</s>, unk=<unk> · source_lang="ru", target_lang="en" baked into weights |
| License | CC-BY-4.0 (University of Helsinki) |
Show the code — Off-thread MarianMT translation & TextStreamer
Show the code — Russian sentence splitter respecting abbreviations & quotes
Compare live Beam 1 vs 2 vs 4 word diffs plus ё vs е minimal pairs and SVO vs OVS case order.
Sequential FIFO localization of Russian subtitles, catalog CSVs, and documents with sanitized exports.
Wild · False Friends & ё-Drop Stress LabProbe Russian-English false friends (магазин, фамилия, актуальный), dropped ё, chat slang & code-switching.
Chain Opus-MT RU→EN (110.56 MB) into DeBERTa-v3 Zero-Shot (87.25 MB, ~198 MB total) to route Russian support tickets.