Let's try the Zephyr example again, but this time using | |
a pipeline: | |
thon | |
from transformers import pipeline | |
pipe = pipeline("text-generation", "HuggingFaceH4/zephyr-7b-beta") | |
messages = [ | |
{ | |
"role": "system", | |
"content": "You are a friendly chatbot who always responds in the style of a pirate", | |
}, | |
{"role": "user", "content": "How many helicopters can a human eat in one sitting? |