opus-mt-en-ko-onnx
English-to-Korean machine translation model, exported to ONNX (int8 quantized) for use with transformers.js.
- Source model: Helsinki-NLP/opus-mt-tc-big-en-ko (MarianMT, CC-BY-4.0)
- Export:
optimumONNX export + dynamic int8 quantization - Size: ~265 MB (encoder 105 MB + decoder 161 MB) — about 70% smaller than the NLLB-200-distilled-600M alternative (~894 MB), and roughly 5–10x faster per sentence.
Note on tokenizers
This is a sepvoc model (separate English source / Korean target vocabularies).
tokenizer.json is the source (English) tokenizer; tokenizer_target.json
is the target (Korean) tokenizer. transformers.js pipeline('translation')
decodes output ids against the source vocab, so use
AutoModelForSeq2SeqLM + manual generate() and decode the output ids
with tokenizer_target.json instead.