use case · basics · inside 6+6 MarianMT EN→RU · q8 WASM · 110.56 MB · Apache-2.0

Inside 6+6 MarianMT EN→RU: Beam 1/2/4 & Formal (Вы) vs Informal (ты) Register Lab

Explore how the 6+6 MarianMT decoder constructs inflected Russian Cyrillic: benchmark Beam 1 vs Beam 2 vs Beam 4 speed-vs-fluency side-by-side, then run our live Formal (Вы) vs Informal (ты) Register & Case Inflection Contrast Lab with independent non-blocking controls on CPU WebAssembly.

1 · Opus-MT EN→RU worker (110.56 MB q8 WASM · auto-inits from cache)

2 · Live Beam 1 vs Beam 2 vs Beam 4 Speed-vs-Fluency Benchmark

Each beam width runs sequentially in the FIFO Web Worker on your exact English input. Highlighted Russian tokens in Beam 2 and Beam 4 mark inflectional or lexical shifts relative to Beam 1 (Greedy).

Select an English test sentence

Prepare Opus-MT EN→RU above to run live Beam 1 vs Beam 2 vs Beam 4 decoding.

Beam 1 (Greedy baseline)

—

Latency: — · Tokens: —

Beam 2 (diff vs Beam 1)

—

Latency: — · Overlap: —

Beam 4 (diff vs Beam 1)

—

Latency: — · Overlap: —

Measured Beam Search Latency & Throughput (CPU WASM)

Real SentencePiece English Subwords (MarianTokenizer)

Run Beam comparison to inspect SentencePiece English subwords.

3 · Live Formal (Вы) vs Informal (ты) Register & Case Inflection Contrast Lab

English uses invariant you and relies on word order/prepositions. Watch how contextual cues shift MarianMT between polite plural/formal Вы/Ваш/-те and familiar ты/твой/-й, or flip Russian nominative, accusative, dative, and instrumental case endings.

Register & Case Inflection probes

Linguistic note: —

Select a contrast pair and click Run Register & Case Contrast once the model is ready.

Variant A

—

Register: — · Tokens: — · Latency: —

Variant B

—

Register: — · Tokens: — · Latency: —

Show the code — Off-thread Beam 1 vs Beam 2 vs Beam 4 comparison

Model: Helsinki-NLP/opus-mt-en-ru → Xenova/opus-mt-en-ru (110.56 MB q8 ONNX, Apache-2.0).