Run dsingal0/mixtral-single-gpu using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"dsingal0/mixtral-single-gpu:8b31ec594c950df05731f41c8badf570a44caff114591e0234ac01d8a6f4cd10",
{
input: {
top_k: 50,
top_p: 0.9,
prompt: "Tell me the story of the boy who cried wolf.",
temperature: 0.6,
max_new_tokens: 512
}
}
);
console.log(output);
Run dsingal0/mixtral-single-gpu using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"dsingal0/mixtral-single-gpu:8b31ec594c950df05731f41c8badf570a44caff114591e0234ac01d8a6f4cd10",
input={
"top_k": 50,
"top_p": 0.9,
"prompt": "Tell me the story of the boy who cried wolf.",
"temperature": 0.6,
"max_new_tokens": 512
}
)
# The dsingal0/mixtral-single-gpu model can stream output as it's running.# The predict method returns an iterator, and you can iterate over that output.for item in output:
# https://replicate.com/dsingal0/mixtral-single-gpu/api#output-schemaprint(item, end="")
Once upon a time, in a small village, there lived a lonely shepherer boy named Samuel. He was known to be mischievous and often played pranks on the villagers.
One day, Samuel thought of a new prank to play on the villagers. He cried out, "Wolf! Wolf! The sheeps are being attacked by a wolf!" The villagers were startled and rushed to help Samuel, but when they arrived, they found that there was no wolf and Samuel was laughing at their reactions.
The villagers were not happy with Samuel's prank, but they decided to let it go this time. However, Samuel thought that the villagers' reactions were very funny, and he decided to play the same prank again the next day.
Once again, Samuel cried out, "Wolf! Wolf! The sheeps are being attacked by a wolf!" The villagers were once again startled and rushed to help, only to find that Samuel was once again laughing at their reactions.
The villagers were getting frustrated with Samuel's constant pranks, but they didn't want to encourage him by scolding him too much. They warned him that if he kept playing pranks, they would not believe him in case of a real emergency.
Days passed, and Samuel continued to play his pranks, crying "Wolf!" whenever he felt like it. But the villagers were now cautious and did not believe him. One day, while Samuel was tending to his sheep, a real wolf appeared and attacked the herd. Samuel cried out in terror, "Wolf! Wolf! A real wolf is attacking my sheeps!"
The villagers heard Samuel's cries, but they did not believe him, assuming it was just another one of his pranks. They did not come to help, and the wolf was able to attack and kill many of Samuel's sheep before it finally left.
Samuel was left alone with his few remaining sheep, feeling foolish and ashamed. He had learned a valuable lesson about the consequences of lying and playing pranks. The villagers eventually forgave him, but they never forgot the time when the boy who cried wolf lost his herd because no one believed him.
So the story of the boy who cried wolf serves as a reminder to always tell the truth, even if it's not what people want to hear, because lying and playing
This model is not yet booted but ready for API calls. Your first API call will boot the model and may take longer, but after that subsequent responses will be fast.
This model costs approximately $0.26 to run on Replicate, but this varies depending on your inputs.
Copy
Show
Copy
Copy
Copy
Copy
Show
Copy
Copy
Show run API
Copy
Show
Copy
Copy
Copy
Logs (pav4ic3bcihtj5okwtirnu5fxu)
Succeeded
=== Formatted Prompt ===
Tell me the story of the boy who cried wolf.
========================