10 lines
270 B
Python
10 lines
270 B
Python
# Use a pipeline as a high-level helper
|
|
from transformers import pipeline
|
|
|
|
pipe = pipeline("text-generation", model="MiniMaxAI/MiniMax-M1-40k", trust_remote_code=True)
|
|
messages = [
|
|
{"role": "user", "content": "Who are you?"},
|
|
]
|
|
output = pipe(messages)
|
|
|
|
print(output) |