use case · basics · inside 6+6 MarianMT EN→ES decoding · q8 WASM · 113.11 MB · Apache-2.0

Inside MarianMT EN→ES: Beam 1/2/4 & Register / Gender Agreement Lab

Inspect two core behaviors of Opus-MT EN→ES: (1) how expanding num_beams (1 vs 2 vs 4) trades WASM latency for smoother Spanish clause structure, and (2) how English context cues steer Spanish formal (usted) vs informal (tú) verb conjugations and grammatical gender agreement.

1 · Opus-MT EN→ES worker (113.11 MB q8 WASM · Apache-2.0)

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

Curated English sentences for beam-width decoding comparison

Prepare Opus-MT EN→ES above to benchmark greedy vs beam-search decoding live.

Source SentencePiece—
Beam-2 diff vs B1—
Beam-4 diff vs B1—
NaN count—

Beam 1 (Greedy)

—
Waiting for comparison…

Beam 2 (2-way)

—
Waiting for comparison…

Beam 4 (4-way)

—
Waiting for comparison…

Shared Source SentencePiece Subwords

Run Beam comparison to inspect SentencePiece tokens.

3 · Live Formal (usted) vs Informal (tú) Register & Gender Agreement Lab

English uses one pronoun (you) and ungendered nouns/adjectives (engineer, tired). Test how surrounding context steers Spanish verb conjugations, possessive determiners (su vs tu), and adjective gender agreement (-a vs -o).

Select a register or gender-agreement preset above, or edit either English prompt directly.

Arm A · Formal / Context A

—
Waiting for register probe…

Arm B · Informal / Context B

—
Waiting for register probe…

Ready to run paired Formal/Informal & Gender Agreement comparison once the model loads.

Arm A register—
Arm B register—
Token delta (B − A)—
Spanish overlap—
NaN count—

4 · Inspect Beam Comparison & Register Lab Code

Show the code — Off-main-thread Beam 1 vs Beam 2 vs Beam 4 pass
Show the code — Paired Formal usted vs Informal tú & Gender Agreement comparison