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
Prepare Opus-MT EN→ES above to benchmark greedy vs beam-search decoding live.
Beam 1 (Greedy)
—Beam 2 (2-way)
—Beam 4 (4-way)
—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).
Arm A · Formal / Context A
—Arm B · Informal / Context B
—Ready to run paired Formal/Informal & Gender Agreement comparison once the model loads.