   model, such as Bart or T5.
Define the article that should be summarized.
Add the T5 specific prefix "translate English to German: "
Use the PreTrainedModel.generate() method to perform the translation.
```py
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model = AutoModelForSeq2SeqLM.from_pretrained("t5-base")
tokenizer = AutoTokenizer.from_pretrained("t5-base")
inputs = tokenizer(
...     "translate English to German: Hugging Face is a technology company based in New York and Paris",
...     return_tensors="pt",
... )
outputs = model.generate(inputs["input_ids"], max_length=40, num_beams=4, early_stopping=True)
print(tokenizer.decode(outputs[0]))
 Hugging Face ist ein Technologieunternehmen mit Sitz in New York und Paris.
===PT-TF-SPLIT===
from transformers import TFAutoModelForSeq2SeqLM, AutoTokenizer
