<name-identifier> that is in a non-English language helps ensure the model responds in the question language (see: any example).<language>to English in the middle of the generated text. This demonstrates some sort of "universal concept understanding"pip install -U transformersfrom transformers import pipeline
import torch
device = 'cuda' if torch.cuda.is_available() else 'cpu'
my_chatbot = pipeline('text-generation',
'pszemraj/mGPT-Peter-2E',
device=0 if device == 'cuda' else -1,
)