!pip install -q transformers
from transformers import pipeline pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B")
content = "Who are you?" messages = [ {"role": "user", "content": content}, ] reply = pipe(messages) print(reply[0]["generated_text"][1]['content'])
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up