Beam 1 (Greedy baseline)
Latency: — · Tokens: —
use case · basics · inside 6+6 MarianMT Multilingual→EN · q8 WASM · 118.35 MB · Apache-2.0
Run live decoding comparisons (Beam 1 Greedy vs Beam 4 vs
Beam 6 + no_repeat_ngram_size) with configurable
length_penalty, then inspect why Xenova/opus-mt-mul-en
needs 0 >>lang<< tags (and how prepending >>fra<<
triggers unk_id=2 ".").
length_penalty & no_repeat_ngram_size Benchmark
Runs three sequential passes in the same WASM worker: Beam 1 (Greedy), Beam 4, and Beam 6 with your chosen
no_repeat_ngram_size (prevents repetition loops on low-resource inputs like Finnish).
Prepare OPUS-MT Multilingual→EN above to compare decoding configs live.
Latency: — · Tokens: —
Latency: — · Overlap: —
Latency: — · Overlap: —
MarianTokenizer)Run decoding comparison to inspect SentencePiece source subwords.
>>lang<< Prefix (unk_id=2)
Unlike 1→Many models (opus-mt-en-romance), Xenova/opus-mt-mul-en has 0
>>lang<< tokens in vocab.json and sets unk_id = 2 (".") in
tokenizer.json. Prepending >>fra<< injects a leading #2 (".") token
and shifts the output.
Tokenizer note: —
Prepare OPUS-MT Multilingual→EN above to compare raw Many→One input against a stray >>lang<< prefix.
Detected: — · Tokens: —
Detected: — · Tokens: —
Model: Helsinki-NLP/opus-mt-mul-en
→ Xenova/opus-mt-mul-en (118.35 MB q8 first visit / 112.26 MB ONNX,
Apache-2.0).