Readme
This model doesn't have a readme.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run hikikomori-haven/moistral using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"hikikomori-haven/moistral:23344f898ecbee9947fd1bdd905953ae6638213629fa1b21567fe41eb08b402a",
input={
"stop": "\n",
"top_p": 0.95,
"prompt": "<s> ### User:\nWhat's the largest planet in the solar system?\n\n### Assistant:\n",
"max_tokens": 16,
"temperature": 0.8,
"presence_penalty": 0,
"frequency_penalty": 0
}
)
# The hikikomori-haven/moistral 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/hikikomori-haven/moistral/api#output-schema
print(item, end="")
To learn more, take a look at the guide on getting started with Python.
No output yet! Press "Submit" to start a prediction.
This model runs on Nvidia T4 GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.