Run replicate/flan-t5-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"replicate/flan-t5-xl:1457f256622cd45415aa70c02105a917b39dc96e58601d7c2df5a30d2e3092e7",
{
input: {
top_p: 0.95,
prompt: "Answer the following yes/no question by reasoning step by step. Can a dog drive a car?",
max_length: 50,
temperature: 0.7,
repetition_penalty: 1
}
}
);
console.log(output);
Run replicate/flan-t5-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"replicate/flan-t5-xl:1457f256622cd45415aa70c02105a917b39dc96e58601d7c2df5a30d2e3092e7",
input={
"top_p": 0.95,
"prompt": "Answer the following yes/no question by reasoning step by step. Can a dog drive a car?",
"max_length": 50,
"temperature": 0.7,
"repetition_penalty": 1
}
)
print(output)
[
"Dogs do not have a drivers license nor can they operate a car. Therefore, the final answer is no."
]
{
"completed_at": "2023-03-03T06:25:29.282546Z",
"created_at": "2023-03-03T06:20:57.605544Z",
"data_removed": false,
"error": null,
"id": "dviccvpuavfl3iuu3guhfpe2ju",
"input": {
"top_p": "0.95",
"prompt": "Answer the following yes/no question by reasoning step by step. Can a dog drive a car?",
"max_length": 50,
"temperature": "0.7",
"repetition_penalty": 1
},
"logs": null,
"metrics": {
"predict_time": 2.88226,
"total_time": 271.677002
},
"output": [
"Dogs do not have a drivers license nor can they operate a car. Therefore, the final answer is no."
],
"started_at": "2023-03-03T06:25:26.400286Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/dviccvpuavfl3iuu3guhfpe2ju",
"cancel": "https://api.replicate.com/v1/predictions/dviccvpuavfl3iuu3guhfpe2ju/cancel"
},
"version": "1457f256622cd45415aa70c02105a917b39dc96e58601d7c2df5a30d2e3092e7"
}