6 lines
425 B
Python
6 lines
425 B
Python
from transformers import pipeline
|
|
|
|
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
|
generator = pipeline("text-generation", model="tommal/functiongemma-270m-it-simple-tool-calling", device="cuda")
|
|
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
|
print(output["generated_text"]) |