File size: 212 Bytes
75c6905
fd5c58c
05d5f0d
75c6905
 
 
 
 
1
2
3
4
5
6
7
8
# Use a pipeline as a high-level helper
from transformers import pipeline

messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="LLM360/K2-Chat")
pipe(messages)