Large Language Models, Artificial Intelligence, Data Science, Machine Learning, Editors Pick.
import pipeline generator = pipeline('text-generation', model=model, tokenizer=tokenizer) result = generator("I have a dream", do_sample=True, max_length=50)[0]['generated_text'] print(result) I have a dream," she told CNN last week. "I have this dream of helping my mother find her own. But, to