SAVRN
Search Contact SAVRN

Open-weight model · Translation

opus-mt-en-zh

by Helsinki-NLP Research Group Helsinki-NLP/opus-mt-en-zh

a sentence initial language token is required in the form of >>id<< (id = valid target language ID) - hfname: eng-zho - sourcelanguages: eng - targetlanguages: zho - opusreadmeurl…

Parameters
Context512
Weights1.5 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads100.5k

Model Card

By Helsinki-NLP Research Group, published under apache-2.0, revision 408d9bc410a3.

a sentence initial language token is required in the form of >>id<< (id = valid target language ID) - hfname: eng-zho - sourcelanguages: eng - targetlanguages: zho - opusreadmeurl: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-zho/README.md - originalrepo: Tatoeba-Challenge - srcconstituents: {'eng'} - tgtconstituents: {'cmnHans', 'nan', 'nanHani', 'gan', 'yue', 'cmnKana', 'yueHani', 'wuuBopo', 'cmnLatn', 'yueHira', 'cmnHani', 'cjyHans', 'cmn', 'lzhHang', 'lzhHira', 'cmnHant', 'lzhBopo', 'zho', 'zhoHans', 'zhoHant', 'lzhHani', 'yueHang', 'wuu', 'yueKana', 'wuuLatn', 'yueBopo', 'cjyHant', 'yueHans', 'lzh', 'cmnHira', 'lzhYiii', 'lzhHans', 'cmnBopo', 'cmnHang'…

Read Helsinki-NLP Research Group's full model card

eng-zho

  • source group: English
  • target group: Chinese
  • OPUS readme: eng-zho

  • model: transformer

  • source language(s): eng
  • target language(s): cjy_Hans cjy_Hant cmn cmn_Hans cmn_Hant gan lzh lzh_Hans nan wuu yue yue_Hans yue_Hant
  • model: transformer
  • pre-processing: normalization + SentencePiece (spm32k,spm32k)
  • a sentence initial language token is required in the form of >>id<< (id = valid target language ID)
  • download original weights: opus-2020-07-17.zip
  • test set translations: opus-2020-07-17.test.txt
  • test set scores: opus-2020-07-17.eval.txt

Benchmarks

testset BLEU chr-F
Tatoeba-test.eng.zho 31.4 0.268

System Info:

  • hf_name: eng-zho

  • source_languages: eng

  • target_languages: zho

  • opus_readme_url: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/eng-zho/README.md

  • original_repo: Tatoeba-Challenge

  • tags: ['translation']

  • languages: ['en', 'zh']

  • src_constituents: {'eng'}

  • tgt_constituents: {'cmn_Hans', 'nan', 'nan_Hani', 'gan', 'yue', 'cmn_Kana', 'yue_Hani', 'wuu_Bopo', 'cmn_Latn', 'yue_Hira', 'cmn_Hani', 'cjy_Hans', 'cmn', 'lzh_Hang', 'lzh_Hira', 'cmn_Hant', 'lzh_Bopo', 'zho', 'zho_Hans', 'zho_Hant', 'lzh_Hani', 'yue_Hang', 'wuu', 'yue_Kana', 'wuu_Latn', 'yue_Bopo', 'cjy_Hant', 'yue_Hans', 'lzh', 'cmn_Hira', 'lzh_Yiii', 'lzh_Hans', 'cmn_Bopo', 'cmn_Hang', 'hak_Hani', 'cmn_Yiii', 'yue_Hant', 'lzh_Kana', 'wuu_Hani'}

  • src_multilingual: False

  • tgt_multilingual: False

  • prepro: normalization + SentencePiece (spm32k,spm32k)

  • url_model: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-zho/opus-2020-07-17.zip

  • url_test_set: https://object.pouta.csc.fi/Tatoeba-MT-models/eng-zho/opus-2020-07-17.test.txt

  • src_alpha3: eng

  • tgt_alpha3: zho

  • short_pair: en-zh

  • chrF2_score: 0.268

  • bleu: 31.4

  • brevity_penalty: 0.8959999999999999

  • ref_len: 110468.0

  • src_name: English

  • tgt_name: Chinese

  • train_date: 2020-07-17

  • src_alpha2: en

  • tgt_alpha2: zh

  • prefer_old: False

  • long_pair: eng-zho

  • helsinki_git_sha: 480fcbe0ee1bf4774bcbe6226ad9f58e63f6c535

  • transformers_git_sha: 2207e5d8cb224e954a7cba69fa4ac2309e9ff30b

  • port_machine: brutasse

  • port_time: 2020-08-21-14:41

Configuration

Architecture
MarianMTModel
Context length (tokens)
512
Layers
6
Vocabulary size
65,001
Model type
marian

Identity and Version

Repository
Helsinki-NLP/opus-mt-en-zh
Publisher
Helsinki-NLP Research Group
Task
Translation
Modality
Text
Library
transformers
Parameters
Not stated by the source
Languages
en, zh
Revision
408d9bc410a388e1d9aef112a2daba955b945255
First published
2022-03-02
Last updated
2023-08-16

Files and Weights

13 files, 1.5 GB in total. The weights are 4 files totalling 1.5 GB in bin, h5, msgpack, ot.

Weights4 files · 1.5 GB
Configuration3 files · 3.2 KB
Tokenizer2 files · 1.6 MB
Documentation1 file · 2.7 KB
Other2 files · 1.6 MB
Repository1 file · 391 B
Every file
FileTypeSizeSHA-256
flax_model.msgpackWeights309.9 MB de82e23a535e
pytorch_model.binWeights312.1 MB 69a1d6ec829c
rust_model.otWeights578.4 MB 9863d8dc7fd6
tf_model.h5Weights312.6 MB 43941ec7f52f
config.jsonConfiguration1.4 KB
generation_config.jsonConfiguration293 B
metadata.jsonConfiguration1.5 KB
README.mdDocumentation2.7 KB
source.spmOther806.4 KB
target.spmOther804.6 KB
.gitattributesRepository391 B
tokenizer_config.jsonTokenizer44 B
vocab.jsonTokenizer1.6 MB

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
1.5 GB
Download from Helsinki-NLP Research Group

Released by Helsinki-NLP Research Group through its official repository on Hugging Face. Read the license.

Memory Requirements

PrecisionWeights in memory
As published1.5 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About opus-mt-en-zh

Can I use opus-mt-en-zh commercially?

Yes. opus-mt-en-zh is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is opus-mt-en-zh's context length?

512 tokens, from the maximum position embeddings in its published configuration.

Similar Models

source languages: nl; target languages: en; OPUS readme: nl-en; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers

Model · Translation

nllb-200-distilled-600M

AI at Meta

This is the model card of NLLB-200's distilled 600M variant. Here are the metrics for that particular checkpoint. - Information about training algorithms, parameters, fairness constraints or other applied approaches, and features. The exact training algorithm, data and the strategies to handle data imbalances for high and low resource languages that were used to train NLLB-200 is described in the paper. - Paper or other resource for more information NLLB Team et al, No Language Left Behind: Scaling Human-Centered Machine Translation, Arxiv, 2022 - Where to send questions or comments about the model: https://github.com/facebookresearch/fairseq/issues • Model performance measures: NLLB-200…

Open weights cc-by-nc-4.0 1,024 tokens transformers

source languages: en; target languages: ru; OPUS readme: en-ru; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers

This model can be used for translation and text-to-text generation. CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propagate historical and current stereotypes. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Further details about the dataset for this model can be found in the OPUS readme: en-de

Open weights cc-by-4.0 512 tokens transformers

hfname: kor-eng - sourcelanguages: kor - targetlanguages: eng - opusreadmeurl: https://github.com/Helsinki-NLP/Tatoeba-Challenge/tree/master/models/kor-eng/README.md - originalrepo: Tatoeba-Challenge - srcconstituents: {'korHani', 'korHang', 'korLatn', 'kor'} - tgtconstituents: {'eng'} - srcmultilingual: False - tgtmultilingual: False - urlmodel: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.zip - urltestset: https://object.pouta.csc.fi/Tatoeba-MT-models/kor-eng/opus-2020-06-17.test.txt - srcalpha3: kor - tgtalpha3: eng - shortpair: ko-en - chrF2score: 0.588 - brevitypenalty: 0.9590000000000001 - reflen: 17711.0 - srcname: Korean - tgtname: English - traindate…

Open weights apache-2.0 512 tokens transformers

source languages: de; target languages: en; OPUS readme: de-en; dataset: opus; model: transformer-align; pre-processing: normalization + SentencePiece.

Open weights apache-2.0 512 tokens transformers