torch.manual_seed(2) # doctest: +IGNORE_RESULT
prompt = """Translate the English text to Italian.
 Text: Sometimes, I've believed as many as six impossible things before breakfast.
 Translation:
 """
sequences = pipe(
     prompt,
     max_new_tokens=20,
     do_sample=True,
     top_k=10,
     return_full_text = False,
 )
for seq in sequences:
     print(f"{seq['generated_text']}")
A volte, ho creduto a sei impossibili cose prima di colazione.