NGC | Catalog
CatalogModelsNMT En - De Transformer24x6

NMT En - De Transformer24x6

Logo for NMT En - De Transformer24x6
Neural Machine Translation model to translate from English to German
Latest Version
April 4, 2023
1.73 GB

Model Overview

This model can be used for translating text in source language (En) to a text in target language (De).

Model Architecture

The model is based on Transformer "Big" architecture originally presented in "Attention Is All You Need" paper [1]. In this particular instance, the model has 24 layers in the encoder and 6 layers in the decoder. It is using YouTokenToMe tokenizer [2].


These models were trained on a collection of many publicly available datasets comprising of hundreds of millions of parallel sentences. The NeMo toolkit [5] was used for training this model over roughly 700k steps.


While training this model, we used the following datasets:

Tokenizer Construction

We used the YouTokenToMe tokenizer [2] with joint encoder and decoder BPE tokenizers.


The accuracy of translation models are often measured using BLEU scores [3].

WMT14 - 33.0
WMT18 - 50.2
WMT19 - 45.1
WMT20 - 38.4

How to Use this Model

The model is available for use in the NeMo toolkit [5], and can be used as a pre-trained checkpoint for inference or for fine-tuning on another dataset.


Automatically load the model from NGC

import nemo
import nemo.collections.nlp as nemo_nlp
nmt_model = nemo_nlp.models.machine_translation.MTEncDecModel.from_pretrained(model_name="nmt_en_de_transformer24x6")

Translating text with this model

python [NEMO_GIT_FOLDER]/examples/nlp/machine_translation/ --model=nmt_en_de_transformer24x6.nemo --srctext=[TEXT_IN_SRC_LANGUAGE] --tgtout=[WHERE_TO_SAVE_TRANSLATIONS] --target_lang de --source_lang en


This translate method of the NMT model accepts a list of de-tokenized strings.


The translate method outputs a list of de-tokenized strings in the target language.


No known limitations at this time.


[1] Vaswani, Ashish, et al. "Attention is all you need." arXiv preprint arXiv:1706.03762 (2017).




[5] NVIDIA NeMo Toolkit


License to use this model is covered by the NGC TERMS OF USE unless another License/Terms Of Use/EULA is clearly specified. By downloading the public and release version of the model, you accept the terms and conditions of the NGC TERMS OF USE.