Model Name: Tanhim/translation-En2De
language: German or Deutsch
thumbnail:
https://huggingface.co/Tanhim/translation-En2De
You can use this model directly with a pipeline for machine translation. Since the generation relies on some randomness, I
set a seed for reproducibility:
1>>> from transformers import pipeline, set_seed
2>>> text_En2De= pipeline('translation', model='Tanhim/translation-En2De', tokenizer='Tanhim/translation-En2De')
3>>> set_seed(42)
4>>> text_En2De("My name is Karl and I live in Aachen")
5