Upload 80b78bb2-3b7e-4a0c-a76c-93e1503c7b30.jpeg

#40
by Uman1 - opened

Use a pipeline as a high-level helper

from transformers import pipeline

messages = [
{"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-R1", trust_remote_code=True)
pipe(messages)

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment